@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. | 
| 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. | 
| 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. | 
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.
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 String toString()
toString in class ObjectObject.toString()public DataSourceCredentials clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.