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

com.vmware.avi.sdk.model.CumulativeLicense Maven / Gradle / Ivy

Go to download

Avi SDK is a java API which creates a session with controller and perform CRUD operations.

The newest version!
/*
 * Copyright 2021 VMware, Inc.
 * SPDX-License-Identifier: Apache License 2.0
 */

package com.vmware.avi.sdk.model;

import java.util.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * The CumulativeLicense is a POJO class extends AviRestResource that used for creating
 * CumulativeLicense.
 *
 * @version 1.0
 * @since 
 *
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class CumulativeLicense  {
    @JsonProperty("burst_cores")
    private Integer burstCores;

    @JsonProperty("cores")
    private Integer cores;

    @JsonProperty("max_ses")
    private Integer maxSes;

    @JsonProperty("se_bandwidth_limits")
    private List seBandwidthLimits;

    @JsonProperty("service_cores")
    private Float serviceCores;

    @JsonProperty("sockets")
    private Integer sockets;

    @JsonProperty("tier_type")
    private String tierType;



    /**
     * This is the getter method this will return the attribute value.
     * Total number of service engine cores for burst core based licenses.
     * Field introduced in 17.2.5.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @return burstCores
     */
    public Integer getBurstCores() {
        return burstCores;
    }

    /**
     * This is the setter method to the attribute.
     * Total number of service engine cores for burst core based licenses.
     * Field introduced in 17.2.5.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @param burstCores set the burstCores.
     */
    public void setBurstCores(Integer  burstCores) {
        this.burstCores = burstCores;
    }

    /**
     * This is the getter method this will return the attribute value.
     * Total number of service engine cores for core based licenses.
     * Field introduced in 17.2.5.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @return cores
     */
    public Integer getCores() {
        return cores;
    }

    /**
     * This is the setter method to the attribute.
     * Total number of service engine cores for core based licenses.
     * Field introduced in 17.2.5.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @param cores set the cores.
     */
    public void setCores(Integer  cores) {
        this.cores = cores;
    }

    /**
     * This is the getter method this will return the attribute value.
     * Total number of service engines for host based licenses.
     * Field introduced in 17.2.5.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @return maxSes
     */
    public Integer getMaxSes() {
        return maxSes;
    }

    /**
     * This is the setter method to the attribute.
     * Total number of service engines for host based licenses.
     * Field introduced in 17.2.5.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @param maxSes set the maxSes.
     */
    public void setMaxSes(Integer  maxSes) {
        this.maxSes = maxSes;
    }
    /**
     * This is the getter method this will return the attribute value.
     * Service engine bandwidth limits for bandwidth based licenses.
     * Field introduced in 17.2.5.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @return seBandwidthLimits
     */
    public List getSeBandwidthLimits() {
        return seBandwidthLimits;
    }

    /**
     * This is the setter method. this will set the seBandwidthLimits
     * Service engine bandwidth limits for bandwidth based licenses.
     * Field introduced in 17.2.5.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @return seBandwidthLimits
     */
    public void setSeBandwidthLimits(List  seBandwidthLimits) {
        this.seBandwidthLimits = seBandwidthLimits;
    }

    /**
     * This is the setter method this will set the seBandwidthLimits
     * Service engine bandwidth limits for bandwidth based licenses.
     * Field introduced in 17.2.5.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @return seBandwidthLimits
     */
    public CumulativeLicense addSeBandwidthLimitsItem(SEBandwidthLimit seBandwidthLimitsItem) {
      if (this.seBandwidthLimits == null) {
        this.seBandwidthLimits = new ArrayList();
      }
      this.seBandwidthLimits.add(seBandwidthLimitsItem);
      return this;
    }

    /**
     * This is the getter method this will return the attribute value.
     * Total number of service engine cores.
     * Field introduced in 20.1.1.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @return serviceCores
     */
    public Float getServiceCores() {
        return serviceCores;
    }

    /**
     * This is the setter method to the attribute.
     * Total number of service engine cores.
     * Field introduced in 20.1.1.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @param serviceCores set the serviceCores.
     */
    public void setServiceCores(Float  serviceCores) {
        this.serviceCores = serviceCores;
    }

    /**
     * This is the getter method this will return the attribute value.
     * Total number of service engine sockets for socket based licenses.
     * Field introduced in 17.2.5.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @return sockets
     */
    public Integer getSockets() {
        return sockets;
    }

    /**
     * This is the setter method to the attribute.
     * Total number of service engine sockets for socket based licenses.
     * Field introduced in 17.2.5.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @param sockets set the sockets.
     */
    public void setSockets(Integer  sockets) {
        this.sockets = sockets;
    }

    /**
     * This is the getter method this will return the attribute value.
     * Specifies the licensed tier.
     * Enum options - ENTERPRISE_16, ENTERPRISE, ENTERPRISE_18, BASIC, ESSENTIALS, ENTERPRISE_WITH_CLOUD_SERVICES.
     * Field introduced in 17.2.5.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @return tierType
     */
    public String getTierType() {
        return tierType;
    }

    /**
     * This is the setter method to the attribute.
     * Specifies the licensed tier.
     * Enum options - ENTERPRISE_16, ENTERPRISE, ENTERPRISE_18, BASIC, ESSENTIALS, ENTERPRISE_WITH_CLOUD_SERVICES.
     * Field introduced in 17.2.5.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @param tierType set the tierType.
     */
    public void setTierType(String  tierType) {
        this.tierType = tierType;
    }


    @Override
    public boolean equals(java.lang.Object o) {
      if (this == o) {
          return true;
      }
      if (o == null || getClass() != o.getClass()) {
          return false;
      }
      CumulativeLicense objCumulativeLicense = (CumulativeLicense) o;
      return   Objects.equals(this.tierType, objCumulativeLicense.tierType)&&
  Objects.equals(this.seBandwidthLimits, objCumulativeLicense.seBandwidthLimits)&&
  Objects.equals(this.cores, objCumulativeLicense.cores)&&
  Objects.equals(this.sockets, objCumulativeLicense.sockets)&&
  Objects.equals(this.maxSes, objCumulativeLicense.maxSes)&&
  Objects.equals(this.burstCores, objCumulativeLicense.burstCores)&&
  Objects.equals(this.serviceCores, objCumulativeLicense.serviceCores);
    }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append("class CumulativeLicense {\n");
                  sb.append("    burstCores: ").append(toIndentedString(burstCores)).append("\n");
                        sb.append("    cores: ").append(toIndentedString(cores)).append("\n");
                        sb.append("    maxSes: ").append(toIndentedString(maxSes)).append("\n");
                        sb.append("    seBandwidthLimits: ").append(toIndentedString(seBandwidthLimits)).append("\n");
                        sb.append("    serviceCores: ").append(toIndentedString(serviceCores)).append("\n");
                        sb.append("    sockets: ").append(toIndentedString(sockets)).append("\n");
                        sb.append("    tierType: ").append(toIndentedString(tierType)).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