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

com.vmware.avi.sdk.model.ControllerLicense 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 ControllerLicense is a POJO class extends AviRestResource that used for creating
 * ControllerLicense.
 *
 * @version 1.0
 * @since 
 *
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ControllerLicense extends AviRestResource  {
    @JsonProperty("active_burst_resources")
    private List activeBurstResources;

    @JsonProperty("burst_cores")
    private Integer burstCores;

    @JsonProperty("cores")
    private Integer cores;

    @JsonProperty("customer_name")
    private String customerName;

    @JsonProperty("disable_enforcement")
    private Boolean disableEnforcement;

    @JsonProperty("expired_burst_resources")
    private List expiredBurstResources;

    @JsonProperty("initialized")
    private Boolean initialized;

    @JsonProperty("license_id")
    private String licenseId;

    @JsonProperty("license_tier")
    private List licenseTier;

    @JsonProperty("license_tiers")
    private List licenseTiers;

    @JsonProperty("licenses")
    private List licenses;

    @JsonProperty("max_ses")
    private Integer maxSes;

    @JsonProperty("name")
    private String name;

    @JsonProperty("se_bandwidth_limits")
    private List seBandwidthLimits;

    @JsonProperty("service_cores")
    private Float serviceCores;

    @JsonProperty("sockets")
    private Integer sockets;

    @JsonProperty("start_on")
    private String startOn;

    @JsonProperty("tenant_uuid")
    private String tenantUuid;

    @JsonProperty("url")
    private String url = "url";

    @JsonProperty("uuid")
    private String uuid;

    @JsonProperty("valid_until")
    private String validUntil;


    /**
     * This is the getter method this will return the attribute value.
     * List of active burst core license in use.
     * 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 activeBurstResources
     */
    public List getActiveBurstResources() {
        return activeBurstResources;
    }

    /**
     * This is the setter method. this will set the activeBurstResources
     * List of active burst core license in use.
     * 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 activeBurstResources
     */
    public void setActiveBurstResources(List  activeBurstResources) {
        this.activeBurstResources = activeBurstResources;
    }

    /**
     * This is the setter method this will set the activeBurstResources
     * List of active burst core license in use.
     * 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 activeBurstResources
     */
    public ControllerLicense addActiveBurstResourcesItem(BurstResource activeBurstResourcesItem) {
      if (this.activeBurstResources == null) {
        this.activeBurstResources = new ArrayList();
      }
      this.activeBurstResources.add(activeBurstResourcesItem);
      return this;
    }

    /**
     * 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.
     * Number of service engine cores in non-container clouds.
     * 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.
     * Number of service engine cores in non-container clouds.
     * 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.
     * 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 customerName
     */
    public String getCustomerName() {
        return customerName;
    }

    /**
     * This is the setter method to the attribute.
     * 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 customerName set the customerName.
     */
    public void setCustomerName(String  customerName) {
        this.customerName = customerName;
    }

    /**
     * This is the getter method this will return the attribute value.
     * 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 disableEnforcement
     */
    public Boolean getDisableEnforcement() {
        return disableEnforcement;
    }

    /**
     * This is the setter method to the attribute.
     * 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 disableEnforcement set the disableEnforcement.
     */
    public void setDisableEnforcement(Boolean  disableEnforcement) {
        this.disableEnforcement = disableEnforcement;
    }
    /**
     * This is the getter method this will return the attribute value.
     * List of used or expired burst core 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 expiredBurstResources
     */
    public List getExpiredBurstResources() {
        return expiredBurstResources;
    }

    /**
     * This is the setter method. this will set the expiredBurstResources
     * List of used or expired burst core 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 expiredBurstResources
     */
    public void setExpiredBurstResources(List  expiredBurstResources) {
        this.expiredBurstResources = expiredBurstResources;
    }

    /**
     * This is the setter method this will set the expiredBurstResources
     * List of used or expired burst core 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 expiredBurstResources
     */
    public ControllerLicense addExpiredBurstResourcesItem(BurstResource expiredBurstResourcesItem) {
      if (this.expiredBurstResources == null) {
        this.expiredBurstResources = new ArrayList();
      }
      this.expiredBurstResources.add(expiredBurstResourcesItem);
      return this;
    }

    /**
     * This is the getter method this will return the attribute value.
     * Flag used to track initialization.
     * Field introduced in 20.1.2.
     * Allowed in enterprise edition with any value, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @return initialized
     */
    public Boolean getInitialized() {
        return initialized;
    }

    /**
     * This is the setter method to the attribute.
     * Flag used to track initialization.
     * Field introduced in 20.1.2.
     * Allowed in enterprise edition with any value, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @param initialized set the initialized.
     */
    public void setInitialized(Boolean  initialized) {
        this.initialized = initialized;
    }

    /**
     * This is the getter method this will return the attribute value.
     * 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 licenseId
     */
    public String getLicenseId() {
        return licenseId;
    }

    /**
     * This is the setter method to the attribute.
     * 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 licenseId set the licenseId.
     */
    public void setLicenseId(String  licenseId) {
        this.licenseId = licenseId;
    }
    /**
     * This is the getter method this will return the attribute value.
     * 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 licenseTier
     */
    public List getLicenseTier() {
        return licenseTier;
    }

    /**
     * This is the setter method. this will set the licenseTier
     * 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 licenseTier
     */
    public void setLicenseTier(List  licenseTier) {
        this.licenseTier = licenseTier;
    }

    /**
     * This is the setter method this will set the licenseTier
     * 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 licenseTier
     */
    public ControllerLicense addLicenseTierItem(String licenseTierItem) {
      if (this.licenseTier == null) {
        this.licenseTier = new ArrayList();
      }
      this.licenseTier.add(licenseTierItem);
      return this;
    }
    /**
     * This is the getter method this will return the attribute value.
     * 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 licenseTiers
     */
    public List getLicenseTiers() {
        return licenseTiers;
    }

    /**
     * This is the setter method. this will set the licenseTiers
     * 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 licenseTiers
     */
    public void setLicenseTiers(List  licenseTiers) {
        this.licenseTiers = licenseTiers;
    }

    /**
     * This is the setter method this will set the licenseTiers
     * 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 licenseTiers
     */
    public ControllerLicense addLicenseTiersItem(CumulativeLicense licenseTiersItem) {
      if (this.licenseTiers == null) {
        this.licenseTiers = new ArrayList();
      }
      this.licenseTiers.add(licenseTiersItem);
      return this;
    }
    /**
     * This is the getter method this will return the attribute value.
     * 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 licenses
     */
    public List getLicenses() {
        return licenses;
    }

    /**
     * This is the setter method. this will set the licenses
     * 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 licenses
     */
    public void setLicenses(List  licenses) {
        this.licenses = licenses;
    }

    /**
     * This is the setter method this will set the licenses
     * 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 licenses
     */
    public ControllerLicense addLicensesItem(SingleLicense licensesItem) {
      if (this.licenses == null) {
        this.licenses = new ArrayList();
      }
      this.licenses.add(licensesItem);
      return this;
    }

    /**
     * This is the getter method this will return the attribute value.
     * Number of service engines hosts in container clouds.
     * 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.
     * Number of service engines hosts in container clouds.
     * 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.
     * 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 name
     */
    public String getName() {
        return name;
    }

    /**
     * This is the setter method to the attribute.
     * 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 name set the name.
     */
    public void setName(String  name) {
        this.name = name;
    }
    /**
     * 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 ControllerLicense 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.
     * Number of vmware service cores after aggregating all other license types.
     * 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.
     * Number of vmware service cores after aggregating all other license types.
     * 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.
     * Number of physical cpu sockets across service engines in no access and linux server clouds.
     * 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.
     * Number of physical cpu sockets across service engines in no access and linux server clouds.
     * 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.
     * 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 startOn
     */
    public String getStartOn() {
        return startOn;
    }

    /**
     * This is the setter method to the attribute.
     * 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 startOn set the startOn.
     */
    public void setStartOn(String  startOn) {
        this.startOn = startOn;
    }

    /**
     * This is the getter method this will return the attribute value.
     * Tenant uuid.
     * Field introduced in 30.1.1.
     * Allowed in enterprise edition with any value, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @return tenantUuid
     */
    public String getTenantUuid() {
        return tenantUuid;
    }

    /**
     * This is the setter method to the attribute.
     * Tenant uuid.
     * Field introduced in 30.1.1.
     * Allowed in enterprise edition with any value, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @param tenantUuid set the tenantUuid.
     */
    public void setTenantUuid(String  tenantUuid) {
        this.tenantUuid = tenantUuid;
    }
    /**
     * This is the getter method this will return the attribute value.
     * Avi controller URL of the object.
     * @return url
     */
    public String getUrl() {
        return url;
    }

   /**
    * This is the setter method. this will set the url
    * Avi controller URL of the object.
    * @return url
    */
   public void setUrl(String  url) {
     this.url = url;
   }

    /**
     * This is the getter method this will return the attribute value.
     * 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 uuid
     */
    public String getUuid() {
        return uuid;
    }

    /**
     * This is the setter method to the attribute.
     * 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 uuid set the uuid.
     */
    public void setUuid(String  uuid) {
        this.uuid = uuid;
    }

    /**
     * This is the getter method this will return the attribute value.
     * 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 validUntil
     */
    public String getValidUntil() {
        return validUntil;
    }

    /**
     * This is the setter method to the attribute.
     * 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 validUntil set the validUntil.
     */
    public void setValidUntil(String  validUntil) {
        this.validUntil = validUntil;
    }


    @Override
    public boolean equals(java.lang.Object o) {
      if (this == o) {
          return true;
      }
      if (o == null || getClass() != o.getClass()) {
          return false;
      }
      ControllerLicense objControllerLicense = (ControllerLicense) o;
      return   Objects.equals(this.uuid, objControllerLicense.uuid)&&
  Objects.equals(this.name, objControllerLicense.name)&&
  Objects.equals(this.startOn, objControllerLicense.startOn)&&
  Objects.equals(this.validUntil, objControllerLicense.validUntil)&&
  Objects.equals(this.customerName, objControllerLicense.customerName)&&
  Objects.equals(this.cores, objControllerLicense.cores)&&
  Objects.equals(this.licenseTier, objControllerLicense.licenseTier)&&
  Objects.equals(this.maxSes, objControllerLicense.maxSes)&&
  Objects.equals(this.sockets, objControllerLicense.sockets)&&
  Objects.equals(this.licenses, objControllerLicense.licenses)&&
  Objects.equals(this.seBandwidthLimits, objControllerLicense.seBandwidthLimits)&&
  Objects.equals(this.licenseTiers, objControllerLicense.licenseTiers)&&
  Objects.equals(this.burstCores, objControllerLicense.burstCores)&&
  Objects.equals(this.activeBurstResources, objControllerLicense.activeBurstResources)&&
  Objects.equals(this.expiredBurstResources, objControllerLicense.expiredBurstResources)&&
  Objects.equals(this.licenseId, objControllerLicense.licenseId)&&
  Objects.equals(this.disableEnforcement, objControllerLicense.disableEnforcement)&&
  Objects.equals(this.serviceCores, objControllerLicense.serviceCores)&&
  Objects.equals(this.initialized, objControllerLicense.initialized)&&
  Objects.equals(this.tenantUuid, objControllerLicense.tenantUuid);
    }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append("class ControllerLicense {\n");
                  sb.append("    activeBurstResources: ").append(toIndentedString(activeBurstResources)).append("\n");
                        sb.append("    burstCores: ").append(toIndentedString(burstCores)).append("\n");
                        sb.append("    cores: ").append(toIndentedString(cores)).append("\n");
                        sb.append("    customerName: ").append(toIndentedString(customerName)).append("\n");
                        sb.append("    disableEnforcement: ").append(toIndentedString(disableEnforcement)).append("\n");
                        sb.append("    expiredBurstResources: ").append(toIndentedString(expiredBurstResources)).append("\n");
                        sb.append("    initialized: ").append(toIndentedString(initialized)).append("\n");
                        sb.append("    licenseId: ").append(toIndentedString(licenseId)).append("\n");
                        sb.append("    licenseTier: ").append(toIndentedString(licenseTier)).append("\n");
                        sb.append("    licenseTiers: ").append(toIndentedString(licenseTiers)).append("\n");
                        sb.append("    licenses: ").append(toIndentedString(licenses)).append("\n");
                        sb.append("    maxSes: ").append(toIndentedString(maxSes)).append("\n");
                        sb.append("    name: ").append(toIndentedString(name)).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("    startOn: ").append(toIndentedString(startOn)).append("\n");
                        sb.append("    tenantUuid: ").append(toIndentedString(tenantUuid)).append("\n");
                                    sb.append("    uuid: ").append(toIndentedString(uuid)).append("\n");
                        sb.append("    validUntil: ").append(toIndentedString(validUntil)).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