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

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

/*
 * 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 ContainerCloudSetup is a POJO class extends AviRestResource that used for creating
 * ContainerCloudSetup.
 *
 * @version 1.0
 * @since 
 *
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ContainerCloudSetup  {
    @JsonProperty("cc_id")
    private String ccId;

    @JsonProperty("cloud_access")
    private Boolean cloudAccess;

    @JsonProperty("failed_hosts")
    private List failedHosts;

    @JsonProperty("fleet_endpoint")
    private String fleetEndpoint;

    @JsonProperty("hosts")
    private List hosts;

    @JsonProperty("master_nodes")
    private List masterNodes;

    @JsonProperty("missing_hosts")
    private List missingHosts;

    @JsonProperty("new_hosts")
    private List newHosts;

    @JsonProperty("reason")
    private String reason;

    @JsonProperty("se_deploy_method_access")
    private Boolean seDeployMethodAccess;

    @JsonProperty("se_name")
    private String seName;

    @JsonProperty("version")
    private String version;



    /**
     * 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 ccId
     */
    public String getCcId() {
        return ccId;
    }

    /**
     * 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 ccId set the ccId.
     */
    public void setCcId(String  ccId) {
        this.ccId = ccId;
    }

    /**
     * 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 cloudAccess
     */
    public Boolean getCloudAccess() {
        return cloudAccess;
    }

    /**
     * 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 cloudAccess set the cloudAccess.
     */
    public void setCloudAccess(Boolean  cloudAccess) {
        this.cloudAccess = cloudAccess;
    }
    /**
     * 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 failedHosts
     */
    public List getFailedHosts() {
        return failedHosts;
    }

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

    /**
     * This is the setter method this will set the failedHosts
     * 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 failedHosts
     */
    public ContainerCloudSetup addFailedHostsItem(String failedHostsItem) {
      if (this.failedHosts == null) {
        this.failedHosts = new ArrayList();
      }
      this.failedHosts.add(failedHostsItem);
      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 fleetEndpoint
     */
    public String getFleetEndpoint() {
        return fleetEndpoint;
    }

    /**
     * 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 fleetEndpoint set the fleetEndpoint.
     */
    public void setFleetEndpoint(String  fleetEndpoint) {
        this.fleetEndpoint = fleetEndpoint;
    }
    /**
     * 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 hosts
     */
    public List getHosts() {
        return hosts;
    }

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

    /**
     * This is the setter method this will set the hosts
     * 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 hosts
     */
    public ContainerCloudSetup addHostsItem(String hostsItem) {
      if (this.hosts == null) {
        this.hosts = new ArrayList();
      }
      this.hosts.add(hostsItem);
      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 masterNodes
     */
    public List getMasterNodes() {
        return masterNodes;
    }

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

    /**
     * This is the setter method this will set the masterNodes
     * 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 masterNodes
     */
    public ContainerCloudSetup addMasterNodesItem(String masterNodesItem) {
      if (this.masterNodes == null) {
        this.masterNodes = new ArrayList();
      }
      this.masterNodes.add(masterNodesItem);
      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 missingHosts
     */
    public List getMissingHosts() {
        return missingHosts;
    }

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

    /**
     * This is the setter method this will set the missingHosts
     * 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 missingHosts
     */
    public ContainerCloudSetup addMissingHostsItem(String missingHostsItem) {
      if (this.missingHosts == null) {
        this.missingHosts = new ArrayList();
      }
      this.missingHosts.add(missingHostsItem);
      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 newHosts
     */
    public List getNewHosts() {
        return newHosts;
    }

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

    /**
     * This is the setter method this will set the newHosts
     * 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 newHosts
     */
    public ContainerCloudSetup addNewHostsItem(String newHostsItem) {
      if (this.newHosts == null) {
        this.newHosts = new ArrayList();
      }
      this.newHosts.add(newHostsItem);
      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 reason
     */
    public String getReason() {
        return reason;
    }

    /**
     * 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 reason set the reason.
     */
    public void setReason(String  reason) {
        this.reason = reason;
    }

    /**
     * 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 seDeployMethodAccess
     */
    public Boolean getSeDeployMethodAccess() {
        return seDeployMethodAccess;
    }

    /**
     * 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 seDeployMethodAccess set the seDeployMethodAccess.
     */
    public void setSeDeployMethodAccess(Boolean  seDeployMethodAccess) {
        this.seDeployMethodAccess = seDeployMethodAccess;
    }

    /**
     * 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 seName
     */
    public String getSeName() {
        return seName;
    }

    /**
     * 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 seName set the seName.
     */
    public void setSeName(String  seName) {
        this.seName = seName;
    }

    /**
     * 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 version
     */
    public String getVersion() {
        return version;
    }

    /**
     * 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 version set the version.
     */
    public void setVersion(String  version) {
        this.version = version;
    }


    @Override
    public boolean equals(java.lang.Object o) {
      if (this == o) {
          return true;
      }
      if (o == null || getClass() != o.getClass()) {
          return false;
      }
      ContainerCloudSetup objContainerCloudSetup = (ContainerCloudSetup) o;
      return   Objects.equals(this.ccId, objContainerCloudSetup.ccId)&&
  Objects.equals(this.masterNodes, objContainerCloudSetup.masterNodes)&&
  Objects.equals(this.cloudAccess, objContainerCloudSetup.cloudAccess)&&
  Objects.equals(this.fleetEndpoint, objContainerCloudSetup.fleetEndpoint)&&
  Objects.equals(this.seDeployMethodAccess, objContainerCloudSetup.seDeployMethodAccess)&&
  Objects.equals(this.reason, objContainerCloudSetup.reason)&&
  Objects.equals(this.version, objContainerCloudSetup.version)&&
  Objects.equals(this.seName, objContainerCloudSetup.seName)&&
  Objects.equals(this.hosts, objContainerCloudSetup.hosts)&&
  Objects.equals(this.newHosts, objContainerCloudSetup.newHosts)&&
  Objects.equals(this.missingHosts, objContainerCloudSetup.missingHosts)&&
  Objects.equals(this.failedHosts, objContainerCloudSetup.failedHosts);
    }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append("class ContainerCloudSetup {\n");
                  sb.append("    ccId: ").append(toIndentedString(ccId)).append("\n");
                        sb.append("    cloudAccess: ").append(toIndentedString(cloudAccess)).append("\n");
                        sb.append("    failedHosts: ").append(toIndentedString(failedHosts)).append("\n");
                        sb.append("    fleetEndpoint: ").append(toIndentedString(fleetEndpoint)).append("\n");
                        sb.append("    hosts: ").append(toIndentedString(hosts)).append("\n");
                        sb.append("    masterNodes: ").append(toIndentedString(masterNodes)).append("\n");
                        sb.append("    missingHosts: ").append(toIndentedString(missingHosts)).append("\n");
                        sb.append("    newHosts: ").append(toIndentedString(newHosts)).append("\n");
                        sb.append("    reason: ").append(toIndentedString(reason)).append("\n");
                        sb.append("    seDeployMethodAccess: ").append(toIndentedString(seDeployMethodAccess)).append("\n");
                        sb.append("    seName: ").append(toIndentedString(seName)).append("\n");
                        sb.append("    version: ").append(toIndentedString(version)).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