Interface ReplicateKeyResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ReplicateKeyResponse.Builder,ReplicateKeyResponse>,KmsResponse.Builder,SdkBuilder<ReplicateKeyResponse.Builder,ReplicateKeyResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- ReplicateKeyResponse
@Mutable @NotThreadSafe public static interface ReplicateKeyResponse.Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<ReplicateKeyResponse.Builder,ReplicateKeyResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ReplicateKeyResponse.BuilderreplicaKeyMetadata(Consumer<KeyMetadata.Builder> replicaKeyMetadata)Displays details about the new replica key, including its Amazon Resource Name (key ARN) and Key states of KMS keys.ReplicateKeyResponse.BuilderreplicaKeyMetadata(KeyMetadata replicaKeyMetadata)Displays details about the new replica key, including its Amazon Resource Name (key ARN) and Key states of KMS keys.ReplicateKeyResponse.BuilderreplicaPolicy(String replicaPolicy)The key policy of the new replica key.ReplicateKeyResponse.BuilderreplicaTags(Collection<Tag> replicaTags)The tags on the new replica key.ReplicateKeyResponse.BuilderreplicaTags(Consumer<Tag.Builder>... replicaTags)The tags on the new replica key.ReplicateKeyResponse.BuilderreplicaTags(Tag... replicaTags)The tags on the new replica key.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.kms.model.KmsResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
replicaKeyMetadata
ReplicateKeyResponse.Builder replicaKeyMetadata(KeyMetadata replicaKeyMetadata)
Displays details about the new replica key, including its Amazon Resource Name (key ARN) and Key states of KMS keys. It also includes the ARN and Amazon Web Services Region of its primary key and other replica keys.
- Parameters:
replicaKeyMetadata- Displays details about the new replica key, including its Amazon Resource Name (key ARN) and Key states of KMS keys. It also includes the ARN and Amazon Web Services Region of its primary key and other replica keys.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
replicaKeyMetadata
default ReplicateKeyResponse.Builder replicaKeyMetadata(Consumer<KeyMetadata.Builder> replicaKeyMetadata)
Displays details about the new replica key, including its Amazon Resource Name (key ARN) and Key states of KMS keys. It also includes the ARN and Amazon Web Services Region of its primary key and other replica keys.
This is a convenience method that creates an instance of theKeyMetadata.Builderavoiding the need to create one manually viaKeyMetadata.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toreplicaKeyMetadata(KeyMetadata).- Parameters:
replicaKeyMetadata- a consumer that will call methods onKeyMetadata.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
replicaKeyMetadata(KeyMetadata)
-
replicaPolicy
ReplicateKeyResponse.Builder replicaPolicy(String replicaPolicy)
The key policy of the new replica key. The value is a key policy document in JSON format.
- Parameters:
replicaPolicy- The key policy of the new replica key. The value is a key policy document in JSON format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
replicaTags
ReplicateKeyResponse.Builder replicaTags(Collection<Tag> replicaTags)
The tags on the new replica key. The value is a list of tag key and tag value pairs.
- Parameters:
replicaTags- The tags on the new replica key. The value is a list of tag key and tag value pairs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
replicaTags
ReplicateKeyResponse.Builder replicaTags(Tag... replicaTags)
The tags on the new replica key. The value is a list of tag key and tag value pairs.
- Parameters:
replicaTags- The tags on the new replica key. The value is a list of tag key and tag value pairs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
replicaTags
ReplicateKeyResponse.Builder replicaTags(Consumer<Tag.Builder>... replicaTags)
The tags on the new replica key. The value is a list of tag key and tag value pairs.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#replicaTags(List.) - Parameters:
replicaTags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#replicaTags(java.util.Collection)
-
-