public class Account
extends Object
implements 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(Long accountID,
String username,
String status,
Long[] volumes,
Optional<CHAPSecret> initiatorSecret,
Optional<CHAPSecret> targetSecret,
Optional<UUID> storageContainerID,
Optional<Attributes> attributes) |
| Modifier and Type | Method and Description |
|---|---|
Account.Builder |
asBuilder() |
static Account.Builder |
builder() |
boolean |
equals(Object o) |
Long |
getAccountID()
Unique AccountID for the account.
|
Optional<Attributes> |
getAttributes()
List of Name/Value pairs in JSON object format.
|
Optional<CHAPSecret> |
getInitiatorSecret()
CHAP secret to use for the initiator.
|
String |
getStatus()
Current status of the account.
|
Optional<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).
|
String |
getUsername()
User name for the account.
|
Long[] |
getVolumes()
List of VolumeIDs for Volumes owned by this account.
|
int |
hashCode() |
void |
setAccountID(Long accountID) |
void |
setAttributes(Optional<Attributes> attributes) |
void |
setInitiatorSecret(Optional<CHAPSecret> initiatorSecret) |
void |
setStatus(String status) |
void |
setStorageContainerID(Optional<UUID> storageContainerID) |
void |
setTargetSecret(Optional<CHAPSecret> targetSecret) |
void |
setUsername(String username) |
void |
setVolumes(Long[] volumes) |
Map<String,Object> |
toMap() |
String |
toString() |
public static final long serialVersionUID
@Since(value="7.0") public Account(Long accountID, String username, String status, Long[] volumes, Optional<CHAPSecret> initiatorSecret, Optional<CHAPSecret> targetSecret, Optional<UUID> storageContainerID, Optional<Attributes> attributes)
public Long getAccountID()
public void setAccountID(Long accountID)
public String getUsername()
public void setUsername(String username)
public String getStatus()
public void setStatus(String status)
public Long[] getVolumes()
public void setVolumes(Long[] volumes)
public Optional<CHAPSecret> getInitiatorSecret()
public void setInitiatorSecret(Optional<CHAPSecret> initiatorSecret)
public Optional<CHAPSecret> getTargetSecret()
public void setTargetSecret(Optional<CHAPSecret> targetSecret)
public Optional<UUID> getStorageContainerID()
public void setStorageContainerID(Optional<UUID> storageContainerID)
public Optional<Attributes> getAttributes()
public void setAttributes(Optional<Attributes> attributes)
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic Map<String,Object> toMap()
public String toString()
toString in class Objectpublic static Account.Builder builder()
public final Account.Builder asBuilder()
Copyright © 2014-2016 NetApp, Inc. All Rights Reserved.