All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vmware.avi.sdk.model.DnsZone Maven / Gradle / Ivy

Go to download

Avi SDK is a java API which creates a session with controller and perform CRUD operations.

There is a newer version: 31.1.1.RELEASE
Show 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 DnsZone is a POJO class extends AviRestResource that used for creating
 * DnsZone.
 *
 * @version 1.0
 * @since 
 *
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DnsZone  {
    @JsonProperty("admin_email")
    private String adminEmail;

    @JsonProperty("domain_name")
    private String domainName;

    @JsonProperty("name_server")
    private String nameServer;



    /**
     * This is the getter method this will return the attribute value.
     * Email address of the administrator responsible for this zone.
     * This field is used in soa records as rname (rfc 1035).
     * If not configured, it is inherited from the dns service profile.
     * Field introduced in 18.2.6.
     * 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 adminEmail
     */
    public String getAdminEmail() {
        return adminEmail;
    }

    /**
     * This is the setter method to the attribute.
     * Email address of the administrator responsible for this zone.
     * This field is used in soa records as rname (rfc 1035).
     * If not configured, it is inherited from the dns service profile.
     * Field introduced in 18.2.6.
     * 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 adminEmail set the adminEmail.
     */
    public void setAdminEmail(String  adminEmail) {
        this.adminEmail = adminEmail;
    }

    /**
     * This is the getter method this will return the attribute value.
     * Domain name authoritatively serviced by this virtual service.
     * Queries for fqdns that are sub domains of this domain and do not have any dns record in avi are dropped or nxdomain response sent.
     * For domains which are present, soa parameters are sent in answer section of response if query type is soa.
     * Field introduced in 18.2.6.
     * 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 domainName
     */
    public String getDomainName() {
        return domainName;
    }

    /**
     * This is the setter method to the attribute.
     * Domain name authoritatively serviced by this virtual service.
     * Queries for fqdns that are sub domains of this domain and do not have any dns record in avi are dropped or nxdomain response sent.
     * For domains which are present, soa parameters are sent in answer section of response if query type is soa.
     * Field introduced in 18.2.6.
     * 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 domainName set the domainName.
     */
    public void setDomainName(String  domainName) {
        this.domainName = domainName;
    }

    /**
     * This is the getter method this will return the attribute value.
     * The primary name server for this zone.
     * This field is used in soa records as mname (rfc 1035).
     * If not configured, it is inherited from the dns service profile.
     * If even that is not configured, the domain name is used instead.
     * Field introduced in 18.2.6.
     * 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 nameServer
     */
    public String getNameServer() {
        return nameServer;
    }

    /**
     * This is the setter method to the attribute.
     * The primary name server for this zone.
     * This field is used in soa records as mname (rfc 1035).
     * If not configured, it is inherited from the dns service profile.
     * If even that is not configured, the domain name is used instead.
     * Field introduced in 18.2.6.
     * 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 nameServer set the nameServer.
     */
    public void setNameServer(String  nameServer) {
        this.nameServer = nameServer;
    }


    @Override
    public boolean equals(java.lang.Object o) {
      if (this == o) {
          return true;
      }
      if (o == null || getClass() != o.getClass()) {
          return false;
      }
      DnsZone objDnsZone = (DnsZone) o;
      return   Objects.equals(this.domainName, objDnsZone.domainName)&&
  Objects.equals(this.nameServer, objDnsZone.nameServer)&&
  Objects.equals(this.adminEmail, objDnsZone.adminEmail);
    }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append("class DnsZone {\n");
                  sb.append("    adminEmail: ").append(toIndentedString(adminEmail)).append("\n");
                        sb.append("    domainName: ").append(toIndentedString(domainName)).append("\n");
                        sb.append("    nameServer: ").append(toIndentedString(nameServer)).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