Class RedshiftDatabaseCredentials
- java.lang.Object
-
- com.amazonaws.services.machinelearning.model.RedshiftDatabaseCredentials
-
- All Implemented Interfaces:
Serializable,Cloneable
public class RedshiftDatabaseCredentials extends Object implements Serializable, Cloneable
Describes the database credentials for connecting to a database on an Amazon Redshift cluster.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RedshiftDatabaseCredentials()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RedshiftDatabaseCredentialsclone()booleanequals(Object obj)StringgetPassword()StringgetUsername()inthashCode()voidsetPassword(String password)voidsetUsername(String username)StringtoString()Returns a string representation of this object; useful for testing and debugging.RedshiftDatabaseCredentialswithPassword(String password)RedshiftDatabaseCredentialswithUsername(String username)
-
-
-
Method Detail
-
setUsername
public void setUsername(String username)
- Parameters:
username-
-
getUsername
public String getUsername()
- Returns:
-
withUsername
public RedshiftDatabaseCredentials withUsername(String username)
- Parameters:
username-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPassword
public void setPassword(String password)
- Parameters:
password-
-
getPassword
public String getPassword()
- Returns:
-
withPassword
public RedshiftDatabaseCredentials withPassword(String password)
- Parameters:
password-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public RedshiftDatabaseCredentials clone()
-
-