
com.vmware.avi.sdk.model.VIMgrIPSubnetRuntime 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 VIMgrIPSubnetRuntime is a POJO class extends AviRestResource that used for creating
* VIMgrIPSubnetRuntime.
*
* @version 1.0
* @since
*
*/
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class VIMgrIPSubnetRuntime extends AviRestResource {
@JsonProperty("fip_available")
private Boolean fipAvailable = false;
@JsonProperty("fip_subnet_uuids")
private List fipSubnetUuids;
@JsonProperty("floatingip_subnets")
private List floatingipSubnets;
@JsonProperty("ip_subnet")
private String ipSubnet;
@JsonProperty("name")
private String name;
@JsonProperty("prefix")
private IpAddrPrefix prefix;
@JsonProperty("primary")
private Boolean primary = false;
@JsonProperty("ref_count")
private Integer refCount;
@JsonProperty("se_ref_count")
private Integer seRefCount = 0;
@JsonProperty("uuid")
private String uuid;
/**
* This is the getter method this will return the attribute value.
* If true, capable of floating/elastic ip association.
* 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 fipAvailable
*/
public Boolean getFipAvailable() {
return fipAvailable;
}
/**
* This is the setter method to the attribute.
* If true, capable of floating/elastic ip association.
* 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 fipAvailable set the fipAvailable.
*/
public void setFipAvailable(Boolean fipAvailable) {
this.fipAvailable = fipAvailable;
}
/**
* This is the getter method this will return the attribute value.
* If fip_available is true, this is list of supported fip subnets, possibly empty if cloud does not support such a network list.
* 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 fipSubnetUuids
*/
public List getFipSubnetUuids() {
return fipSubnetUuids;
}
/**
* This is the setter method. this will set the fipSubnetUuids
* If fip_available is true, this is list of supported fip subnets, possibly empty if cloud does not support such a network list.
* 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 fipSubnetUuids
*/
public void setFipSubnetUuids(List fipSubnetUuids) {
this.fipSubnetUuids = fipSubnetUuids;
}
/**
* This is the setter method this will set the fipSubnetUuids
* If fip_available is true, this is list of supported fip subnets, possibly empty if cloud does not support such a network list.
* 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 fipSubnetUuids
*/
public VIMgrIPSubnetRuntime addFipSubnetUuidsItem(String fipSubnetUuidsItem) {
if (this.fipSubnetUuids == null) {
this.fipSubnetUuids = new ArrayList();
}
this.fipSubnetUuids.add(fipSubnetUuidsItem);
return this;
}
/**
* This is the getter method this will return the attribute value.
* If fip_available is true, the list of associated floatingip subnets, possibly empty if unsupported or implictly defined by the cloud.
* Field introduced in 17.2.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 floatingipSubnets
*/
public List getFloatingipSubnets() {
return floatingipSubnets;
}
/**
* This is the setter method. this will set the floatingipSubnets
* If fip_available is true, the list of associated floatingip subnets, possibly empty if unsupported or implictly defined by the cloud.
* Field introduced in 17.2.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 floatingipSubnets
*/
public void setFloatingipSubnets(List floatingipSubnets) {
this.floatingipSubnets = floatingipSubnets;
}
/**
* This is the setter method this will set the floatingipSubnets
* If fip_available is true, the list of associated floatingip subnets, possibly empty if unsupported or implictly defined by the cloud.
* Field introduced in 17.2.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 floatingipSubnets
*/
public VIMgrIPSubnetRuntime addFloatingipSubnetsItem(FloatingIpSubnet floatingipSubnetsItem) {
if (this.floatingipSubnets == null) {
this.floatingipSubnets = new ArrayList();
}
this.floatingipSubnets.add(floatingipSubnetsItem);
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 ipSubnet
*/
public String getIpSubnet() {
return ipSubnet;
}
/**
* 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 ipSubnet set the ipSubnet.
*/
public void setIpSubnet(String ipSubnet) {
this.ipSubnet = ipSubnet;
}
/**
* 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 name
*/
public String getName() {
return name;
}
/**
* 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 name set the name.
*/
public void setName(String name) {
this.name = name;
}
/**
* 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 prefix
*/
public IpAddrPrefix getPrefix() {
return prefix;
}
/**
* 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 prefix set the prefix.
*/
public void setPrefix(IpAddrPrefix prefix) {
this.prefix = prefix;
}
/**
* This is the getter method this will return the attribute value.
* True if prefix is primary ip on interface, else false.
* 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 primary
*/
public Boolean getPrimary() {
return primary;
}
/**
* This is the setter method to the attribute.
* True if prefix is primary ip on interface, else false.
* 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 primary set the primary.
*/
public void setPrimary(Boolean primary) {
this.primary = primary;
}
/**
* 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 refCount
*/
public Integer getRefCount() {
return refCount;
}
/**
* 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 refCount set the refCount.
*/
public void setRefCount(Integer refCount) {
this.refCount = refCount;
}
/**
* 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 0.
* @return seRefCount
*/
public Integer getSeRefCount() {
return seRefCount;
}
/**
* 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 0.
* @param seRefCount set the seRefCount.
*/
public void setSeRefCount(Integer seRefCount) {
this.seRefCount = seRefCount;
}
/**
* 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;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
VIMgrIPSubnetRuntime objVIMgrIPSubnetRuntime = (VIMgrIPSubnetRuntime) o;
return Objects.equals(this.prefix, objVIMgrIPSubnetRuntime.prefix)&&
Objects.equals(this.refCount, objVIMgrIPSubnetRuntime.refCount)&&
Objects.equals(this.ipSubnet, objVIMgrIPSubnetRuntime.ipSubnet)&&
Objects.equals(this.seRefCount, objVIMgrIPSubnetRuntime.seRefCount)&&
Objects.equals(this.name, objVIMgrIPSubnetRuntime.name)&&
Objects.equals(this.uuid, objVIMgrIPSubnetRuntime.uuid)&&
Objects.equals(this.fipAvailable, objVIMgrIPSubnetRuntime.fipAvailable)&&
Objects.equals(this.fipSubnetUuids, objVIMgrIPSubnetRuntime.fipSubnetUuids)&&
Objects.equals(this.primary, objVIMgrIPSubnetRuntime.primary)&&
Objects.equals(this.floatingipSubnets, objVIMgrIPSubnetRuntime.floatingipSubnets);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class VIMgrIPSubnetRuntime {\n");
sb.append(" fipAvailable: ").append(toIndentedString(fipAvailable)).append("\n");
sb.append(" fipSubnetUuids: ").append(toIndentedString(fipSubnetUuids)).append("\n");
sb.append(" floatingipSubnets: ").append(toIndentedString(floatingipSubnets)).append("\n");
sb.append(" ipSubnet: ").append(toIndentedString(ipSubnet)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" prefix: ").append(toIndentedString(prefix)).append("\n");
sb.append(" primary: ").append(toIndentedString(primary)).append("\n");
sb.append(" refCount: ").append(toIndentedString(refCount)).append("\n");
sb.append(" seRefCount: ").append(toIndentedString(seRefCount)).append("\n");
sb.append(" uuid: ").append(toIndentedString(uuid)).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