@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AuthenticationMode extends Object implements Serializable, Cloneable, StructuredPojo
Denotes the user's authentication properties, such as whether it requires a password to authenticate. Used in output responses.
Constructor and Description |
---|
AuthenticationMode() |
Modifier and Type | Method and Description |
---|---|
AuthenticationMode |
clone() |
boolean |
equals(Object obj) |
List<String> |
getPasswords()
The password(s) used for authentication
|
String |
getType()
Indicates whether the user requires a password to authenticate.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setPasswords(Collection<String> passwords)
The password(s) used for authentication
|
void |
setType(String type)
Indicates whether the user requires a password to authenticate.
|
String |
toString()
Returns a string representation of this object.
|
AuthenticationMode |
withPasswords(Collection<String> passwords)
The password(s) used for authentication
|
AuthenticationMode |
withPasswords(String... passwords)
The password(s) used for authentication
|
AuthenticationMode |
withType(InputAuthenticationType type)
Indicates whether the user requires a password to authenticate.
|
AuthenticationMode |
withType(String type)
Indicates whether the user requires a password to authenticate.
|
public void setType(String type)
Indicates whether the user requires a password to authenticate. All newly-created users require a password.
type
- Indicates whether the user requires a password to authenticate. All newly-created users require a
password.InputAuthenticationType
public String getType()
Indicates whether the user requires a password to authenticate. All newly-created users require a password.
InputAuthenticationType
public AuthenticationMode withType(String type)
Indicates whether the user requires a password to authenticate. All newly-created users require a password.
type
- Indicates whether the user requires a password to authenticate. All newly-created users require a
password.InputAuthenticationType
public AuthenticationMode withType(InputAuthenticationType type)
Indicates whether the user requires a password to authenticate. All newly-created users require a password.
type
- Indicates whether the user requires a password to authenticate. All newly-created users require a
password.InputAuthenticationType
public List<String> getPasswords()
The password(s) used for authentication
public void setPasswords(Collection<String> passwords)
The password(s) used for authentication
passwords
- The password(s) used for authenticationpublic AuthenticationMode withPasswords(String... passwords)
The password(s) used for authentication
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
- The password(s) used for authenticationpublic AuthenticationMode withPasswords(Collection<String> passwords)
The password(s) used for authentication
passwords
- The password(s) used for authenticationpublic String toString()
toString
in class Object
Object.toString()
public AuthenticationMode clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.