com.vmware.avi.sdk.model.MesosSeResources 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 MesosSeResources is a POJO class extends AviRestResource that used for creating
* MesosSeResources.
*
* @version 1.0
* @since
*
*/
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class MesosSeResources {
@JsonProperty("attribute_key")
private String attributeKey;
@JsonProperty("attribute_value")
private String attributeValue;
@JsonProperty("cpu")
private Float cpu = 2.0f;
@JsonProperty("memory")
private Integer memory = 4096;
/**
* This is the getter method this will return the attribute value.
* Attribute (fleet or mesos) key of 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 attributeKey
*/
public String getAttributeKey() {
return attributeKey;
}
/**
* This is the setter method to the attribute.
* Attribute (fleet or mesos) key of 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.
* @param attributeKey set the attributeKey.
*/
public void setAttributeKey(String attributeKey) {
this.attributeKey = attributeKey;
}
/**
* This is the getter method this will return the attribute value.
* Attribute (fleet or mesos) value of 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 attributeValue
*/
public String getAttributeValue() {
return attributeValue;
}
/**
* This is the setter method to the attribute.
* Attribute (fleet or mesos) value of 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.
* @param attributeValue set the attributeValue.
*/
public void setAttributeValue(String attributeValue) {
this.attributeValue = attributeValue;
}
/**
* This is the getter method this will return the attribute value.
* Obsolete - ignored.
* 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 2.0f.
* @return cpu
*/
public Float getCpu() {
return cpu;
}
/**
* This is the setter method to the attribute.
* Obsolete - ignored.
* 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 2.0f.
* @param cpu set the cpu.
*/
public void setCpu(Float cpu) {
this.cpu = cpu;
}
/**
* This is the getter method this will return the attribute value.
* Obsolete - ignored.
* 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 4096.
* @return memory
*/
public Integer getMemory() {
return memory;
}
/**
* This is the setter method to the attribute.
* Obsolete - ignored.
* 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 4096.
* @param memory set the memory.
*/
public void setMemory(Integer memory) {
this.memory = memory;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MesosSeResources objMesosSeResources = (MesosSeResources) o;
return Objects.equals(this.attributeKey, objMesosSeResources.attributeKey)&&
Objects.equals(this.attributeValue, objMesosSeResources.attributeValue)&&
Objects.equals(this.cpu, objMesosSeResources.cpu)&&
Objects.equals(this.memory, objMesosSeResources.memory);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MesosSeResources {\n");
sb.append(" attributeKey: ").append(toIndentedString(attributeKey)).append("\n");
sb.append(" attributeValue: ").append(toIndentedString(attributeValue)).append("\n");
sb.append(" cpu: ").append(toIndentedString(cpu)).append("\n");
sb.append(" memory: ").append(toIndentedString(memory)).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