@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Credentials extends Object implements Serializable, Cloneable, StructuredPojo
The credentials that provide DataSync Discovery read access to your on-premises storage system's management interface.
DataSync Discovery stores these credentials in Secrets Manager. For more information, see Accessing your on-premises storage system.
Constructor and Description |
---|
Credentials() |
Modifier and Type | Method and Description |
---|---|
Credentials |
clone() |
boolean |
equals(Object obj) |
String |
getPassword()
Specifies the password for your storage system's management interface.
|
String |
getUsername()
Specifies the user name for your storage system's management interface.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setPassword(String password)
Specifies the password for your storage system's management interface.
|
void |
setUsername(String username)
Specifies the user name for your storage system's management interface.
|
String |
toString()
Returns a string representation of this object.
|
Credentials |
withPassword(String password)
Specifies the password for your storage system's management interface.
|
Credentials |
withUsername(String username)
Specifies the user name for your storage system's management interface.
|
public void setUsername(String username)
Specifies the user name for your storage system's management interface.
username
- Specifies the user name for your storage system's management interface.public String getUsername()
Specifies the user name for your storage system's management interface.
public Credentials withUsername(String username)
Specifies the user name for your storage system's management interface.
username
- Specifies the user name for your storage system's management interface.public void setPassword(String password)
Specifies the password for your storage system's management interface.
password
- Specifies the password for your storage system's management interface.public String getPassword()
Specifies the password for your storage system's management interface.
public Credentials withPassword(String password)
Specifies the password for your storage system's management interface.
password
- Specifies the password for your storage system's management interface.public String toString()
toString
in class Object
Object.toString()
public Credentials clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.