@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) |
String |
getPassword()
Password.
|
String |
getUsername()
User name.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setPassword(String password)
Password.
|
void |
setUsername(String username)
User name.
|
String |
toString()
Returns a string representation of this object.
|
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 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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.