
com.vmware.avi.sdk.model.DnsOptRecord 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 DnsOptRecord is a POJO class extends AviRestResource that used for creating
* DnsOptRecord.
*
* @version 1.0
* @since
*
*/
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DnsOptRecord {
@JsonProperty("dnssec_ok")
private Boolean dnssecOk;
@JsonProperty("options")
private List options;
@JsonProperty("udp_payload_size")
private Integer udpPayloadSize;
@JsonProperty("version")
private Integer version;
/**
* This is the getter method this will return the attribute value.
* Flag indicating client is dnssec aware.
* 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 dnssecOk
*/
public Boolean getDnssecOk() {
return dnssecOk;
}
/**
* This is the setter method to the attribute.
* Flag indicating client is dnssec aware.
* 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 dnssecOk set the dnssecOk.
*/
public void setDnssecOk(Boolean dnssecOk) {
this.dnssecOk = dnssecOk;
}
/**
* This is the getter method this will return the attribute value.
* Edns options.
* 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 options
*/
public List getOptions() {
return options;
}
/**
* This is the setter method. this will set the options
* Edns options.
* 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 options
*/
public void setOptions(List options) {
this.options = options;
}
/**
* This is the setter method this will set the options
* Edns options.
* 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 options
*/
public DnsOptRecord addOptionsItem(DnsEdnsOption optionsItem) {
if (this.options == null) {
this.options = new ArrayList();
}
this.options.add(optionsItem);
return this;
}
/**
* This is the getter method this will return the attribute value.
* Client requestor's udp payload size.
* 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 udpPayloadSize
*/
public Integer getUdpPayloadSize() {
return udpPayloadSize;
}
/**
* This is the setter method to the attribute.
* Client requestor's udp payload size.
* 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 udpPayloadSize set the udpPayloadSize.
*/
public void setUdpPayloadSize(Integer udpPayloadSize) {
this.udpPayloadSize = udpPayloadSize;
}
/**
* This is the getter method this will return the attribute value.
* Edns version.
* 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 version
*/
public Integer getVersion() {
return version;
}
/**
* This is the setter method to the attribute.
* Edns version.
* 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 version set the version.
*/
public void setVersion(Integer version) {
this.version = version;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DnsOptRecord objDnsOptRecord = (DnsOptRecord) o;
return Objects.equals(this.version, objDnsOptRecord.version)&&
Objects.equals(this.udpPayloadSize, objDnsOptRecord.udpPayloadSize)&&
Objects.equals(this.dnssecOk, objDnsOptRecord.dnssecOk)&&
Objects.equals(this.options, objDnsOptRecord.options);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DnsOptRecord {\n");
sb.append(" dnssecOk: ").append(toIndentedString(dnssecOk)).append("\n");
sb.append(" options: ").append(toIndentedString(options)).append("\n");
sb.append(" udpPayloadSize: ").append(toIndentedString(udpPayloadSize)).append("\n");
sb.append(" version: ").append(toIndentedString(version)).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