Interface GrantListEntry.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<GrantListEntry.Builder,GrantListEntry>,SdkBuilder<GrantListEntry.Builder,GrantListEntry>,SdkPojo
- Enclosing class:
- GrantListEntry
public static interface GrantListEntry.Builder extends SdkPojo, CopyableBuilder<GrantListEntry.Builder,GrantListEntry>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default GrantListEntry.Builderconstraints(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.GrantListEntry.Builderconstraints(GrantConstraints constraints)A list of key-value pairs that must be present in the encryption context of certain subsequent operations that the grant allows.GrantListEntry.BuildercreationDate(Instant creationDate)The date and time when the grant was created.GrantListEntry.BuildergranteePrincipal(String granteePrincipal)The identity that gets the permissions in the grant.GrantListEntry.BuildergrantId(String grantId)The unique identifier for the grant.GrantListEntry.BuilderissuingAccount(String issuingAccount)The Amazon Web Services account under which the grant was issued.GrantListEntry.BuilderkeyId(String keyId)The unique identifier for the KMS key to which the grant applies.GrantListEntry.Buildername(String name)The friendly name that identifies the grant.GrantListEntry.Builderoperations(Collection<GrantOperation> operations)The list of operations permitted by the grant.GrantListEntry.Builderoperations(GrantOperation... operations)The list of operations permitted by the grant.GrantListEntry.BuilderoperationsWithStrings(String... operations)The list of operations permitted by the grant.GrantListEntry.BuilderoperationsWithStrings(Collection<String> operations)The list of operations permitted by the grant.GrantListEntry.BuilderretiringPrincipal(String retiringPrincipal)The principal that can retire the grant.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
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
GranteePrincipalfield in theListGrantsresponse 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, theGranteePrincipalfield contains the service principal, which might represent several different grantee principals.- Parameters:
granteePrincipal- The identity that gets the permissions in the grant.The
GranteePrincipalfield in theListGrantsresponse 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, theGranteePrincipalfield 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.
-
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 theGrantConstraints.Builderavoiding the need to create one manually viaGrantConstraints.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconstraints(GrantConstraints).- Parameters:
constraints- a consumer that will call methods onGrantConstraints.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
constraints(GrantConstraints)
-
-