public class AddAccountRequest
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
AddAccountRequest.Builder |
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
AddAccountRequest() |
AddAccountRequest(java.lang.String username,
Optional<CHAPSecret> initiatorSecret,
Optional<CHAPSecret> targetSecret,
Optional<Attributes> attributes) |
AddAccountRequest(java.lang.String username,
Optional<CHAPSecret> initiatorSecret,
Optional<CHAPSecret> targetSecret,
Optional<Attributes> attributes,
Optional<java.lang.Boolean> enableChap) |
Modifier and Type | Method and Description |
---|---|
AddAccountRequest.Builder |
asBuilder() |
static AddAccountRequest.Builder |
builder() |
boolean |
equals(java.lang.Object o) |
Optional<Attributes> |
getAttributes()
List of name-value pairs in JSON object format.
|
Optional<java.lang.Boolean> |
getEnableChap()
Specify if chap account credentials can be used by an initiator to access volumes.
|
Optional<CHAPSecret> |
getInitiatorSecret()
The CHAP secret to use for the initiator.
|
Optional<CHAPSecret> |
getTargetSecret()
The CHAP secret to use for the target (mutual CHAP authentication).
|
java.lang.String |
getUsername()
Specifies the username for this account.
|
int |
hashCode() |
void |
setAttributes(Optional<Attributes> attributes) |
void |
setEnableChap(Optional<java.lang.Boolean> enableChap) |
void |
setInitiatorSecret(Optional<CHAPSecret> initiatorSecret) |
void |
setTargetSecret(Optional<CHAPSecret> targetSecret) |
void |
setUsername(java.lang.String username) |
java.util.Map<java.lang.String,java.lang.Object> |
toMap() |
java.lang.String |
toString() |
public static final long serialVersionUID
@Since(value="7.0") public AddAccountRequest(java.lang.String username, Optional<CHAPSecret> initiatorSecret, Optional<CHAPSecret> targetSecret, Optional<Attributes> attributes)
@Since(value="12.0") public AddAccountRequest(java.lang.String username, Optional<CHAPSecret> initiatorSecret, Optional<CHAPSecret> targetSecret, Optional<Attributes> attributes, Optional<java.lang.Boolean> enableChap)
public java.lang.String getUsername()
public void setUsername(java.lang.String username)
public Optional<CHAPSecret> getInitiatorSecret()
public void setInitiatorSecret(Optional<CHAPSecret> initiatorSecret)
public Optional<CHAPSecret> getTargetSecret()
public void setTargetSecret(Optional<CHAPSecret> targetSecret)
public Optional<Attributes> getAttributes()
public void setAttributes(Optional<Attributes> attributes)
public Optional<java.lang.Boolean> getEnableChap()
public void setEnableChap(Optional<java.lang.Boolean> enableChap)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.util.Map<java.lang.String,java.lang.Object> toMap()
public java.lang.String toString()
toString
in class java.lang.Object
public static AddAccountRequest.Builder builder()
public final AddAccountRequest.Builder asBuilder()