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

com.netapp.santricity.models.symbol.ComponentBundle Maven / Gradle / Ivy

Go to download

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;


/**
 * ComponentBundle
 */
@javax.annotation.Generated(value = "class com.ni.aa.client.codegen.lang.JavaNetappClientCodegen", date = "2017-10-04T15:05:55.769-05:00")
public class ComponentBundle   {
  
    private List fan;

    private List battery;

    private List powerSupply;

    private List thermalSensor;

    private List esm;

    private List ups;

    private List minihub;

    private List gbic;

    private List sfp;

    private List interconnectCRU;

    private List supportCRU;

    private List alarm;

    private List hostBoard;

    private List sasExpander;

    private List cacheBackupDevice;

    private List cacheMemoryDimm;

    private List processorMemoryDimm;

    private List drawer;

  
  /**
   * The fan component.
   **/
  public ComponentBundle fan(List fan) {
    this.fan = fan;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "The fan component.")
  @JsonProperty("fan")
  public List getFan() {
    return fan;
  }
  
  public void setFan(List fan) {
    this.fan = fan;
  }

  
  /**
   * The battery component.
   **/
  public ComponentBundle battery(List battery) {
    this.battery = battery;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "The battery component.")
  @JsonProperty("battery")
  public List getBattery() {
    return battery;
  }
  
  public void setBattery(List battery) {
    this.battery = battery;
  }

  
  /**
   * The power supply component.
   **/
  public ComponentBundle powerSupply(List powerSupply) {
    this.powerSupply = powerSupply;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "The power supply component.")
  @JsonProperty("powerSupply")
  public List getPowerSupply() {
    return powerSupply;
  }
  
  public void setPowerSupply(List powerSupply) {
    this.powerSupply = powerSupply;
  }

  
  /**
   * The thermal sensor component.
   **/
  public ComponentBundle thermalSensor(List thermalSensor) {
    this.thermalSensor = thermalSensor;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "The thermal sensor component.")
  @JsonProperty("thermalSensor")
  public List getThermalSensor() {
    return thermalSensor;
  }
  
  public void setThermalSensor(List thermalSensor) {
    this.thermalSensor = thermalSensor;
  }

  
  /**
   * The ESM component.
   **/
  public ComponentBundle esm(List esm) {
    this.esm = esm;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "The ESM component.")
  @JsonProperty("esm")
  public List getEsm() {
    return esm;
  }
  
  public void setEsm(List esm) {
    this.esm = esm;
  }

  
  /**
   * The UPS component.
   **/
  public ComponentBundle ups(List ups) {
    this.ups = ups;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "The UPS component.")
  @JsonProperty("ups")
  public List getUps() {
    return ups;
  }
  
  public void setUps(List ups) {
    this.ups = ups;
  }

  
  /**
   * The minihub component.
   **/
  public ComponentBundle minihub(List minihub) {
    this.minihub = minihub;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "The minihub component.")
  @JsonProperty("minihub")
  public List getMinihub() {
    return minihub;
  }
  
  public void setMinihub(List minihub) {
    this.minihub = minihub;
  }

  
  /**
   * The GBIC component.
   **/
  public ComponentBundle gbic(List gbic) {
    this.gbic = gbic;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "The GBIC component.")
  @JsonProperty("gbic")
  public List getGbic() {
    return gbic;
  }
  
  public void setGbic(List gbic) {
    this.gbic = gbic;
  }

  
  /**
   * The SFP component.
   **/
  public ComponentBundle sfp(List sfp) {
    this.sfp = sfp;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "The SFP component.")
  @JsonProperty("sfp")
  public List getSfp() {
    return sfp;
  }
  
  public void setSfp(List sfp) {
    this.sfp = sfp;
  }

  
  /**
   * The interconnect CRU.
   **/
  public ComponentBundle interconnectCRU(List interconnectCRU) {
    this.interconnectCRU = interconnectCRU;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "The interconnect CRU.")
  @JsonProperty("interconnectCRU")
  public List getInterconnectCRU() {
    return interconnectCRU;
  }
  
  public void setInterconnectCRU(List interconnectCRU) {
    this.interconnectCRU = interconnectCRU;
  }

  
  /**
   * The Support CRU.
   **/
  public ComponentBundle supportCRU(List supportCRU) {
    this.supportCRU = supportCRU;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "The Support CRU.")
  @JsonProperty("supportCRU")
  public List getSupportCRU() {
    return supportCRU;
  }
  
  public void setSupportCRU(List supportCRU) {
    this.supportCRU = supportCRU;
  }

  
  /**
   * The alarm.
   **/
  public ComponentBundle alarm(List alarm) {
    this.alarm = alarm;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "The alarm.")
  @JsonProperty("alarm")
  public List getAlarm() {
    return alarm;
  }
  
  public void setAlarm(List alarm) {
    this.alarm = alarm;
  }

  
  /**
   * The host board.
   **/
  public ComponentBundle hostBoard(List hostBoard) {
    this.hostBoard = hostBoard;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "The host board.")
  @JsonProperty("hostBoard")
  public List getHostBoard() {
    return hostBoard;
  }
  
  public void setHostBoard(List hostBoard) {
    this.hostBoard = hostBoard;
  }

  
  /**
   * The SAS expanders.
   **/
  public ComponentBundle sasExpander(List sasExpander) {
    this.sasExpander = sasExpander;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "The SAS expanders.")
  @JsonProperty("sasExpander")
  public List getSasExpander() {
    return sasExpander;
  }
  
  public void setSasExpander(List sasExpander) {
    this.sasExpander = sasExpander;
  }

  
  /**
   * The cache backup devices.
   **/
  public ComponentBundle cacheBackupDevice(List cacheBackupDevice) {
    this.cacheBackupDevice = cacheBackupDevice;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "The cache backup devices.")
  @JsonProperty("cacheBackupDevice")
  public List getCacheBackupDevice() {
    return cacheBackupDevice;
  }
  
  public void setCacheBackupDevice(List cacheBackupDevice) {
    this.cacheBackupDevice = cacheBackupDevice;
  }

  
  /**
   * List of field replaceable cache memory DIMM modules.
   **/
  public ComponentBundle cacheMemoryDimm(List cacheMemoryDimm) {
    this.cacheMemoryDimm = cacheMemoryDimm;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "List of field replaceable cache memory DIMM modules.")
  @JsonProperty("cacheMemoryDimm")
  public List getCacheMemoryDimm() {
    return cacheMemoryDimm;
  }
  
  public void setCacheMemoryDimm(List cacheMemoryDimm) {
    this.cacheMemoryDimm = cacheMemoryDimm;
  }

  
  /**
   * List of field replaceable processor memory DIMMs.
   **/
  public ComponentBundle processorMemoryDimm(List processorMemoryDimm) {
    this.processorMemoryDimm = processorMemoryDimm;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "List of field replaceable processor memory DIMMs.")
  @JsonProperty("processorMemoryDimm")
  public List getProcessorMemoryDimm() {
    return processorMemoryDimm;
  }
  
  public void setProcessorMemoryDimm(List processorMemoryDimm) {
    this.processorMemoryDimm = processorMemoryDimm;
  }

  
  /**
   * List of drawers.
   **/
  public ComponentBundle drawer(List drawer) {
    this.drawer = drawer;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "List of drawers.")
  @JsonProperty("drawer")
  public List getDrawer() {
    return drawer;
  }
  
  public void setDrawer(List drawer) {
    this.drawer = drawer;
  }

  

  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ComponentBundle componentBundle = (ComponentBundle) o;
    return Objects.equals(this.fan, componentBundle.fan) &&
        Objects.equals(this.battery, componentBundle.battery) &&
        Objects.equals(this.powerSupply, componentBundle.powerSupply) &&
        Objects.equals(this.thermalSensor, componentBundle.thermalSensor) &&
        Objects.equals(this.esm, componentBundle.esm) &&
        Objects.equals(this.ups, componentBundle.ups) &&
        Objects.equals(this.minihub, componentBundle.minihub) &&
        Objects.equals(this.gbic, componentBundle.gbic) &&
        Objects.equals(this.sfp, componentBundle.sfp) &&
        Objects.equals(this.interconnectCRU, componentBundle.interconnectCRU) &&
        Objects.equals(this.supportCRU, componentBundle.supportCRU) &&
        Objects.equals(this.alarm, componentBundle.alarm) &&
        Objects.equals(this.hostBoard, componentBundle.hostBoard) &&
        Objects.equals(this.sasExpander, componentBundle.sasExpander) &&
        Objects.equals(this.cacheBackupDevice, componentBundle.cacheBackupDevice) &&
        Objects.equals(this.cacheMemoryDimm, componentBundle.cacheMemoryDimm) &&
        Objects.equals(this.processorMemoryDimm, componentBundle.processorMemoryDimm) &&
        Objects.equals(this.drawer, componentBundle.drawer);
  }

  @Override
  public int hashCode() {
    return Objects.hash(fan, battery, powerSupply, thermalSensor, esm, ups, minihub, gbic, sfp, interconnectCRU, supportCRU, alarm, hostBoard, sasExpander, cacheBackupDevice, cacheMemoryDimm, processorMemoryDimm, drawer);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ComponentBundle {\n");
    
    sb.append("    fan: ").append(toIndentedString(fan)).append("\n");
    sb.append("    battery: ").append(toIndentedString(battery)).append("\n");
    sb.append("    powerSupply: ").append(toIndentedString(powerSupply)).append("\n");
    sb.append("    thermalSensor: ").append(toIndentedString(thermalSensor)).append("\n");
    sb.append("    esm: ").append(toIndentedString(esm)).append("\n");
    sb.append("    ups: ").append(toIndentedString(ups)).append("\n");
    sb.append("    minihub: ").append(toIndentedString(minihub)).append("\n");
    sb.append("    gbic: ").append(toIndentedString(gbic)).append("\n");
    sb.append("    sfp: ").append(toIndentedString(sfp)).append("\n");
    sb.append("    interconnectCRU: ").append(toIndentedString(interconnectCRU)).append("\n");
    sb.append("    supportCRU: ").append(toIndentedString(supportCRU)).append("\n");
    sb.append("    alarm: ").append(toIndentedString(alarm)).append("\n");
    sb.append("    hostBoard: ").append(toIndentedString(hostBoard)).append("\n");
    sb.append("    sasExpander: ").append(toIndentedString(sasExpander)).append("\n");
    sb.append("    cacheBackupDevice: ").append(toIndentedString(cacheBackupDevice)).append("\n");
    sb.append("    cacheMemoryDimm: ").append(toIndentedString(cacheMemoryDimm)).append("\n");
    sb.append("    processorMemoryDimm: ").append(toIndentedString(processorMemoryDimm)).append("\n");
    sb.append("    drawer: ").append(toIndentedString(drawer)).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