Interface AssociatedAccessPolicy.Builder

  • Method Details

    • policyArn

      AssociatedAccessPolicy.Builder policyArn(String policyArn)

      The ARN of the AccessPolicy.

      Parameters:
      policyArn - The ARN of the AccessPolicy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • accessScope

      AssociatedAccessPolicy.Builder accessScope(AccessScope accessScope)

      The scope of the access policy.

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

      default AssociatedAccessPolicy.Builder accessScope(Consumer<AccessScope.Builder> accessScope)

      The scope of the access policy.

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

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

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

      AssociatedAccessPolicy.Builder associatedAt(Instant associatedAt)

      The date and time the AccessPolicy was associated with an AccessEntry.

      Parameters:
      associatedAt - The date and time the AccessPolicy was associated with an AccessEntry.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • modifiedAt

      AssociatedAccessPolicy.Builder modifiedAt(Instant modifiedAt)

      The Unix epoch timestamp for the last modification to the object.

      Parameters:
      modifiedAt - The Unix epoch timestamp for the last modification to the object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.