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 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

      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.

      This is a convenience method that creates an instance of the ReplicationStatusType.Builder avoiding the need to create one manually via ReplicationStatusType.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to replicationStatus(List<ReplicationStatusType>).

      Parameters:
      replicationStatus - a consumer that will call methods on ReplicationStatusType.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: