Interface GrantListEntry.Builder

All Superinterfaces:
Buildable, CopyableBuilder<GrantListEntry.Builder,GrantListEntry>, SdkBuilder<GrantListEntry.Builder,GrantListEntry>, SdkPojo
Enclosing class:
GrantListEntry

@Mutable @NotThreadSafe public static interface GrantListEntry.Builder extends SdkPojo, CopyableBuilder<GrantListEntry.Builder,GrantListEntry>
  • Method Details

    • keyId

      The unique identifier for the KMS key to which the grant applies.

      Parameters:
      keyId - The unique identifier for the KMS key to which the grant applies.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • grantId

      GrantListEntry.Builder grantId(String grantId)

      The unique identifier for the grant.

      Parameters:
      grantId - The unique identifier for the grant.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The friendly name that identifies the grant. If a name was provided in the CreateGrant request, that name is returned. Otherwise this value is null.

      Parameters:
      name - The friendly name that identifies the grant. If a name was provided in the CreateGrant request, that name is returned. Otherwise this value is null.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • creationDate

      GrantListEntry.Builder creationDate(Instant creationDate)

      The date and time when the grant was created.

      Parameters:
      creationDate - The date and time when the grant was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • granteePrincipal

      GrantListEntry.Builder granteePrincipal(String granteePrincipal)

      The identity that gets the permissions in the grant.

      The GranteePrincipal field in the ListGrants response usually contains the user or role designated as the grantee principal in the grant. However, when the grantee principal in the grant is an Amazon Web Services service, the GranteePrincipal field contains the service principal, which might represent several different grantee principals.

      Parameters:
      granteePrincipal - The identity that gets the permissions in the grant.

      The GranteePrincipal field in the ListGrants response usually contains the user or role designated as the grantee principal in the grant. However, when the grantee principal in the grant is an Amazon Web Services service, the GranteePrincipal field contains the service principal, which might represent several different grantee principals.

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

      GrantListEntry.Builder retiringPrincipal(String retiringPrincipal)

      The principal that can retire the grant.

      Parameters:
      retiringPrincipal - The principal that can retire the grant.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • issuingAccount

      GrantListEntry.Builder issuingAccount(String issuingAccount)

      The Amazon Web Services account under which the grant was issued.

      Parameters:
      issuingAccount - The Amazon Web Services account under which the grant was issued.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • operationsWithStrings

      GrantListEntry.Builder operationsWithStrings(Collection<String> operations)

      The list of operations permitted by the grant.

      Parameters:
      operations - The list of operations permitted by the grant.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • operationsWithStrings

      GrantListEntry.Builder operationsWithStrings(String... operations)

      The list of operations permitted by the grant.

      Parameters:
      operations - The list of operations permitted by the grant.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • operations

      The list of operations permitted by the grant.

      Parameters:
      operations - The list of operations permitted by the grant.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • operations

      GrantListEntry.Builder operations(GrantOperation... operations)

      The list of operations permitted by the grant.

      Parameters:
      operations - The list of operations permitted by the grant.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • constraints

      GrantListEntry.Builder constraints(GrantConstraints constraints)

      A list of key-value pairs that must be present in the encryption context of certain subsequent operations that the grant allows.

      Parameters:
      constraints - A list of key-value pairs that must be present in the encryption context of certain subsequent operations that the grant allows.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • constraints

      default GrantListEntry.Builder constraints(Consumer<GrantConstraints.Builder> constraints)

      A list of key-value pairs that must be present in the encryption context of certain subsequent operations that the grant allows.

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

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

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