com.netapp.santricity.models.v2.MappableObject Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of santricity-java-client Show documentation
Show all versions of santricity-java-client Show documentation
The NetApp SANtricity WebAPI - Java SDK client library is a open source SDK that facilitate access to the
NetApp E-Series storage system for automation and integration into third-party web or script-based management tools.
The newest version!
/**************************************************************************************************************************************************************
* 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;
/**
* MappableObject
*/
@javax.annotation.Generated(value = "class com.ni.aa.client.codegen.lang.JavaNetappClientCodegen", date = "2017-10-04T15:05:52.333-05:00")
public class MappableObject {
/**
* Gets or Sets objectType
*/
public enum ObjectTypeEnum {
unknown("unknown"),
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 wwn;
private Long totalSizeInBytes;
private String currentControllerId;
private List listOfMappings;
private Boolean mapped;
private String preferredControllerId;
private String name;
private String id;
/**
**/
public MappableObject 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 MappableObject 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 MappableObject 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;
}
/**
**/
public MappableObject 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 MappableObject 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 MappableObject 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 MappableObject 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 MappableObject 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 MappableObject 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;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MappableObject mappableObject = (MappableObject) o;
return Objects.equals(this.objectType, mappableObject.objectType) &&
Objects.equals(this.wwn, mappableObject.wwn) &&
Objects.equals(this.totalSizeInBytes, mappableObject.totalSizeInBytes) &&
Objects.equals(this.currentControllerId, mappableObject.currentControllerId) &&
Objects.equals(this.listOfMappings, mappableObject.listOfMappings) &&
Objects.equals(this.mapped, mappableObject.mapped) &&
Objects.equals(this.preferredControllerId, mappableObject.preferredControllerId) &&
Objects.equals(this.name, mappableObject.name) &&
Objects.equals(this.id, mappableObject.id);
}
@Override
public int hashCode() {
return Objects.hash(objectType, wwn, totalSizeInBytes, currentControllerId, listOfMappings, mapped, preferredControllerId, name, id);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MappableObject {\n");
sb.append(" objectType: ").append(toIndentedString(objectType)).append("\n");
sb.append(" wwn: ").append(toIndentedString(wwn)).append("\n");
sb.append(" totalSizeInBytes: ").append(toIndentedString(totalSizeInBytes)).append("\n");
sb.append(" currentControllerId: ").append(toIndentedString(currentControllerId)).append("\n");
sb.append(" listOfMappings: ").append(toIndentedString(listOfMappings)).append("\n");
sb.append(" mapped: ").append(toIndentedString(mapped)).append("\n");
sb.append(" preferredControllerId: ").append(toIndentedString(preferredControllerId)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).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