com.netapp.santricity.models.v2.AccessVolumeEx Maven / Gradle / Ivy
/**************************************************************************************************************************************************************
* The Clear BSD License
*
* Copyright (c) – 2016, NetApp, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
*
* * Neither the name of NetApp, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
*
* NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*************************************************************************************************************************************************************/
package com.netapp.santricity.models.v2;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Objects;
import com.netapp.santricity.models.v2.*;
import com.netapp.santricity.models.symbol.*;
import com.netapp.santricity.models.utils.*;
import com.netapp.santricity.Pair;
import com.netapp.santricity.StringUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.io.File;
import java.util.Date;
import java.util.Objects;
/**
* AccessVolumeEx
*/
@javax.annotation.Generated(value = "class com.ni.aa.client.codegen.lang.JavaNetappClientCodegen", date = "2016-08-12T15:32:41.671-05:00")
public class AccessVolumeEx {
private Boolean enabled;
private Integer volumeHandle;
private Long capacity;
private String accessVolumeRef;
private String reserved1;
/**
* Gets or Sets objectType
*/
public enum ObjectTypeEnum {
volume("volume"),
pool("pool"),
host("host"),
lunMapping("lunMapping"),
hostGroup("hostGroup"),
thinVolume("thinVolume"),
drive("drive"),
volumeCopy("volumeCopy"),
pit("pit"),
pitView("pitView"),
snapshotGroup("snapshotGroup"),
snapshot("snapshot"),
accessVolume("accessVolume"),
legacySnapshot("legacySnapshot"),
hostType("hostType"),
metadataTag("metadataTag"),
managementUrl("managementUrl"),
folder("folder"),
asyncMirrorGroup("asyncMirrorGroup"),
asyncMirrorGroupMember("asyncMirrorGroupMember"),
asyncMirrorGroupIncompleteMember("asyncMirrorGroupIncompleteMember"),
consistencyGroup("consistencyGroup"),
consistencyGroupView("consistencyGroupView"),
fan("fan"),
battery("battery"),
storageSystem("storageSystem"),
controller("controller"),
powerSupply("powerSupply"),
minihub("minihub"),
esm("esm"),
drawer("drawer"),
hostBoard("hostBoard"),
interconnectCRU("interconnectCRU"),
cacheBackupDevice("cacheBackupDevice"),
tray("tray"),
supportCRU("supportCRU"),
hostPort("hostPort"),
initiator("initiator"),
snapshotSchedule("snapshotSchedule"),
thermalSensor("thermalSensor"),
sfp("sfp"),
flashCache("flashCache"),
featureAttribute("featureAttribute"),
featureState("featureState"),
lockKeyId("lockKeyId"),
remoteVolume("remoteVolume"),
mirrorVolume("mirrorVolume"),
vaultMirrorVolume("vaultMirrorVolume"),
vaultMirrorGroup("vaultMirrorGroup"),
metadataVolume("metadataVolume"),
sasPort("sasPort"),
sasExpander("sasExpander"),
channelPort("channelPort"),
speedNegError("speedNegError"),
snmpAgentBundle("snmpAgentBundle"),
stagedFirmware("stagedFirmware"),
workload("workload");
;
private String value;
ObjectTypeEnum(String value) {
this.value = value;
}
@Override
@JsonValue
public String toString() {
return String.valueOf(value);
}
}
private ObjectTypeEnum objectType;
private String name;
private String id;
private String wwn;
private List listOfMappings;
private Boolean mapped;
private String currentControllerId;
private String preferredControllerId;
private Long totalSizeInBytes;
/**
* True if the access volume feature (and thus the UTM command transfer capability) is enabled, or false if it is disabled.
**/
public AccessVolumeEx enabled(Boolean enabled) {
this.enabled = enabled;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "True if the access volume feature (and thus the UTM command transfer capability) is enabled, or false if it is disabled.")
@JsonProperty("enabled")
public Boolean getEnabled() {
return enabled;
}
public void setEnabled(Boolean enabled) {
this.enabled = enabled;
}
/**
* An identifier value for the AccessVolume object. This will generally correspond to the logical unit number (LUN) that is used to access the volume for UTM protocol command transactions.
**/
public AccessVolumeEx volumeHandle(Integer volumeHandle) {
this.volumeHandle = volumeHandle;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "An identifier value for the AccessVolume object. This will generally correspond to the logical unit number (LUN) that is used to access the volume for UTM protocol command transactions.")
@JsonProperty("volumeHandle")
public Integer getVolumeHandle() {
return volumeHandle;
}
public void setVolumeHandle(Integer volumeHandle) {
this.volumeHandle = volumeHandle;
}
/**
* The (simulated) capacity of the AccessVolume maintained by the controller. Since there is essentially no true data storage capacity present for an AccessVolume, this value is used to determine the block addressing limit of the unit, which is an important aspect of the UTM command transfer protocol.
**/
public AccessVolumeEx capacity(Long capacity) {
this.capacity = capacity;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "The (simulated) capacity of the AccessVolume maintained by the controller. Since there is essentially no true data storage capacity present for an AccessVolume, this value is used to determine the block addressing limit of the unit, which is an important aspect of the UTM command transfer protocol.")
@JsonProperty("capacity")
public Long getCapacity() {
return capacity;
}
public void setCapacity(Long capacity) {
this.capacity = capacity;
}
/**
* The identifier value for this AccessVolume. Other objects may use this reference value to refer to the AccessVolume.
**/
public AccessVolumeEx accessVolumeRef(String accessVolumeRef) {
this.accessVolumeRef = accessVolumeRef;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "The identifier value for this AccessVolume. Other objects may use this reference value to refer to the AccessVolume.")
@JsonProperty("accessVolumeRef")
public String getAccessVolumeRef() {
return accessVolumeRef;
}
public void setAccessVolumeRef(String accessVolumeRef) {
this.accessVolumeRef = accessVolumeRef;
}
/**
**/
public AccessVolumeEx reserved1(String reserved1) {
this.reserved1 = reserved1;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("reserved1")
public String getReserved1() {
return reserved1;
}
public void setReserved1(String reserved1) {
this.reserved1 = reserved1;
}
/**
**/
public AccessVolumeEx objectType(ObjectTypeEnum objectType) {
this.objectType = objectType;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("objectType")
public ObjectTypeEnum getObjectType() {
return objectType;
}
public void setObjectType(ObjectTypeEnum objectType) {
this.objectType = objectType;
}
/**
**/
public AccessVolumeEx name(String name) {
this.name = name;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
/**
**/
public AccessVolumeEx id(String id) {
this.id = id;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("id")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
/**
**/
public AccessVolumeEx wwn(String wwn) {
this.wwn = wwn;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("wwn")
public String getWwn() {
return wwn;
}
public void setWwn(String wwn) {
this.wwn = wwn;
}
/**
**/
public AccessVolumeEx listOfMappings(List listOfMappings) {
this.listOfMappings = listOfMappings;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("listOfMappings")
public List getListOfMappings() {
return listOfMappings;
}
public void setListOfMappings(List listOfMappings) {
this.listOfMappings = listOfMappings;
}
/**
**/
public AccessVolumeEx mapped(Boolean mapped) {
this.mapped = mapped;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "")
@JsonProperty("mapped")
public Boolean getMapped() {
return mapped;
}
public void setMapped(Boolean mapped) {
this.mapped = mapped;
}
/**
**/
public AccessVolumeEx currentControllerId(String currentControllerId) {
this.currentControllerId = currentControllerId;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("currentControllerId")
public String getCurrentControllerId() {
return currentControllerId;
}
public void setCurrentControllerId(String currentControllerId) {
this.currentControllerId = currentControllerId;
}
/**
**/
public AccessVolumeEx preferredControllerId(String preferredControllerId) {
this.preferredControllerId = preferredControllerId;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("preferredControllerId")
public String getPreferredControllerId() {
return preferredControllerId;
}
public void setPreferredControllerId(String preferredControllerId) {
this.preferredControllerId = preferredControllerId;
}
/**
**/
public AccessVolumeEx totalSizeInBytes(Long totalSizeInBytes) {
this.totalSizeInBytes = totalSizeInBytes;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("totalSizeInBytes")
public Long getTotalSizeInBytes() {
return totalSizeInBytes;
}
public void setTotalSizeInBytes(Long totalSizeInBytes) {
this.totalSizeInBytes = totalSizeInBytes;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AccessVolumeEx accessVolumeEx = (AccessVolumeEx) o;
return Objects.equals(this.enabled, accessVolumeEx.enabled) &&
Objects.equals(this.volumeHandle, accessVolumeEx.volumeHandle) &&
Objects.equals(this.capacity, accessVolumeEx.capacity) &&
Objects.equals(this.accessVolumeRef, accessVolumeEx.accessVolumeRef) &&
Objects.equals(this.reserved1, accessVolumeEx.reserved1) &&
Objects.equals(this.objectType, accessVolumeEx.objectType) &&
Objects.equals(this.name, accessVolumeEx.name) &&
Objects.equals(this.id, accessVolumeEx.id) &&
Objects.equals(this.wwn, accessVolumeEx.wwn) &&
Objects.equals(this.listOfMappings, accessVolumeEx.listOfMappings) &&
Objects.equals(this.mapped, accessVolumeEx.mapped) &&
Objects.equals(this.currentControllerId, accessVolumeEx.currentControllerId) &&
Objects.equals(this.preferredControllerId, accessVolumeEx.preferredControllerId) &&
Objects.equals(this.totalSizeInBytes, accessVolumeEx.totalSizeInBytes);
}
@Override
public int hashCode() {
return Objects.hash(enabled, volumeHandle, capacity, accessVolumeRef, reserved1, objectType, name, id, wwn, listOfMappings, mapped, currentControllerId, preferredControllerId, totalSizeInBytes);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AccessVolumeEx {\n");
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
sb.append(" volumeHandle: ").append(toIndentedString(volumeHandle)).append("\n");
sb.append(" capacity: ").append(toIndentedString(capacity)).append("\n");
sb.append(" accessVolumeRef: ").append(toIndentedString(accessVolumeRef)).append("\n");
sb.append(" reserved1: ").append(toIndentedString(reserved1)).append("\n");
sb.append(" objectType: ").append(toIndentedString(objectType)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" wwn: ").append(toIndentedString(wwn)).append("\n");
sb.append(" listOfMappings: ").append(toIndentedString(listOfMappings)).append("\n");
sb.append(" mapped: ").append(toIndentedString(mapped)).append("\n");
sb.append(" currentControllerId: ").append(toIndentedString(currentControllerId)).append("\n");
sb.append(" preferredControllerId: ").append(toIndentedString(preferredControllerId)).append("\n");
sb.append(" totalSizeInBytes: ").append(toIndentedString(totalSizeInBytes)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy