All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.softlayer.api.service.network.storage.Credential Maven / Gradle / Ivy

There is a newer version: 0.3.4
Show newest version
package com.softlayer.api.service.network.storage;

import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Account;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.network.Storage;
import com.softlayer.api.service.network.storage.allowed.Host;
import com.softlayer.api.service.network.storage.credential.Type;
import java.util.ArrayList;
import java.util.GregorianCalendar;
import java.util.List;

/**
 * The SoftLayer_Network_Storage_Credential data type will give you an overview of the usernames that are currently attached to your storage device. 
 *
 * @see SoftLayer_Network_Storage_Credential
 */
@ApiType("SoftLayer_Network_Storage_Credential")
public class Credential extends Entity {

    /**
     * This is the account that the storage credential is tied to.
     */
    @ApiProperty
    protected Account account;

    public Account getAccount() {
        return account;
    }

    public void setAccount(Account account) {
        this.account = account;
    }

    /**
     * These are the SoftLayer_Network_Storage_Allowed_Host entries that this credential is assigned to.
     */
    @ApiProperty
    protected Host networkStorageAllowedHosts;

    public Host getNetworkStorageAllowedHosts() {
        return networkStorageAllowedHosts;
    }

    public void setNetworkStorageAllowedHosts(Host networkStorageAllowedHosts) {
        this.networkStorageAllowedHosts = networkStorageAllowedHosts;
    }

    /**
     * These are the types of storage that the credential can be assigned to.
     */
    @ApiProperty
    protected Type type;

    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        this.type = type;
    }

    /**
     * These are the SoftLayer_Network_Storage volumes that this credential is assigned to.
     */
    @ApiProperty
    protected List volumes;

    public List getVolumes() {
        if (volumes == null) {
            volumes = new ArrayList();
        }
        return volumes;
    }

    /**
     * This is the account id associated with the volume. 
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String accountId;

    public String getAccountId() {
        return accountId;
    }

    public void setAccountId(String accountId) {
        accountIdSpecified = true;
        this.accountId = accountId;
    }

    protected boolean accountIdSpecified;

    public boolean isAccountIdSpecified() {
        return accountIdSpecified;
    }

    public void unsetAccountId() {
        accountId = null;
        accountIdSpecified = false;
    }

    /**
     * This is the data that the record was created in the table. 
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected GregorianCalendar createDate;

    public GregorianCalendar getCreateDate() {
        return createDate;
    }

    public void setCreateDate(GregorianCalendar createDate) {
        createDateSpecified = true;
        this.createDate = createDate;
    }

    protected boolean createDateSpecified;

    public boolean isCreateDateSpecified() {
        return createDateSpecified;
    }

    public void unsetCreateDate() {
        createDate = null;
        createDateSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected Long id;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        idSpecified = true;
        this.id = id;
    }

    protected boolean idSpecified;

    public boolean isIdSpecified() {
        return idSpecified;
    }

    public void unsetId() {
        id = null;
        idSpecified = false;
    }

    /**
     * This is the date that the record was last updated in the table. 
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected GregorianCalendar modifyDate;

    public GregorianCalendar getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(GregorianCalendar modifyDate) {
        modifyDateSpecified = true;
        this.modifyDate = modifyDate;
    }

    protected boolean modifyDateSpecified;

    public boolean isModifyDateSpecified() {
        return modifyDateSpecified;
    }

    public void unsetModifyDate() {
        modifyDate = null;
        modifyDateSpecified = false;
    }

    /**
     * This is the id of the type of credential that this object represents. 
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long nasCredentialTypeId;

    public Long getNasCredentialTypeId() {
        return nasCredentialTypeId;
    }

    public void setNasCredentialTypeId(Long nasCredentialTypeId) {
        nasCredentialTypeIdSpecified = true;
        this.nasCredentialTypeId = nasCredentialTypeId;
    }

    protected boolean nasCredentialTypeIdSpecified;

    public boolean isNasCredentialTypeIdSpecified() {
        return nasCredentialTypeIdSpecified;
    }

    public void unsetNasCredentialTypeId() {
        nasCredentialTypeId = null;
        nasCredentialTypeIdSpecified = false;
    }

    /**
     * This is the password associated with the volume. 
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String password;

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        passwordSpecified = true;
        this.password = password;
    }

    protected boolean passwordSpecified;

    public boolean isPasswordSpecified() {
        return passwordSpecified;
    }

    public void unsetPassword() {
        password = null;
        passwordSpecified = false;
    }

    /**
     * This is the username associated with the volume. 
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String username;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        usernameSpecified = true;
        this.username = username;
    }

    protected boolean usernameSpecified;

    public boolean isUsernameSpecified() {
        return usernameSpecified;
    }

    public void unsetUsername() {
        username = null;
        usernameSpecified = false;
    }

    /**
     * A count of these are the SoftLayer_Network_Storage volumes that this credential is assigned to.
     */
    @ApiProperty
    protected Long volumeCount;

    public Long getVolumeCount() {
        return volumeCount;
    }

    public void setVolumeCount(Long volumeCount) {
        this.volumeCount = volumeCount;
    }

    public static class Mask extends com.softlayer.api.service.Entity.Mask {

        public com.softlayer.api.service.Account.Mask account() {
            return withSubMask("account", com.softlayer.api.service.Account.Mask.class);
        }

        public com.softlayer.api.service.network.storage.allowed.Host.Mask networkStorageAllowedHosts() {
            return withSubMask("networkStorageAllowedHosts", com.softlayer.api.service.network.storage.allowed.Host.Mask.class);
        }

        public com.softlayer.api.service.network.storage.credential.Type.Mask type() {
            return withSubMask("type", com.softlayer.api.service.network.storage.credential.Type.Mask.class);
        }

        public com.softlayer.api.service.network.Storage.Mask volumes() {
            return withSubMask("volumes", com.softlayer.api.service.network.Storage.Mask.class);
        }

        public Mask accountId() {
            withLocalProperty("accountId");
            return this;
        }

        public Mask createDate() {
            withLocalProperty("createDate");
            return this;
        }

        public Mask id() {
            withLocalProperty("id");
            return this;
        }

        public Mask modifyDate() {
            withLocalProperty("modifyDate");
            return this;
        }

        public Mask nasCredentialTypeId() {
            withLocalProperty("nasCredentialTypeId");
            return this;
        }

        public Mask password() {
            withLocalProperty("password");
            return this;
        }

        public Mask username() {
            withLocalProperty("username");
            return this;
        }

        public Mask volumeCount() {
            withLocalProperty("volumeCount");
            return this;
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy