com.vmware.avi.sdk.model.CloudInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of avisdk Show documentation
Show all versions of avisdk Show documentation
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 CloudInfo is a POJO class extends AviRestResource that used for creating
* CloudInfo.
*
* @version 1.0
* @since
*
*/
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class CloudInfo {
@JsonProperty("cca_props")
private CC_AgentProperties ccaProps;
@JsonProperty("controller_props")
private ControllerProperties controllerProps;
@JsonProperty("flavor_props")
private List flavorProps;
@JsonProperty("flavor_regex_filter")
private String flavorRegexFilter;
@JsonProperty("htypes")
private List htypes;
@JsonProperty("vtype")
private String vtype;
/**
* This is the getter method this will return the attribute value.
* Cloudconnectoragent properties specific to this cloud type.
* 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 ccaProps
*/
public CC_AgentProperties getCcaProps() {
return ccaProps;
}
/**
* This is the setter method to the attribute.
* Cloudconnectoragent properties specific to this cloud type.
* 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 ccaProps set the ccaProps.
*/
public void setCcaProps(CC_AgentProperties ccaProps) {
this.ccaProps = ccaProps;
}
/**
* This is the getter method this will return the attribute value.
* Controller properties specific to this cloud type.
* 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 controllerProps
*/
public ControllerProperties getControllerProps() {
return controllerProps;
}
/**
* This is the setter method to the attribute.
* Controller properties specific to this cloud type.
* 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 controllerProps set the controllerProps.
*/
public void setControllerProps(ControllerProperties controllerProps) {
this.controllerProps = controllerProps;
}
/**
* This is the getter method this will return the attribute value.
* Flavor properties specific to this cloud type.
* 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 flavorProps
*/
public List getFlavorProps() {
return flavorProps;
}
/**
* This is the setter method. this will set the flavorProps
* Flavor properties specific to this cloud type.
* 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 flavorProps
*/
public void setFlavorProps(List flavorProps) {
this.flavorProps = flavorProps;
}
/**
* This is the setter method this will set the flavorProps
* Flavor properties specific to this cloud type.
* 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 flavorProps
*/
public CloudInfo addFlavorPropsItem(CloudFlavor flavorPropsItem) {
if (this.flavorProps == null) {
this.flavorProps = new ArrayList();
}
this.flavorProps.add(flavorPropsItem);
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 flavorRegexFilter
*/
public String getFlavorRegexFilter() {
return flavorRegexFilter;
}
/**
* 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 flavorRegexFilter set the flavorRegexFilter.
*/
public void setFlavorRegexFilter(String flavorRegexFilter) {
this.flavorRegexFilter = flavorRegexFilter;
}
/**
* This is the getter method this will return the attribute value.
* Supported hypervisors.
* Enum options - DEFAULT, VMWARE_ESX, KVM, VMWARE_VSAN, XEN.
* 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 htypes
*/
public List getHtypes() {
return htypes;
}
/**
* This is the setter method. this will set the htypes
* Supported hypervisors.
* Enum options - DEFAULT, VMWARE_ESX, KVM, VMWARE_VSAN, XEN.
* 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 htypes
*/
public void setHtypes(List htypes) {
this.htypes = htypes;
}
/**
* This is the setter method this will set the htypes
* Supported hypervisors.
* Enum options - DEFAULT, VMWARE_ESX, KVM, VMWARE_VSAN, XEN.
* 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 htypes
*/
public CloudInfo addHtypesItem(String htypesItem) {
if (this.htypes == null) {
this.htypes = new ArrayList();
}
this.htypes.add(htypesItem);
return this;
}
/**
* This is the getter method this will return the attribute value.
* Cloud type.
* Enum options - CLOUD_NONE, CLOUD_VCENTER, CLOUD_OPENSTACK, CLOUD_AWS, CLOUD_VCA, CLOUD_APIC, CLOUD_MESOS, CLOUD_LINUXSERVER, CLOUD_DOCKER_UCP,
* CLOUD_RANCHER, CLOUD_OSHIFT_K8S, CLOUD_AZURE, CLOUD_GCP, CLOUD_NSXT.
* 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 vtype
*/
public String getVtype() {
return vtype;
}
/**
* This is the setter method to the attribute.
* Cloud type.
* Enum options - CLOUD_NONE, CLOUD_VCENTER, CLOUD_OPENSTACK, CLOUD_AWS, CLOUD_VCA, CLOUD_APIC, CLOUD_MESOS, CLOUD_LINUXSERVER, CLOUD_DOCKER_UCP,
* CLOUD_RANCHER, CLOUD_OSHIFT_K8S, CLOUD_AZURE, CLOUD_GCP, CLOUD_NSXT.
* 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 vtype set the vtype.
*/
public void setVtype(String vtype) {
this.vtype = vtype;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CloudInfo objCloudInfo = (CloudInfo) o;
return Objects.equals(this.vtype, objCloudInfo.vtype)&&
Objects.equals(this.htypes, objCloudInfo.htypes)&&
Objects.equals(this.flavorRegexFilter, objCloudInfo.flavorRegexFilter)&&
Objects.equals(this.flavorProps, objCloudInfo.flavorProps)&&
Objects.equals(this.ccaProps, objCloudInfo.ccaProps)&&
Objects.equals(this.controllerProps, objCloudInfo.controllerProps);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CloudInfo {\n");
sb.append(" ccaProps: ").append(toIndentedString(ccaProps)).append("\n");
sb.append(" controllerProps: ").append(toIndentedString(controllerProps)).append("\n");
sb.append(" flavorProps: ").append(toIndentedString(flavorProps)).append("\n");
sb.append(" flavorRegexFilter: ").append(toIndentedString(flavorRegexFilter)).append("\n");
sb.append(" htypes: ").append(toIndentedString(htypes)).append("\n");
sb.append(" vtype: ").append(toIndentedString(vtype)).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