Interface CreateSecretResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CreateSecretResponse.Builder,CreateSecretResponse>,SdkBuilder<CreateSecretResponse.Builder,CreateSecretResponse>,SdkPojo,SdkResponse.Builder,SecretsManagerResponse.Builder
- Enclosing class:
- CreateSecretResponse
public static interface CreateSecretResponse.Builder extends SecretsManagerResponse.Builder, SdkPojo, CopyableBuilder<CreateSecretResponse.Builder,CreateSecretResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateSecretResponse.Builderarn(String arn)The ARN of the new secret.CreateSecretResponse.Buildername(String name)The name of the new secret.CreateSecretResponse.BuilderreplicationStatus(Collection<ReplicationStatusType> replicationStatus)A list of the replicas of this secret and their status:CreateSecretResponse.BuilderreplicationStatus(Consumer<ReplicationStatusType.Builder>... replicationStatus)A list of the replicas of this secret and their status:CreateSecretResponse.BuilderreplicationStatus(ReplicationStatusType... replicationStatus)A list of the replicas of this secret and their status:CreateSecretResponse.BuilderversionId(String versionId)The unique identifier associated with the version of the new secret.-
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
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Methods inherited from interface software.amazon.awssdk.services.secretsmanager.model.SecretsManagerResponse.Builder
build, responseMetadata, responseMetadata
-
-
-
-
Method Detail
-
arn
CreateSecretResponse.Builder arn(String 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
CreateSecretResponse.Builder name(String 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
CreateSecretResponse.Builder versionId(String 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
CreateSecretResponse.Builder replicationStatus(Collection<ReplicationStatusType> 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(ReplicationStatusType... 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 to#replicationStatus(List.) - 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:
#replicationStatus(java.util.Collection)
-
-
-