Interface GetPolicyResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CopyableBuilder<GetPolicyResponse.Builder,GetPolicyResponse>, SdkBuilder<GetPolicyResponse.Builder,GetPolicyResponse>, SdkPojo, SdkResponse.Builder, VerifiedPermissionsResponse.Builder
Enclosing class:
GetPolicyResponse

  • Method Details

    • policyStoreId

      GetPolicyResponse.Builder policyStoreId(String policyStoreId)

      The ID of the policy store that contains the policy that you want information about.

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

      GetPolicyResponse.Builder policyId(String policyId)

      The unique ID of the policy that you want information about.

      Parameters:
      policyId - The unique ID of the policy that you want information about.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policyType

      GetPolicyResponse.Builder policyType(String policyType)

      The type of the policy.

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

      GetPolicyResponse.Builder policyType(PolicyType policyType)

      The type of the policy.

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

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

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

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

      This is a convenience method that creates an instance of the EntityIdentifier.Builder avoiding the need to create one manually via EntityIdentifier.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to principal(EntityIdentifier).

      Parameters:
      principal - a consumer that will call methods on EntityIdentifier.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • resource

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

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

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

      This is a convenience method that creates an instance of the EntityIdentifier.Builder avoiding the need to create one manually via EntityIdentifier.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to resource(EntityIdentifier).

      Parameters:
      resource - a consumer that will call methods on EntityIdentifier.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • definition

      The definition of the requested policy.

      Parameters:
      definition - The definition of the requested policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • definition

      The definition of the requested policy.

      This is a convenience method that creates an instance of the PolicyDefinitionDetail.Builder avoiding the need to create one manually via PolicyDefinitionDetail.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to definition(PolicyDefinitionDetail).

      Parameters:
      definition - a consumer that will call methods on PolicyDefinitionDetail.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • createdDate

      GetPolicyResponse.Builder createdDate(Instant createdDate)

      The date and time that the policy was originally created.

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

      GetPolicyResponse.Builder lastUpdatedDate(Instant lastUpdatedDate)

      The date and time that the policy was last updated.

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