
com.vmware.avi.sdk.model.ServerAutoScaleOutInfo 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.
/*
* 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 ServerAutoScaleOutInfo is a POJO class extends AviRestResource that used for creating
* ServerAutoScaleOutInfo.
*
* @version 1.0
* @since
*
*/
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ServerAutoScaleOutInfo {
@JsonProperty("alertconfig_name")
private String alertconfigName;
@JsonProperty("alertconfig_ref")
private String alertconfigRef;
@JsonProperty("available_capacity")
private Float availableCapacity;
@JsonProperty("load")
private Float load;
@JsonProperty("num_scaleout_servers")
private Integer numScaleoutServers;
@JsonProperty("num_servers_up")
private Integer numServersUp;
@JsonProperty("pool_ref")
private String poolRef;
@JsonProperty("reason")
private String reason;
@JsonProperty("reason_code")
private String reasonCode = "SYSERR_SUCCESS";
@JsonProperty("scheduled_desired_capacity")
private Integer scheduledDesiredCapacity;
/**
* 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 alertconfigName
*/
public String getAlertconfigName() {
return alertconfigName;
}
/**
* 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 alertconfigName set the alertconfigName.
*/
public void setAlertconfigName(String alertconfigName) {
this.alertconfigName = alertconfigName;
}
/**
* This is the getter method this will return the attribute value.
* It is a reference to an object of type alertconfig.
* 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 alertconfigRef
*/
public String getAlertconfigRef() {
return alertconfigRef;
}
/**
* This is the setter method to the attribute.
* It is a reference to an object of type alertconfig.
* 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 alertconfigRef set the alertconfigRef.
*/
public void setAlertconfigRef(String alertconfigRef) {
this.alertconfigRef = alertconfigRef;
}
/**
* 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 availableCapacity
*/
public Float getAvailableCapacity() {
return availableCapacity;
}
/**
* 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 availableCapacity set the availableCapacity.
*/
public void setAvailableCapacity(Float availableCapacity) {
this.availableCapacity = availableCapacity;
}
/**
* 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 load
*/
public Float getLoad() {
return load;
}
/**
* 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 load set the load.
*/
public void setLoad(Float load) {
this.load = load;
}
/**
* 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 numScaleoutServers
*/
public Integer getNumScaleoutServers() {
return numScaleoutServers;
}
/**
* 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 numScaleoutServers set the numScaleoutServers.
*/
public void setNumScaleoutServers(Integer numScaleoutServers) {
this.numScaleoutServers = numScaleoutServers;
}
/**
* 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 numServersUp
*/
public Integer getNumServersUp() {
return numServersUp;
}
/**
* 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 numServersUp set the numServersUp.
*/
public void setNumServersUp(Integer numServersUp) {
this.numServersUp = numServersUp;
}
/**
* This is the getter method this will return the attribute value.
* Uuid of the pool.
* It is a reference to an object of type pool.
* 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 poolRef
*/
public String getPoolRef() {
return poolRef;
}
/**
* This is the setter method to the attribute.
* Uuid of the pool.
* It is a reference to an object of type pool.
* 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 poolRef set the poolRef.
*/
public void setPoolRef(String poolRef) {
this.poolRef = poolRef;
}
/**
* 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.
* Enum options - SYSERR_SUCCESS, SYSERR_FAILURE, SYSERR_OUT_OF_MEMORY, SYSERR_NO_ENT, SYSERR_INVAL, SYSERR_ACCESS, SYSERR_FAULT, SYSERR_IO,
* SYSERR_TIMEOUT, SYSERR_NOT_SUPPORTED, SYSERR_NOT_READY, SYSERR_UPGRADE_IN_PROGRESS, SYSERR_WARM_START_IN_PROGRESS, SYSERR_TRY_AGAIN,
* SYSERR_NOT_UPGRADING, SYSERR_PENDING, SYSERR_EVENT_GEN_FAILURE, SYSERR_CONFIG_PARAM_MISSING, SYSERR_RANGE, SYSERR_BAD_REQUEST...
* 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 "SYSERR_SUCCESS".
* @return reasonCode
*/
public String getReasonCode() {
return reasonCode;
}
/**
* This is the setter method to the attribute.
* Enum options - SYSERR_SUCCESS, SYSERR_FAILURE, SYSERR_OUT_OF_MEMORY, SYSERR_NO_ENT, SYSERR_INVAL, SYSERR_ACCESS, SYSERR_FAULT, SYSERR_IO,
* SYSERR_TIMEOUT, SYSERR_NOT_SUPPORTED, SYSERR_NOT_READY, SYSERR_UPGRADE_IN_PROGRESS, SYSERR_WARM_START_IN_PROGRESS, SYSERR_TRY_AGAIN,
* SYSERR_NOT_UPGRADING, SYSERR_PENDING, SYSERR_EVENT_GEN_FAILURE, SYSERR_CONFIG_PARAM_MISSING, SYSERR_RANGE, SYSERR_BAD_REQUEST...
* 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 "SYSERR_SUCCESS".
* @param reasonCode set the reasonCode.
*/
public void setReasonCode(String reasonCode) {
this.reasonCode = reasonCode;
}
/**
* This is the getter method this will return the attribute value.
* Desired number of servers for scheduled autoscale.
* Field introduced in 21.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 scheduledDesiredCapacity
*/
public Integer getScheduledDesiredCapacity() {
return scheduledDesiredCapacity;
}
/**
* This is the setter method to the attribute.
* Desired number of servers for scheduled autoscale.
* Field introduced in 21.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 scheduledDesiredCapacity set the scheduledDesiredCapacity.
*/
public void setScheduledDesiredCapacity(Integer scheduledDesiredCapacity) {
this.scheduledDesiredCapacity = scheduledDesiredCapacity;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ServerAutoScaleOutInfo objServerAutoScaleOutInfo = (ServerAutoScaleOutInfo) o;
return Objects.equals(this.poolRef, objServerAutoScaleOutInfo.poolRef)&&
Objects.equals(this.numScaleoutServers, objServerAutoScaleOutInfo.numScaleoutServers)&&
Objects.equals(this.numServersUp, objServerAutoScaleOutInfo.numServersUp)&&
Objects.equals(this.reason, objServerAutoScaleOutInfo.reason)&&
Objects.equals(this.reasonCode, objServerAutoScaleOutInfo.reasonCode)&&
Objects.equals(this.load, objServerAutoScaleOutInfo.load)&&
Objects.equals(this.availableCapacity, objServerAutoScaleOutInfo.availableCapacity)&&
Objects.equals(this.alertconfigRef, objServerAutoScaleOutInfo.alertconfigRef)&&
Objects.equals(this.alertconfigName, objServerAutoScaleOutInfo.alertconfigName)&&
Objects.equals(this.scheduledDesiredCapacity, objServerAutoScaleOutInfo.scheduledDesiredCapacity);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ServerAutoScaleOutInfo {\n");
sb.append(" alertconfigName: ").append(toIndentedString(alertconfigName)).append("\n");
sb.append(" alertconfigRef: ").append(toIndentedString(alertconfigRef)).append("\n");
sb.append(" availableCapacity: ").append(toIndentedString(availableCapacity)).append("\n");
sb.append(" load: ").append(toIndentedString(load)).append("\n");
sb.append(" numScaleoutServers: ").append(toIndentedString(numScaleoutServers)).append("\n");
sb.append(" numServersUp: ").append(toIndentedString(numServersUp)).append("\n");
sb.append(" poolRef: ").append(toIndentedString(poolRef)).append("\n");
sb.append(" reason: ").append(toIndentedString(reason)).append("\n");
sb.append(" reasonCode: ").append(toIndentedString(reasonCode)).append("\n");
sb.append(" scheduledDesiredCapacity: ").append(toIndentedString(scheduledDesiredCapacity)).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