public class Account
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Account.Builder |
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
Account() |
Account(java.lang.Long accountID,
java.lang.String username,
java.lang.String status,
java.lang.Long[] volumes,
Optional<CHAPSecret> initiatorSecret,
Optional<CHAPSecret> targetSecret,
Optional<java.util.UUID> storageContainerID,
Optional<Attributes> attributes) |
Account(java.lang.Long accountID,
java.lang.String username,
java.lang.String status,
java.lang.Long[] volumes,
Optional<CHAPSecret> initiatorSecret,
Optional<CHAPSecret> targetSecret,
Optional<java.util.UUID> storageContainerID,
Optional<Attributes> attributes,
Optional<java.lang.Boolean> enableChap) |
Modifier and Type | Method and Description |
---|---|
Account.Builder |
asBuilder() |
static Account.Builder |
builder() |
boolean |
equals(java.lang.Object o) |
java.lang.Long |
getAccountID()
Unique AccountID for the account.
|
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()
CHAP secret to use for the initiator.
|
java.lang.String |
getStatus()
Current status of the account.
|
Optional<java.util.UUID> |
getStorageContainerID()
The id of the storage container associated with the account
|
Optional<CHAPSecret> |
getTargetSecret()
CHAP secret to use for the target (mutual CHAP authentication).
|
java.lang.String |
getUsername()
User name for the account.
|
java.lang.Long[] |
getVolumes()
List of VolumeIDs for Volumes owned by this account.
|
int |
hashCode() |
void |
setAccountID(java.lang.Long accountID) |
void |
setAttributes(Optional<Attributes> attributes) |
void |
setEnableChap(Optional<java.lang.Boolean> enableChap) |
void |
setInitiatorSecret(Optional<CHAPSecret> initiatorSecret) |
void |
setStatus(java.lang.String status) |
void |
setStorageContainerID(Optional<java.util.UUID> storageContainerID) |
void |
setTargetSecret(Optional<CHAPSecret> targetSecret) |
void |
setUsername(java.lang.String username) |
void |
setVolumes(java.lang.Long[] volumes) |
java.util.Map<java.lang.String,java.lang.Object> |
toMap() |
java.lang.String |
toString() |
public static final long serialVersionUID
@Since(value="7.0") public Account(java.lang.Long accountID, java.lang.String username, java.lang.String status, java.lang.Long[] volumes, Optional<CHAPSecret> initiatorSecret, Optional<CHAPSecret> targetSecret, Optional<java.util.UUID> storageContainerID, Optional<Attributes> attributes)
@Since(value="12.0") public Account(java.lang.Long accountID, java.lang.String username, java.lang.String status, java.lang.Long[] volumes, Optional<CHAPSecret> initiatorSecret, Optional<CHAPSecret> targetSecret, Optional<java.util.UUID> storageContainerID, Optional<Attributes> attributes, Optional<java.lang.Boolean> enableChap)
public java.lang.Long getAccountID()
public void setAccountID(java.lang.Long accountID)
public java.lang.String getUsername()
public void setUsername(java.lang.String username)
public java.lang.String getStatus()
public void setStatus(java.lang.String status)
public java.lang.Long[] getVolumes()
public void setVolumes(java.lang.Long[] volumes)
public Optional<CHAPSecret> getInitiatorSecret()
public void setInitiatorSecret(Optional<CHAPSecret> initiatorSecret)
public Optional<CHAPSecret> getTargetSecret()
public void setTargetSecret(Optional<CHAPSecret> targetSecret)
public Optional<java.util.UUID> getStorageContainerID()
public void setStorageContainerID(Optional<java.util.UUID> storageContainerID)
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 Account.Builder builder()
public final Account.Builder asBuilder()