Interface CreatePolicyResponse.Builder

    • Method Detail

      • policyStoreId

        CreatePolicyResponse.Builder policyStoreId​(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.
      • policyId

        CreatePolicyResponse.Builder policyId​(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.
      • policyType

        CreatePolicyResponse.Builder policyType​(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, PolicyType
      • policyType

        CreatePolicyResponse.Builder policyType​(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, PolicyType
      • principal

        CreatePolicyResponse.Builder principal​(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.
      • resource

        CreatePolicyResponse.Builder resource​(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.
      • createdDate

        CreatePolicyResponse.Builder createdDate​(Instant 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.
      • lastUpdatedDate

        CreatePolicyResponse.Builder lastUpdatedDate​(Instant 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.