@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DataSourceCredentials extends Object implements Serializable, Cloneable, StructuredPojo
Data source credentials. This is a variant type structure. For this structure to be valid, only one of the attributes can be non-null.
Constructor and Description |
---|
DataSourceCredentials() |
Modifier and Type | Method and Description |
---|---|
DataSourceCredentials |
clone() |
boolean |
equals(Object obj) |
String |
getCopySourceArn()
The Amazon Resource Name (ARN) of a data source that has the credential pair that you want to use.
|
CredentialPair |
getCredentialPair()
Credential pair.
|
String |
getSecretArn()
The Amazon Resource Name (ARN) of the secret associated with the data source in Amazon Secrets Manager.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCopySourceArn(String copySourceArn)
The Amazon Resource Name (ARN) of a data source that has the credential pair that you want to use.
|
void |
setCredentialPair(CredentialPair credentialPair)
Credential pair.
|
void |
setSecretArn(String secretArn)
The Amazon Resource Name (ARN) of the secret associated with the data source in Amazon Secrets Manager.
|
String |
toString()
Returns a string representation of this object.
|
DataSourceCredentials |
withCopySourceArn(String copySourceArn)
The Amazon Resource Name (ARN) of a data source that has the credential pair that you want to use.
|
DataSourceCredentials |
withCredentialPair(CredentialPair credentialPair)
Credential pair.
|
DataSourceCredentials |
withSecretArn(String secretArn)
The Amazon Resource Name (ARN) of the secret associated with the data source in Amazon Secrets Manager.
|
public void setCredentialPair(CredentialPair credentialPair)
Credential pair. For more information, see
CredentialPair
.
credentialPair
- Credential pair. For more information, see
CredentialPair
.public CredentialPair getCredentialPair()
Credential pair. For more information, see
CredentialPair
.
CredentialPair
.public DataSourceCredentials withCredentialPair(CredentialPair credentialPair)
Credential pair. For more information, see
CredentialPair
.
credentialPair
- Credential pair. For more information, see
CredentialPair
.public void setCopySourceArn(String copySourceArn)
The Amazon Resource Name (ARN) of a data source that has the credential pair that you want to use. When
CopySourceArn
is not null, the credential pair from the data source in the ARN is used as the
credentials for the DataSourceCredentials
structure.
copySourceArn
- The Amazon Resource Name (ARN) of a data source that has the credential pair that you want to use. When
CopySourceArn
is not null, the credential pair from the data source in the ARN is used as the
credentials for the DataSourceCredentials
structure.public String getCopySourceArn()
The Amazon Resource Name (ARN) of a data source that has the credential pair that you want to use. When
CopySourceArn
is not null, the credential pair from the data source in the ARN is used as the
credentials for the DataSourceCredentials
structure.
CopySourceArn
is not null, the credential pair from the data source in the ARN is used as
the credentials for the DataSourceCredentials
structure.public DataSourceCredentials withCopySourceArn(String copySourceArn)
The Amazon Resource Name (ARN) of a data source that has the credential pair that you want to use. When
CopySourceArn
is not null, the credential pair from the data source in the ARN is used as the
credentials for the DataSourceCredentials
structure.
copySourceArn
- The Amazon Resource Name (ARN) of a data source that has the credential pair that you want to use. When
CopySourceArn
is not null, the credential pair from the data source in the ARN is used as the
credentials for the DataSourceCredentials
structure.public void setSecretArn(String secretArn)
The Amazon Resource Name (ARN) of the secret associated with the data source in Amazon Secrets Manager.
secretArn
- The Amazon Resource Name (ARN) of the secret associated with the data source in Amazon Secrets Manager.public String getSecretArn()
The Amazon Resource Name (ARN) of the secret associated with the data source in Amazon Secrets Manager.
public DataSourceCredentials withSecretArn(String secretArn)
The Amazon Resource Name (ARN) of the secret associated with the data source in Amazon Secrets Manager.
secretArn
- The Amazon Resource Name (ARN) of the secret associated with the data source in Amazon Secrets Manager.public String toString()
toString
in class Object
Object.toString()
public DataSourceCredentials clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.