Interface GrantListEntry.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<GrantListEntry.Builder,,GrantListEntry> SdkBuilder<GrantListEntry.Builder,,GrantListEntry> SdkPojo
- Enclosing class:
- GrantListEntry
-
Method Summary
Modifier and TypeMethodDescriptiondefault GrantListEntry.Builderconstraints(Consumer<GrantConstraints.Builder> constraints) The constraints on the grant, such as encryption context pairs or a SourceArn, that restrict the subsequent operations the grant allows.constraints(GrantConstraints constraints) The constraints on the grant, such as encryption context pairs or a SourceArn, that restrict the subsequent operations the grant allows.creationDate(Instant creationDate) The date and time when the grant was created.granteePrincipal(String granteePrincipal) The identity that gets the permissions in the grant.granteeServicePrincipal(String granteeServicePrincipal) The Amazon Web Services service principal that gets the permissions in the grant.The unique identifier for the grant.issuingAccount(String issuingAccount) The Amazon Web Services account under which the grant was issued.The unique identifier for the KMS key to which the grant applies.The friendly name that identifies the grant.operations(Collection<GrantOperation> operations) The list of operations permitted by the grant.operations(GrantOperation... operations) The list of operations permitted by the grant.operationsWithStrings(String... operations) The list of operations permitted by the grant.operationsWithStrings(Collection<String> operations) The list of operations permitted by the grant.retiringPrincipal(String retiringPrincipal) The principal that can retire the grant.retiringServicePrincipal(String retiringServicePrincipal) The Amazon Web Services service principal that can retire the grant.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
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
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
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
The identity that gets the permissions in the grant.
When a grant is created with the
GranteePrincipalfield, theListGrantsresponse usually contains the user or role designated as the grantee principal in the grant. However, if the grantee principal is an Amazon Web Services service, theGranteePrincipalfield contains an Amazon Web Services service principal, which might correspond to several different grantee principals, such as an IAM user, IAM role, or Amazon Web Services account.- Parameters:
granteePrincipal- The identity that gets the permissions in the grant.When a grant is created with the
GranteePrincipalfield, theListGrantsresponse usually contains the user or role designated as the grantee principal in the grant. However, if the grantee principal is an Amazon Web Services service, theGranteePrincipalfield contains an Amazon Web Services service principal, which might correspond to several different grantee principals, such as an IAM user, IAM role, or Amazon Web Services account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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
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
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
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
The constraints on the grant, such as encryption context pairs or a SourceArn, that restrict the subsequent operations the grant allows.
- Parameters:
constraints- The constraints on the grant, such as encryption context pairs or a SourceArn, that restrict the subsequent operations the grant allows.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
constraints
The constraints on the grant, such as encryption context pairs or a SourceArn, that restrict the subsequent operations 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:
-
granteeServicePrincipal
The Amazon Web Services service principal that gets the permissions in the grant.
- Parameters:
granteeServicePrincipal- The Amazon Web Services service principal that gets the permissions in the grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retiringServicePrincipal
The Amazon Web Services service principal that can retire the grant.
- Parameters:
retiringServicePrincipal- The Amazon Web Services service principal that can retire the grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-