com.netapp.santricity.models.symbol.Location 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.symbol;
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;
/**
* Location
*/
@javax.annotation.Generated(value = "class com.ni.aa.client.codegen.lang.JavaNetappClientCodegen", date = "2017-10-04T15:05:55.769-05:00")
public class Location {
private String trayRef;
private Integer slot;
private ObjectReference locationParent;
private Integer locationPosition;
private String label;
/**
* The TrayRef reference value of the tray object in which the component resides.
**/
public Location trayRef(String trayRef) {
this.trayRef = trayRef;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "The TrayRef reference value of the tray object in which the component resides.")
@JsonProperty("trayRef")
public String getTrayRef() {
return trayRef;
}
public void setTrayRef(String trayRef) {
this.trayRef = trayRef;
}
/**
* The slot identifier, or ordinal identifier, of the component within its physical tray.
**/
public Location slot(Integer slot) {
this.slot = slot;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "The slot identifier, or ordinal identifier, of the component within its physical tray.")
@JsonProperty("slot")
public Integer getSlot() {
return slot;
}
public void setSlot(Integer slot) {
this.slot = slot;
}
/**
* An object reference that identifies the parent physical component (e.g., Tray, CRU, etc.) of the object containing the Location attribute.
**/
public Location locationParent(ObjectReference locationParent) {
this.locationParent = locationParent;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "An object reference that identifies the parent physical component (e.g., Tray, CRU, etc.) of the object containing the Location attribute.")
@JsonProperty("locationParent")
public ObjectReference getLocationParent() {
return locationParent;
}
public void setLocationParent(ObjectReference locationParent) {
this.locationParent = locationParent;
}
/**
* The parent-relative/like-component relative position of the object containing the Location attribute.
**/
public Location locationPosition(Integer locationPosition) {
this.locationPosition = locationPosition;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "The parent-relative/like-component relative position of the object containing the Location attribute.")
@JsonProperty("locationPosition")
public Integer getLocationPosition() {
return locationPosition;
}
public void setLocationPosition(Integer locationPosition) {
this.locationPosition = locationPosition;
}
/**
* Label associated with the location (i.e., label printed on the canister or the enclosure).
**/
public Location label(String label) {
this.label = label;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "Label associated with the location (i.e., label printed on the canister or the enclosure).")
@JsonProperty("label")
public String getLabel() {
return label;
}
public void setLabel(String label) {
this.label = label;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Location location = (Location) o;
return Objects.equals(this.trayRef, location.trayRef) &&
Objects.equals(this.slot, location.slot) &&
Objects.equals(this.locationParent, location.locationParent) &&
Objects.equals(this.locationPosition, location.locationPosition) &&
Objects.equals(this.label, location.label);
}
@Override
public int hashCode() {
return Objects.hash(trayRef, slot, locationParent, locationPosition, label);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Location {\n");
sb.append(" trayRef: ").append(toIndentedString(trayRef)).append("\n");
sb.append(" slot: ").append(toIndentedString(slot)).append("\n");
sb.append(" locationParent: ").append(toIndentedString(locationParent)).append("\n");
sb.append(" locationPosition: ").append(toIndentedString(locationPosition)).append("\n");
sb.append(" label: ").append(toIndentedString(label)).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