@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AuthenticationMode extends Object implements Serializable, Cloneable
Specifies the authentication mode to use.
Constructor and Description |
---|
AuthenticationMode() |
Modifier and Type | Method and Description |
---|---|
AuthenticationMode |
clone() |
boolean |
equals(Object obj) |
List<String> |
getPasswords()
Specifies the passwords to use for authentication if
Type is set to password . |
String |
getType()
Specifies the authentication type.
|
int |
hashCode() |
void |
setPasswords(Collection<String> passwords)
Specifies the passwords to use for authentication if
Type is set to password . |
void |
setType(String type)
Specifies the authentication type.
|
String |
toString()
Returns a string representation of this object.
|
AuthenticationMode |
withPasswords(Collection<String> passwords)
Specifies the passwords to use for authentication if
Type is set to password . |
AuthenticationMode |
withPasswords(String... passwords)
Specifies the passwords to use for authentication if
Type is set to password . |
AuthenticationMode |
withType(InputAuthenticationType type)
Specifies the authentication type.
|
AuthenticationMode |
withType(String type)
Specifies the authentication type.
|
public void setType(String type)
Specifies the authentication type. Possible options are IAM authentication, password and no password.
type
- Specifies the authentication type. Possible options are IAM authentication, password and no password.InputAuthenticationType
public String getType()
Specifies the authentication type. Possible options are IAM authentication, password and no password.
InputAuthenticationType
public AuthenticationMode withType(String type)
Specifies the authentication type. Possible options are IAM authentication, password and no password.
type
- Specifies the authentication type. Possible options are IAM authentication, password and no password.InputAuthenticationType
public AuthenticationMode withType(InputAuthenticationType type)
Specifies the authentication type. Possible options are IAM authentication, password and no password.
type
- Specifies the authentication type. Possible options are IAM authentication, password and no password.InputAuthenticationType
public List<String> getPasswords()
Specifies the passwords to use for authentication if Type
is set to password
.
Type
is set to password
.public void setPasswords(Collection<String> passwords)
Specifies the passwords to use for authentication if Type
is set to password
.
passwords
- Specifies the passwords to use for authentication if Type
is set to password
.public AuthenticationMode withPasswords(String... passwords)
Specifies the passwords to use for authentication if Type
is set to password
.
NOTE: This method appends the values to the existing list (if any). Use
setPasswords(java.util.Collection)
or withPasswords(java.util.Collection)
if you want to
override the existing values.
passwords
- Specifies the passwords to use for authentication if Type
is set to password
.public AuthenticationMode withPasswords(Collection<String> passwords)
Specifies the passwords to use for authentication if Type
is set to password
.
passwords
- Specifies the passwords to use for authentication if Type
is set to password
.public String toString()
toString
in class Object
Object.toString()
public AuthenticationMode clone()