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

com.netapp.santricity.models.symbol.FeatureState 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.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;


/**
 * FeatureState
 */
@javax.annotation.Generated(value = "class com.ni.aa.client.codegen.lang.JavaNetappClientCodegen", date = "2016-08-12T15:32:46.001-05:00")
public class FeatureState   {
  

  /**
   * This field will contain the value of the premium feature being described.
   */
  public enum CapabilityEnum {
    none("none"),
    sharedVolume("sharedVolume"),
    storagePoolsTo4("storagePoolsTo4"),
    mixedRaidlevel("mixedRaidlevel"),
    autoCodeSync("autoCodeSync"),
    autoLunTransfer("autoLunTransfer"),
    subLunsAllowed("subLunsAllowed"),
    storagePoolsTo8("storagePoolsTo8"),
    storagePoolsTo2("storagePoolsTo2"),
    storagePoolsToMax("storagePoolsToMax"),
    storagePoolsTo64("storagePoolsTo64"),
    storagePoolsTo16("storagePoolsTo16"),
    snapshots("snapshots"),
    remoteMirroring("remoteMirroring"),
    volumeCopy("volumeCopy"),
    stagedDownload("stagedDownload"),
    mixedDriveTypes("mixedDriveTypes"),
    goldKey("goldKey"),
    driveTrayExpansion("driveTrayExpansion"),
    bundleMigration("bundleMigration"),
    storagePoolsTo128("storagePoolsTo128"),
    storagePoolsTo256("storagePoolsTo256"),
    raid6("raid6"),
    performanceTier("performanceTier"),
    storagePoolsTo32("storagePoolsTo32"),
    storagePoolsTo96("storagePoolsTo96"),
    storagePoolsTo192("storagePoolsTo192"),
    storagePoolsTo512("storagePoolsTo512"),
    remoteMirrorsTo16("remoteMirrorsTo16"),
    remoteMirrorsTo32("remoteMirrorsTo32"),
    remoteMirrorsTo64("remoteMirrorsTo64"),
    remoteMirrorsTo128("remoteMirrorsTo128"),
    snapshotsPerVolTo4("snapshotsPerVolTo4"),
    snapshotsPerVolTo8("snapshotsPerVolTo8"),
    snapshotsPerVolTo16("snapshotsPerVolTo16"),
    snapshotsPerVolTo2("snapshotsPerVolTo2"),
    secureVolume("secureVolume"),
    protectionInformation("protectionInformation"),
    ssdSupport("ssdSupport"),
    driveSlotLimitTo112("driveSlotLimitTo112"),
    driveSlotLimitTo120("driveSlotLimitTo120"),
    driveSlotLimitTo256("driveSlotLimitTo256"),
    driveSlotLimitTo448("driveSlotLimitTo448"),
    driveSlotLimitTo480("driveSlotLimitTo480"),
    driveSlotLimitToMax("driveSlotLimitToMax"),
    driveSlotLimit("driveSlotLimit"),
    driveSlotLimitTo12("driveSlotLimitTo12"),
    driveSlotLimitTo16("driveSlotLimitTo16"),
    driveSlotLimitTo24("driveSlotLimitTo24"),
    driveSlotLimitTo32("driveSlotLimitTo32"),
    driveSlotLimitTo48("driveSlotLimitTo48"),
    driveSlotLimitTo60("driveSlotLimitTo60"),
    driveSlotLimitTo64("driveSlotLimitTo64"),
    driveSlotLimitTo72("driveSlotLimitTo72"),
    driveSlotLimitTo96("driveSlotLimitTo96"),
    driveSlotLimitTo128("driveSlotLimitTo128"),
    driveSlotLimitTo136("driveSlotLimitTo136"),
    driveSlotLimitTo144("driveSlotLimitTo144"),
    driveSlotLimitTo180("driveSlotLimitTo180"),
    driveSlotLimitTo192("driveSlotLimitTo192"),
    driveSlotLimitTo272("driveSlotLimitTo272"),
    fdeProxyKeyManagement("fdeProxyKeyManagement"),
    remoteMirrorsTo8("remoteMirrorsTo8"),
    driveSlotLimitTo384("driveSlotLimitTo384"),
    driveSlotLimitTo300("driveSlotLimitTo300"),
    driveSlotLimitTo360("driveSlotLimitTo360"),
    flashReadCache("flashReadCache"),
    storagePoolsType2("storagePoolsType2"),
    remoteMirroringType2("remoteMirroringType2"),
    totalNumberOfArvmMirrorsPerArray("totalNumberOfArvmMirrorsPerArray"),
    totalNumberOfPitsPerArray("totalNumberOfPitsPerArray"),
    totalNumberOfThinVolumesPerArray("totalNumberOfThinVolumesPerArray"),
    driveSlotLimitTo240("driveSlotLimitTo240"),
    snapshotsType2("snapshotsType2"),
    targetPortLunMapping("targetPortLunMapping"),
    __UNDEFINED("__UNDEFINED");
;
    private String value;

    CapabilityEnum(String value) {
      this.value = value;
    }

    @Override
    @JsonValue
    public String toString() {
      return String.valueOf(value);
    }
  }

    private CapabilityEnum capability;

    private Boolean isEnabled;

    private Boolean isCompliant;

    private Boolean isWithinLimits;


  /**
   * This field contains the value of the feature ID associated with the feature.
   */
  public enum FeatureIdEnum {
    volumesPerPartition("volumesPerPartition"),
    totalNumberOfVolumes("totalNumberOfVolumes"),
    storagePartitions("storagePartitions"),
    snapshot("snapshot"),
    volumeCopy("volumeCopy"),
    remoteMirroring("remoteMirroring"),
    driveTrayExpansion("driveTrayExpansion"),
    mixedDriveTypes("mixedDriveTypes"),
    mgmtApplication("mgmtApplication"),
    supportedDrives("supportedDrives"),
    supportedDriveTrays("supportedDriveTrays"),
    performanceTier("performanceTier"),
    totalNumberOfSnapshots("totalNumberOfSnapshots"),
    totalNumberOfVolCopies("totalNumberOfVolCopies"),
    goldKey("goldKey"),
    snapshotsPerVolume("snapshotsPerVolume"),
    totalNumberOfMirrors("totalNumberOfMirrors"),
    raid6("raid6"),
    stateCapture("stateCapture"),
    sataStrLen("sataStrLen"),
    secureVolume("secureVolume"),
    protectionInformation("protectionInformation"),
    solidStateDisk("solidStateDisk"),
    driveSlotLimit("driveSlotLimit"),
    fdeProxyKeyManagement("fdeProxyKeyManagement"),
    supportedInterposer("supportedInterposer"),
    vendorSupportedDrives("vendorSupportedDrives"),
    flashReadCache("flashReadCache"),
    totalNumberOfAsyncMirrorGroups("totalNumberOfAsyncMirrorGroups"),
    totalNumberOfAsyncMirrorsPerGroup("totalNumberOfAsyncMirrorsPerGroup"),
    totalNumberOfArvmMirrorsPerArray("totalNumberOfArvmMirrorsPerArray"),
    totalNumberOfPitsPerArray("totalNumberOfPitsPerArray"),
    pitGroupsPerVolume("pitGroupsPerVolume"),
    totalNumberOfPitGroups("totalNumberOfPitGroups"),
    pitsPerPitGroup("pitsPerPitGroup"),
    memberVolsPerPitConsistencyGroup("memberVolsPerPitConsistencyGroup"),
    totalNumberOfPitConsistencyGroups("totalNumberOfPitConsistencyGroups"),
    totalNumberOfPitViews("totalNumberOfPitViews"),
    totalNumberOfThinVolumesPerArray("totalNumberOfThinVolumesPerArray"),
    nativeSataDriveSupport("nativeSataDriveSupport"),
    solidStateDiskLimit("solidStateDiskLimit"),
    totalNumberOfRemoteMirrorsPerArray("totalNumberOfRemoteMirrorsPerArray"),
    asup("asup"),
    ectSelector("ectSelector"),
    embeddedSnmpOid("embeddedSnmpOid"),
    asupOnDemand("asupOnDemand"),
    dacstoreCompatId("dacstoreCompatId"),
    samoaHicProtocol("samoaHicProtocol"),
    targetPortLunMapping("targetPortLunMapping"),
    hildaBaseboardProtocol("hildaBaseboardProtocol"),
    denali2Protocol("denali2Protocol"),
    __UNDEFINED("__UNDEFINED");
;
    private String value;

    FeatureIdEnum(String value) {
      this.value = value;
    }

    @Override
    @JsonValue
    public String toString() {
      return String.valueOf(value);
    }
  }

    private FeatureIdEnum featureId;

    private String featureRef;

    private Integer limit;

    private Integer duration;

    private Long enabledTime;

    private Integer supportedFeatureBundleId;

    private Boolean permanentLicenseApplied;

  
  /**
   * This field will contain the value of the premium feature being described.
   **/
  public FeatureState capability(CapabilityEnum capability) {
    this.capability = capability;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "This field will contain the value of the premium feature being described.")
  @JsonProperty("capability")
  public CapabilityEnum getCapability() {
    return capability;
  }
  
  public void setCapability(CapabilityEnum capability) {
    this.capability = capability;
  }

  
  /**
   * A true value in this field indicates that the feature is enabled (regardless of compliance)
   **/
  public FeatureState isEnabled(Boolean isEnabled) {
    this.isEnabled = isEnabled;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "A true value in this field indicates that the feature is enabled (regardless of compliance)")
  @JsonProperty("isEnabled")
  public Boolean getIsEnabled() {
    return isEnabled;
  }
  
  public void setIsEnabled(Boolean isEnabled) {
    this.isEnabled = isEnabled;
  }

  
  /**
   * A true value in this field indicates that the feature has been purchased (in compliance). A false value indicates that the feature has not been purchased. The user will receive warning messages indicating that they are not in compliance. The warning message will continue until the feature is purchased or the feature is disabled.
   **/
  public FeatureState isCompliant(Boolean isCompliant) {
    this.isCompliant = isCompliant;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "A true value in this field indicates that the feature has been purchased (in compliance). A false value indicates that the feature has not been purchased. The user will receive warning messages indicating that they are not in compliance. The warning message will continue until the feature is purchased or the feature is disabled.")
  @JsonProperty("isCompliant")
  public Boolean getIsCompliant() {
    return isCompliant;
  }
  
  public void setIsCompliant(Boolean isCompliant) {
    this.isCompliant = isCompliant;
  }

  
  /**
   * This field is deprecated. Use isCompliant field instead.
   **/
  public FeatureState isWithinLimits(Boolean isWithinLimits) {
    this.isWithinLimits = isWithinLimits;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "This field is deprecated. Use isCompliant field instead.")
  @JsonProperty("isWithinLimits")
  public Boolean getIsWithinLimits() {
    return isWithinLimits;
  }
  
  public void setIsWithinLimits(Boolean isWithinLimits) {
    this.isWithinLimits = isWithinLimits;
  }

  
  /**
   * This field contains the value of the feature ID associated with the feature.
   **/
  public FeatureState featureId(FeatureIdEnum featureId) {
    this.featureId = featureId;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "This field contains the value of the feature ID associated with the feature.")
  @JsonProperty("featureId")
  public FeatureIdEnum getFeatureId() {
    return featureId;
  }
  
  public void setFeatureId(FeatureIdEnum featureId) {
    this.featureId = featureId;
  }

  
  /**
   * This field contains a reference to the feature.
   **/
  public FeatureState featureRef(String featureRef) {
    this.featureRef = featureRef;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "This field contains a reference to the feature.")
  @JsonProperty("featureRef")
  public String getFeatureRef() {
    return featureRef;
  }
  
  public void setFeatureRef(String featureRef) {
    this.featureRef = featureRef;
  }

  
  /**
   * A numerical description associated with this FeatureState object, describing the level or tier for this feature. A zero value represents a feature that does not support tiering. Non-zero implies a tiering level.
   **/
  public FeatureState limit(Integer limit) {
    this.limit = limit;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "A numerical description associated with this FeatureState object, describing the level or tier for this feature. A zero value represents a feature that does not support tiering. Non-zero implies a tiering level.")
  @JsonProperty("limit")
  public Integer getLimit() {
    return limit;
  }
  
  public void setLimit(Integer limit) {
    this.limit = limit;
  }

  
  /**
   * Describes the timeframe this feature will be available. A zero value describes an infinite duration. The unit of duration is in days.
   **/
  public FeatureState duration(Integer duration) {
    this.duration = duration;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "Describes the timeframe this feature will be available. A zero value describes an infinite duration. The unit of duration is in days.")
  @JsonProperty("duration")
  public Integer getDuration() {
    return duration;
  }
  
  public void setDuration(Integer duration) {
    this.duration = duration;
  }

  
  /**
   * Describes the time when this feature was enabled.
   **/
  public FeatureState enabledTime(Long enabledTime) {
    this.enabledTime = enabledTime;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "Describes the time when this feature was enabled.")
  @JsonProperty("enabledTime")
  public Long getEnabledTime() {
    return enabledTime;
  }
  
  public void setEnabledTime(Long enabledTime) {
    this.enabledTime = enabledTime;
  }

  
  /**
   * The supported Feature Bundle ID. When not in use this value will be zero.
   **/
  public FeatureState supportedFeatureBundleId(Integer supportedFeatureBundleId) {
    this.supportedFeatureBundleId = supportedFeatureBundleId;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "The supported Feature Bundle ID. When not in use this value will be zero.")
  @JsonProperty("supportedFeatureBundleId")
  public Integer getSupportedFeatureBundleId() {
    return supportedFeatureBundleId;
  }
  
  public void setSupportedFeatureBundleId(Integer supportedFeatureBundleId) {
    this.supportedFeatureBundleId = supportedFeatureBundleId;
  }

  
  /**
   * TRUE if a permanent license for this feature has been applied. FALSE if the feature is being evaluated or is not enabled at all.
   **/
  public FeatureState permanentLicenseApplied(Boolean permanentLicenseApplied) {
    this.permanentLicenseApplied = permanentLicenseApplied;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "TRUE if a permanent license for this feature has been applied. FALSE if the feature is being evaluated or is not enabled at all.")
  @JsonProperty("permanentLicenseApplied")
  public Boolean getPermanentLicenseApplied() {
    return permanentLicenseApplied;
  }
  
  public void setPermanentLicenseApplied(Boolean permanentLicenseApplied) {
    this.permanentLicenseApplied = permanentLicenseApplied;
  }

  

  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    FeatureState featureState = (FeatureState) o;
    return Objects.equals(this.capability, featureState.capability) &&
        Objects.equals(this.isEnabled, featureState.isEnabled) &&
        Objects.equals(this.isCompliant, featureState.isCompliant) &&
        Objects.equals(this.isWithinLimits, featureState.isWithinLimits) &&
        Objects.equals(this.featureId, featureState.featureId) &&
        Objects.equals(this.featureRef, featureState.featureRef) &&
        Objects.equals(this.limit, featureState.limit) &&
        Objects.equals(this.duration, featureState.duration) &&
        Objects.equals(this.enabledTime, featureState.enabledTime) &&
        Objects.equals(this.supportedFeatureBundleId, featureState.supportedFeatureBundleId) &&
        Objects.equals(this.permanentLicenseApplied, featureState.permanentLicenseApplied);
  }

  @Override
  public int hashCode() {
    return Objects.hash(capability, isEnabled, isCompliant, isWithinLimits, featureId, featureRef, limit, duration, enabledTime, supportedFeatureBundleId, permanentLicenseApplied);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class FeatureState {\n");
    
    sb.append("    capability: ").append(toIndentedString(capability)).append("\n");
    sb.append("    isEnabled: ").append(toIndentedString(isEnabled)).append("\n");
    sb.append("    isCompliant: ").append(toIndentedString(isCompliant)).append("\n");
    sb.append("    isWithinLimits: ").append(toIndentedString(isWithinLimits)).append("\n");
    sb.append("    featureId: ").append(toIndentedString(featureId)).append("\n");
    sb.append("    featureRef: ").append(toIndentedString(featureRef)).append("\n");
    sb.append("    limit: ").append(toIndentedString(limit)).append("\n");
    sb.append("    duration: ").append(toIndentedString(duration)).append("\n");
    sb.append("    enabledTime: ").append(toIndentedString(enabledTime)).append("\n");
    sb.append("    supportedFeatureBundleId: ").append(toIndentedString(supportedFeatureBundleId)).append("\n");
    sb.append("    permanentLicenseApplied: ").append(toIndentedString(permanentLicenseApplied)).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