JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.795

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.services.verifiedpermissions.model

Class UpdatePolicyRequest

    • Constructor Detail

      • UpdatePolicyRequest

        public UpdatePolicyRequest()
    • Method Detail

      • setPolicyStoreId

        public void setPolicyStoreId(String policyStoreId)

        Specifies the ID of the policy store that contains the policy that you want to update.

        Parameters:
        policyStoreId - Specifies the ID of the policy store that contains the policy that you want to update.
      • getPolicyStoreId

        public String getPolicyStoreId()

        Specifies the ID of the policy store that contains the policy that you want to update.

        Returns:
        Specifies the ID of the policy store that contains the policy that you want to update.
      • withPolicyStoreId

        public UpdatePolicyRequest withPolicyStoreId(String policyStoreId)

        Specifies the ID of the policy store that contains the policy that you want to update.

        Parameters:
        policyStoreId - Specifies the ID of the policy store that contains the policy that you want to update.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setPolicyId

        public void setPolicyId(String policyId)

        Specifies the ID of the policy that you want to update. To find this value, you can use ListPolicies.

        Parameters:
        policyId - Specifies the ID of the policy that you want to update. To find this value, you can use ListPolicies.
      • getPolicyId

        public String getPolicyId()

        Specifies the ID of the policy that you want to update. To find this value, you can use ListPolicies.

        Returns:
        Specifies the ID of the policy that you want to update. To find this value, you can use ListPolicies.
      • withPolicyId

        public UpdatePolicyRequest withPolicyId(String policyId)

        Specifies the ID of the policy that you want to update. To find this value, you can use ListPolicies.

        Parameters:
        policyId - Specifies the ID of the policy that you want to update. To find this value, you can use ListPolicies.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setDefinition

        public void setDefinition(UpdatePolicyDefinition definition)

        Specifies the updated policy content that you want to replace on the specified policy. The content must be valid Cedar policy language text.

        You can change only the following elements from the policy definition:

        • The action referenced by the policy.

        • Any conditional clauses, such as when or unless clauses.

        You can't change the following elements:

        • Changing from static to templateLinked.

        • Changing the effect of the policy from permit or forbid.

        • The principal referenced by the policy.

        • The resource referenced by the policy.

        Parameters:
        definition - Specifies the updated policy content that you want to replace on the specified policy. The content must be valid Cedar policy language text.

        You can change only the following elements from the policy definition:

        • The action referenced by the policy.

        • Any conditional clauses, such as when or unless clauses.

        You can't change the following elements:

        • Changing from static to templateLinked.

        • Changing the effect of the policy from permit or forbid.

        • The principal referenced by the policy.

        • The resource referenced by the policy.

      • getDefinition

        public UpdatePolicyDefinition getDefinition()

        Specifies the updated policy content that you want to replace on the specified policy. The content must be valid Cedar policy language text.

        You can change only the following elements from the policy definition:

        • The action referenced by the policy.

        • Any conditional clauses, such as when or unless clauses.

        You can't change the following elements:

        • Changing from static to templateLinked.

        • Changing the effect of the policy from permit or forbid.

        • The principal referenced by the policy.

        • The resource referenced by the policy.

        Returns:
        Specifies the updated policy content that you want to replace on the specified policy. The content must be valid Cedar policy language text.

        You can change only the following elements from the policy definition:

        • The action referenced by the policy.

        • Any conditional clauses, such as when or unless clauses.

        You can't change the following elements:

        • Changing from static to templateLinked.

        • Changing the effect of the policy from permit or forbid.

        • The principal referenced by the policy.

        • The resource referenced by the policy.

      • withDefinition

        public UpdatePolicyRequest withDefinition(UpdatePolicyDefinition definition)

        Specifies the updated policy content that you want to replace on the specified policy. The content must be valid Cedar policy language text.

        You can change only the following elements from the policy definition:

        • The action referenced by the policy.

        • Any conditional clauses, such as when or unless clauses.

        You can't change the following elements:

        • Changing from static to templateLinked.

        • Changing the effect of the policy from permit or forbid.

        • The principal referenced by the policy.

        • The resource referenced by the policy.

        Parameters:
        definition - Specifies the updated policy content that you want to replace on the specified policy. The content must be valid Cedar policy language text.

        You can change only the following elements from the policy definition:

        • The action referenced by the policy.

        • Any conditional clauses, such as when or unless clauses.

        You can't change the following elements:

        • Changing from static to templateLinked.

        • Changing the effect of the policy from permit or forbid.

        • The principal referenced by the policy.

        • The resource referenced by the policy.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /