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 CreatePolicyResult

    • Constructor Detail

      • CreatePolicyResult

        public CreatePolicyResult()
    • Method Detail

      • setPolicyStoreId

        public void setPolicyStoreId(String policyStoreId)

        The ID of the policy store that contains the new policy.

        Parameters:
        policyStoreId - The ID of the policy store that contains the new policy.
      • getPolicyStoreId

        public String getPolicyStoreId()

        The ID of the policy store that contains the new policy.

        Returns:
        The ID of the policy store that contains the new policy.
      • withPolicyStoreId

        public CreatePolicyResult withPolicyStoreId(String policyStoreId)

        The ID of the policy store that contains the new policy.

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

        public void setPolicyId(String policyId)

        The unique ID of the new policy.

        Parameters:
        policyId - The unique ID of the new policy.
      • getPolicyId

        public String getPolicyId()

        The unique ID of the new policy.

        Returns:
        The unique ID of the new policy.
      • withPolicyId

        public CreatePolicyResult withPolicyId(String policyId)

        The unique ID of the new policy.

        Parameters:
        policyId - The unique ID of the new policy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setPolicyType

        public void setPolicyType(String policyType)

        The policy type of the new policy.

        Parameters:
        policyType - The policy type of the new policy.
        See Also:
        PolicyType
      • getPolicyType

        public String getPolicyType()

        The policy type of the new policy.

        Returns:
        The policy type of the new policy.
        See Also:
        PolicyType
      • withPolicyType

        public CreatePolicyResult withPolicyType(String policyType)

        The policy type of the new policy.

        Parameters:
        policyType - The policy type of the new policy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        PolicyType
      • withPolicyType

        public CreatePolicyResult withPolicyType(PolicyType policyType)

        The policy type of the new policy.

        Parameters:
        policyType - The policy type of the new policy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        PolicyType
      • setPrincipal

        public void setPrincipal(EntityIdentifier principal)

        The principal specified in the new policy's scope. This response element isn't present when principal isn't specified in the policy content.

        Parameters:
        principal - The principal specified in the new policy's scope. This response element isn't present when principal isn't specified in the policy content.
      • getPrincipal

        public EntityIdentifier getPrincipal()

        The principal specified in the new policy's scope. This response element isn't present when principal isn't specified in the policy content.

        Returns:
        The principal specified in the new policy's scope. This response element isn't present when principal isn't specified in the policy content.
      • withPrincipal

        public CreatePolicyResult withPrincipal(EntityIdentifier principal)

        The principal specified in the new policy's scope. This response element isn't present when principal isn't specified in the policy content.

        Parameters:
        principal - The principal specified in the new policy's scope. This response element isn't present when principal isn't specified in the policy content.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setResource

        public void setResource(EntityIdentifier resource)

        The resource specified in the new policy's scope. This response element isn't present when the resource isn't specified in the policy content.

        Parameters:
        resource - The resource specified in the new policy's scope. This response element isn't present when the resource isn't specified in the policy content.
      • getResource

        public EntityIdentifier getResource()

        The resource specified in the new policy's scope. This response element isn't present when the resource isn't specified in the policy content.

        Returns:
        The resource specified in the new policy's scope. This response element isn't present when the resource isn't specified in the policy content.
      • withResource

        public CreatePolicyResult withResource(EntityIdentifier resource)

        The resource specified in the new policy's scope. This response element isn't present when the resource isn't specified in the policy content.

        Parameters:
        resource - The resource specified in the new policy's scope. This response element isn't present when the resource isn't specified in the policy content.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getActions

        public List<ActionIdentifier> getActions()

        The action that a policy permits or forbids. For example, {"actions": [{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"}, {"entityID": "SharePhoto", "entityType": "PhotoFlash::Action"}]} .

        Returns:
        The action that a policy permits or forbids. For example, {"actions": [{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"}, {"entityID": "SharePhoto", "entityType": "PhotoFlash::Action"}]} .
      • setActions

        public void setActions(Collection<ActionIdentifier> actions)

        The action that a policy permits or forbids. For example, {"actions": [{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"}, {"entityID": "SharePhoto", "entityType": "PhotoFlash::Action"}]} .

        Parameters:
        actions - The action that a policy permits or forbids. For example, {"actions": [{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"}, {"entityID": "SharePhoto", "entityType": "PhotoFlash::Action"}]} .
      • withActions

        public CreatePolicyResult withActions(ActionIdentifier... actions)

        The action that a policy permits or forbids. For example, {"actions": [{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"}, {"entityID": "SharePhoto", "entityType": "PhotoFlash::Action"}]} .

        NOTE: This method appends the values to the existing list (if any). Use setActions(java.util.Collection) or withActions(java.util.Collection) if you want to override the existing values.

        Parameters:
        actions - The action that a policy permits or forbids. For example, {"actions": [{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"}, {"entityID": "SharePhoto", "entityType": "PhotoFlash::Action"}]} .
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withActions

        public CreatePolicyResult withActions(Collection<ActionIdentifier> actions)

        The action that a policy permits or forbids. For example, {"actions": [{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"}, {"entityID": "SharePhoto", "entityType": "PhotoFlash::Action"}]} .

        Parameters:
        actions - The action that a policy permits or forbids. For example, {"actions": [{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"}, {"entityID": "SharePhoto", "entityType": "PhotoFlash::Action"}]} .
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setCreatedDate

        public void setCreatedDate(Date createdDate)

        The date and time the policy was originally created.

        Parameters:
        createdDate - The date and time the policy was originally created.
      • getCreatedDate

        public Date getCreatedDate()

        The date and time the policy was originally created.

        Returns:
        The date and time the policy was originally created.
      • withCreatedDate

        public CreatePolicyResult withCreatedDate(Date createdDate)

        The date and time the policy was originally created.

        Parameters:
        createdDate - The date and time the policy was originally created.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setLastUpdatedDate

        public void setLastUpdatedDate(Date lastUpdatedDate)

        The date and time the policy was last updated.

        Parameters:
        lastUpdatedDate - The date and time the policy was last updated.
      • getLastUpdatedDate

        public Date getLastUpdatedDate()

        The date and time the policy was last updated.

        Returns:
        The date and time the policy was last updated.
      • withLastUpdatedDate

        public CreatePolicyResult withLastUpdatedDate(Date lastUpdatedDate)

        The date and time the policy was last updated.

        Parameters:
        lastUpdatedDate - The date and time the policy was last updated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setEffect

        public void setEffect(String effect)

        The effect of the decision that a policy returns to an authorization request. For example, "effect": "Permit".

        Parameters:
        effect - The effect of the decision that a policy returns to an authorization request. For example, "effect": "Permit".
        See Also:
        PolicyEffect
      • getEffect

        public String getEffect()

        The effect of the decision that a policy returns to an authorization request. For example, "effect": "Permit".

        Returns:
        The effect of the decision that a policy returns to an authorization request. For example, "effect": "Permit".
        See Also:
        PolicyEffect
      • withEffect

        public CreatePolicyResult withEffect(String effect)

        The effect of the decision that a policy returns to an authorization request. For example, "effect": "Permit".

        Parameters:
        effect - The effect of the decision that a policy returns to an authorization request. For example, "effect": "Permit".
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        PolicyEffect
      • withEffect

        public CreatePolicyResult withEffect(PolicyEffect effect)

        The effect of the decision that a policy returns to an authorization request. For example, "effect": "Permit".

        Parameters:
        effect - The effect of the decision that a policy returns to an authorization request. For example, "effect": "Permit".
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        PolicyEffect
      • 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 によって変換されたページ (->オリジナル) /