
com.vmware.avi.sdk.model.IpamUsableNetwork 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 IpamUsableNetwork is a POJO class extends AviRestResource that used for creating
* IpamUsableNetwork.
*
* @version 1.0
* @since
*
*/
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class IpamUsableNetwork {
@JsonProperty("labels")
private List labels;
@JsonProperty("nw_ref")
private String nwRef;
/**
* This is the getter method this will return the attribute value.
* Labels as key value pairs, used for selection of ipam networks.
* Field introduced in 20.1.3.
* Maximum of 1 items allowed.
* 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 labels
*/
public List getLabels() {
return labels;
}
/**
* This is the setter method. this will set the labels
* Labels as key value pairs, used for selection of ipam networks.
* Field introduced in 20.1.3.
* Maximum of 1 items allowed.
* 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 labels
*/
public void setLabels(List labels) {
this.labels = labels;
}
/**
* This is the setter method this will set the labels
* Labels as key value pairs, used for selection of ipam networks.
* Field introduced in 20.1.3.
* Maximum of 1 items allowed.
* 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 labels
*/
public IpamUsableNetwork addLabelsItem(KeyValueTuple labelsItem) {
if (this.labels == null) {
this.labels = new ArrayList();
}
this.labels.add(labelsItem);
return this;
}
/**
* This is the getter method this will return the attribute value.
* Network.
* It is a reference to an object of type network.
* Field introduced in 20.1.3.
* 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 nwRef
*/
public String getNwRef() {
return nwRef;
}
/**
* This is the setter method to the attribute.
* Network.
* It is a reference to an object of type network.
* Field introduced in 20.1.3.
* 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 nwRef set the nwRef.
*/
public void setNwRef(String nwRef) {
this.nwRef = nwRef;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
IpamUsableNetwork objIpamUsableNetwork = (IpamUsableNetwork) o;
return Objects.equals(this.nwRef, objIpamUsableNetwork.nwRef)&&
Objects.equals(this.labels, objIpamUsableNetwork.labels);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class IpamUsableNetwork {\n");
sb.append(" labels: ").append(toIndentedString(labels)).append("\n");
sb.append(" nwRef: ").append(toIndentedString(nwRef)).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