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

com.vmware.avi.sdk.model.VsScaleoutParams 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.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * The VsScaleoutParams is a POJO class extends AviRestResource that used for creating
 * VsScaleoutParams.
 *
 * @version 1.0
 * @since 
 *
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class VsScaleoutParams extends AviRestResource  {
    @JsonIgnore
    private Boolean adminUp = false;

    @JsonProperty("new_vcpus")
    private Integer newVcpus;

    @JsonProperty("to_host_ref")
    private String toHostRef;

    @JsonProperty("to_new_se")
    private Boolean toNewSe = false;

    @JsonProperty("to_se_ref")
    private String toSeRef;

    @JsonProperty("uuid")
    private String uuid;

    @JsonProperty("vip_id")
    private String vipId;



    /**
     * 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 false.
     * @return adminUp
     */
    public Boolean getAdminUp() {
        return adminUp;
    }

    /**
     * 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 false.
     * @param adminUp set the adminUp.
     */
    public void setAdminUp(Boolean  adminUp) {
        this.adminUp = adminUp;
    }

    /**
     * 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 newVcpus
     */
    public Integer getNewVcpus() {
        return newVcpus;
    }

    /**
     * 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 newVcpus set the newVcpus.
     */
    public void setNewVcpus(Integer  newVcpus) {
        this.newVcpus = newVcpus;
    }

    /**
     * This is the getter method this will return the attribute value.
     * It is a reference to an object of type vimgrhostruntime.
     * 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 toHostRef
     */
    public String getToHostRef() {
        return toHostRef;
    }

    /**
     * This is the setter method to the attribute.
     * It is a reference to an object of type vimgrhostruntime.
     * 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 toHostRef set the toHostRef.
     */
    public void setToHostRef(String  toHostRef) {
        this.toHostRef = toHostRef;
    }

    /**
     * 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 false.
     * @return toNewSe
     */
    public Boolean getToNewSe() {
        return toNewSe;
    }

    /**
     * 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 false.
     * @param toNewSe set the toNewSe.
     */
    public void setToNewSe(Boolean  toNewSe) {
        this.toNewSe = toNewSe;
    }

    /**
     * This is the getter method this will return the attribute value.
     * It is a reference to an object of type serviceengine.
     * 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 toSeRef
     */
    public String getToSeRef() {
        return toSeRef;
    }

    /**
     * This is the setter method to the attribute.
     * It is a reference to an object of type serviceengine.
     * 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 toSeRef set the toSeRef.
     */
    public void setToSeRef(String  toSeRef) {
        this.toSeRef = toSeRef;
    }

    /**
     * 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.
     * Field introduced in 17.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 vipId
     */
    public String getVipId() {
        return vipId;
    }

    /**
     * This is the setter method to the attribute.
     * Field introduced in 17.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 vipId set the vipId.
     */
    public void setVipId(String  vipId) {
        this.vipId = vipId;
    }


    @Override
    public boolean equals(java.lang.Object o) {
      if (this == o) {
          return true;
      }
      if (o == null || getClass() != o.getClass()) {
          return false;
      }
      VsScaleoutParams objVsScaleoutParams = (VsScaleoutParams) o;
      return   Objects.equals(this.uuid, objVsScaleoutParams.uuid)&&
  Objects.equals(this.toSeRef, objVsScaleoutParams.toSeRef)&&
  Objects.equals(this.toNewSe, objVsScaleoutParams.toNewSe)&&
  Objects.equals(this.toHostRef, objVsScaleoutParams.toHostRef)&&
  Objects.equals(this.adminUp, objVsScaleoutParams.adminUp)&&
  Objects.equals(this.newVcpus, objVsScaleoutParams.newVcpus)&&
  Objects.equals(this.vipId, objVsScaleoutParams.vipId);
    }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append("class VsScaleoutParams {\n");
                  sb.append("    adminUp: ").append(toIndentedString(adminUp)).append("\n");
                        sb.append("    newVcpus: ").append(toIndentedString(newVcpus)).append("\n");
                        sb.append("    toHostRef: ").append(toIndentedString(toHostRef)).append("\n");
                        sb.append("    toNewSe: ").append(toIndentedString(toNewSe)).append("\n");
                        sb.append("    toSeRef: ").append(toIndentedString(toSeRef)).append("\n");
                        sb.append("    uuid: ").append(toIndentedString(uuid)).append("\n");
                        sb.append("    vipId: ").append(toIndentedString(vipId)).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