@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateSecretResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
CreateSecretResult() |
Modifier and Type | Method and Description |
---|---|
CreateSecretResult |
clone() |
boolean |
equals(Object obj) |
String |
getARN()
The ARN of the new secret.
|
String |
getName()
The name of the new secret.
|
List<ReplicationStatusType> |
getReplicationStatus()
A list of the replicas of this secret and their status:
|
String |
getVersionId()
The unique identifier associated with the version of the new secret.
|
int |
hashCode() |
void |
setARN(String aRN)
The ARN of the new secret.
|
void |
setName(String name)
The name of the new secret.
|
void |
setReplicationStatus(Collection<ReplicationStatusType> replicationStatus)
A list of the replicas of this secret and their status:
|
void |
setVersionId(String versionId)
The unique identifier associated with the version of the new secret.
|
String |
toString()
Returns a string representation of this object.
|
CreateSecretResult |
withARN(String aRN)
The ARN of the new secret.
|
CreateSecretResult |
withName(String name)
The name of the new secret.
|
CreateSecretResult |
withReplicationStatus(Collection<ReplicationStatusType> replicationStatus)
A list of the replicas of this secret and their status:
|
CreateSecretResult |
withReplicationStatus(ReplicationStatusType... replicationStatus)
A list of the replicas of this secret and their status:
|
CreateSecretResult |
withVersionId(String versionId)
The unique identifier associated with the version of the new secret.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setARN(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.
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.public String getARN()
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.
public CreateSecretResult withARN(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.
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.public void setName(String name)
The name of the new secret.
name
- The name of the new secret.public String getName()
The name of the new secret.
public CreateSecretResult withName(String name)
The name of the new secret.
name
- The name of the new secret.public void setVersionId(String versionId)
The unique identifier associated with the version of the new secret.
versionId
- The unique identifier associated with the version of the new secret.public String getVersionId()
The unique identifier associated with the version of the new secret.
public CreateSecretResult withVersionId(String versionId)
The unique identifier associated with the version of the new secret.
versionId
- The unique identifier associated with the version of the new secret.public List<ReplicationStatusType> getReplicationStatus()
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.
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.
public void setReplicationStatus(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.
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.
public CreateSecretResult withReplicationStatus(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.
NOTE: This method appends the values to the existing list (if any). Use
setReplicationStatus(java.util.Collection)
or withReplicationStatus(java.util.Collection)
if
you want to override the existing values.
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.
public CreateSecretResult withReplicationStatus(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.
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.
public String toString()
toString
in class Object
Object.toString()
public CreateSecretResult clone()