@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CredentialPair extends Object implements Serializable, Cloneable, StructuredPojo
The combination of user name and password that are used as credentials.
Constructor and Description |
---|
CredentialPair() |
Modifier and Type | Method and Description |
---|---|
CredentialPair |
clone() |
boolean |
equals(Object obj) |
List<DataSourceParameters> |
getAlternateDataSourceParameters()
A set of alternate data source parameters that you want to share for these credentials.
|
String |
getPassword()
Password.
|
String |
getUsername()
User name.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAlternateDataSourceParameters(Collection<DataSourceParameters> alternateDataSourceParameters)
A set of alternate data source parameters that you want to share for these credentials.
|
void |
setPassword(String password)
Password.
|
void |
setUsername(String username)
User name.
|
String |
toString()
Returns a string representation of this object.
|
CredentialPair |
withAlternateDataSourceParameters(Collection<DataSourceParameters> alternateDataSourceParameters)
A set of alternate data source parameters that you want to share for these credentials.
|
CredentialPair |
withAlternateDataSourceParameters(DataSourceParameters... alternateDataSourceParameters)
A set of alternate data source parameters that you want to share for these credentials.
|
CredentialPair |
withPassword(String password)
Password.
|
CredentialPair |
withUsername(String username)
User name.
|
public void setUsername(String username)
User name.
username
- User name.public String getUsername()
User name.
public CredentialPair withUsername(String username)
User name.
username
- User name.public void setPassword(String password)
Password.
password
- Password.public String getPassword()
Password.
public CredentialPair withPassword(String password)
Password.
password
- Password.public List<DataSourceParameters> getAlternateDataSourceParameters()
A set of alternate data source parameters that you want to share for these credentials. The credentials are
applied in tandem with the data source parameters when you copy a data source by using a create or update
request. The API operation compares the DataSourceParameters
structure that's in the request with
the structures in the AlternateDataSourceParameters
allowlist. If the structures are an exact match,
the request is allowed to use the new data source with the existing credentials. If the
AlternateDataSourceParameters
list is null, the DataSourceParameters
originally used
with these Credentials
is automatically allowed.
DataSourceParameters
structure that's in the
request with the structures in the AlternateDataSourceParameters
allowlist. If the
structures are an exact match, the request is allowed to use the new data source with the existing
credentials. If the AlternateDataSourceParameters
list is null, the
DataSourceParameters
originally used with these Credentials
is automatically
allowed.public void setAlternateDataSourceParameters(Collection<DataSourceParameters> alternateDataSourceParameters)
A set of alternate data source parameters that you want to share for these credentials. The credentials are
applied in tandem with the data source parameters when you copy a data source by using a create or update
request. The API operation compares the DataSourceParameters
structure that's in the request with
the structures in the AlternateDataSourceParameters
allowlist. If the structures are an exact match,
the request is allowed to use the new data source with the existing credentials. If the
AlternateDataSourceParameters
list is null, the DataSourceParameters
originally used
with these Credentials
is automatically allowed.
alternateDataSourceParameters
- A set of alternate data source parameters that you want to share for these credentials. The credentials
are applied in tandem with the data source parameters when you copy a data source by using a create or
update request. The API operation compares the DataSourceParameters
structure that's in the
request with the structures in the AlternateDataSourceParameters
allowlist. If the structures
are an exact match, the request is allowed to use the new data source with the existing credentials. If
the AlternateDataSourceParameters
list is null, the DataSourceParameters
originally used with these Credentials
is automatically allowed.public CredentialPair withAlternateDataSourceParameters(DataSourceParameters... alternateDataSourceParameters)
A set of alternate data source parameters that you want to share for these credentials. The credentials are
applied in tandem with the data source parameters when you copy a data source by using a create or update
request. The API operation compares the DataSourceParameters
structure that's in the request with
the structures in the AlternateDataSourceParameters
allowlist. If the structures are an exact match,
the request is allowed to use the new data source with the existing credentials. If the
AlternateDataSourceParameters
list is null, the DataSourceParameters
originally used
with these Credentials
is automatically allowed.
NOTE: This method appends the values to the existing list (if any). Use
setAlternateDataSourceParameters(java.util.Collection)
or
withAlternateDataSourceParameters(java.util.Collection)
if you want to override the existing values.
alternateDataSourceParameters
- A set of alternate data source parameters that you want to share for these credentials. The credentials
are applied in tandem with the data source parameters when you copy a data source by using a create or
update request. The API operation compares the DataSourceParameters
structure that's in the
request with the structures in the AlternateDataSourceParameters
allowlist. If the structures
are an exact match, the request is allowed to use the new data source with the existing credentials. If
the AlternateDataSourceParameters
list is null, the DataSourceParameters
originally used with these Credentials
is automatically allowed.public CredentialPair withAlternateDataSourceParameters(Collection<DataSourceParameters> alternateDataSourceParameters)
A set of alternate data source parameters that you want to share for these credentials. The credentials are
applied in tandem with the data source parameters when you copy a data source by using a create or update
request. The API operation compares the DataSourceParameters
structure that's in the request with
the structures in the AlternateDataSourceParameters
allowlist. If the structures are an exact match,
the request is allowed to use the new data source with the existing credentials. If the
AlternateDataSourceParameters
list is null, the DataSourceParameters
originally used
with these Credentials
is automatically allowed.
alternateDataSourceParameters
- A set of alternate data source parameters that you want to share for these credentials. The credentials
are applied in tandem with the data source parameters when you copy a data source by using a create or
update request. The API operation compares the DataSourceParameters
structure that's in the
request with the structures in the AlternateDataSourceParameters
allowlist. If the structures
are an exact match, the request is allowed to use the new data source with the existing credentials. If
the AlternateDataSourceParameters
list is null, the DataSourceParameters
originally used with these Credentials
is automatically allowed.public String toString()
toString
in class Object
Object.toString()
public CredentialPair clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.