Interface GrantListEntry.Builder

    • Method Detail

      • keyId

        GrantListEntry.Builder keyId​(String 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

        GrantListEntry.Builder name​(String 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

        GrantListEntry.Builder operations​(Collection<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.
      • 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.