Interface CreateSecretResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CreateSecretResponse.Builder,,CreateSecretResponse> SdkBuilder<CreateSecretResponse.Builder,,CreateSecretResponse> SdkPojo,SdkResponse.Builder,SecretsManagerResponse.Builder
- Enclosing class:
CreateSecretResponse
-
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the new secret.The name of the new secret.replicationStatus(Collection<ReplicationStatusType> replicationStatus) A list of the replicas of this secret and their status:replicationStatus(Consumer<ReplicationStatusType.Builder>... replicationStatus) A list of the replicas of this secret and their status:replicationStatus(ReplicationStatusType... replicationStatus) A list of the replicas of this secret and their status:The unique identifier associated with the version of the new secret.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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponseMethods inherited from interface software.amazon.awssdk.services.secretsmanager.model.SecretsManagerResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
arn
The ARN of the new secret. The ARN includes the name of the secret followed by six random characters. This ensures that if you create a new secret with the same name as a deleted secret, then users with access to the old secret don't get access to the new secret because the ARNs are different.
- Parameters:
arn- The ARN of the new secret. The ARN includes the name of the secret followed by six random characters. This ensures that if you create a new secret with the same name as a deleted secret, then users with access to the old secret don't get access to the new secret because the ARNs are different.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the new secret.
- Parameters:
name- The name of the new secret.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
versionId
The unique identifier associated with the version of the new secret.
- Parameters:
versionId- The unique identifier associated with the version of the new secret.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
replicationStatus
A list of the replicas of this secret and their status:
-
Failed, which indicates that the replica was not created. -
InProgress, which indicates that Secrets Manager is in the process of creating the replica. -
InSync, which indicates that the replica was created.
- Parameters:
replicationStatus- A list of the replicas of this secret and their status:-
Failed, which indicates that the replica was not created. -
InProgress, which indicates that Secrets Manager is in the process of creating the replica. -
InSync, which indicates that the replica was created.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
replicationStatus
A list of the replicas of this secret and their status:
-
Failed, which indicates that the replica was not created. -
InProgress, which indicates that Secrets Manager is in the process of creating the replica. -
InSync, which indicates that the replica was created.
- Parameters:
replicationStatus- A list of the replicas of this secret and their status:-
Failed, which indicates that the replica was not created. -
InProgress, which indicates that Secrets Manager is in the process of creating the replica. -
InSync, which indicates that the replica was created.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
replicationStatus
CreateSecretResponse.Builder replicationStatus(Consumer<ReplicationStatusType.Builder>... replicationStatus) A list of the replicas of this secret and their status:
-
Failed, which indicates that the replica was not created. -
InProgress, which indicates that Secrets Manager is in the process of creating the replica. -
InSync, which indicates that the replica was created.
ReplicationStatusType.Builderavoiding the need to create one manually viaReplicationStatusType.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toreplicationStatus(List<ReplicationStatusType>).- Parameters:
replicationStatus- a consumer that will call methods onReplicationStatusType.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-