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

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

Go to download

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 DnsGeoLocationMatch is a POJO class extends AviRestResource that used for creating
 * DnsGeoLocationMatch.
 *
 * @version 1.0
 * @since 
 *
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DnsGeoLocationMatch  {
    @JsonProperty("geolocation_name")
    private String geolocationName;

    @JsonProperty("geolocation_tag")
    private String geolocationTag;

    @JsonProperty("match_criteria")
    private String matchCriteria;

    @JsonProperty("use_edns_client_subnet_ip")
    private Boolean useEdnsClientSubnetIp = true;



    /**
     * This is the getter method this will return the attribute value.
     * Geographical location of the client ip to be used in the match.
     * This location is of the format country/state/city e.g.
     * Us/ca/santa clara.
     * Field introduced in 17.1.5.
     * 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 geolocationName
     */
    public String getGeolocationName() {
        return geolocationName;
    }

    /**
     * This is the setter method to the attribute.
     * Geographical location of the client ip to be used in the match.
     * This location is of the format country/state/city e.g.
     * Us/ca/santa clara.
     * Field introduced in 17.1.5.
     * 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 geolocationName set the geolocationName.
     */
    public void setGeolocationName(String  geolocationName) {
        this.geolocationName = geolocationName;
    }

    /**
     * This is the getter method this will return the attribute value.
     * Geolocation tag for the client ip.
     * This could be any string value for the client ip, e.g.
     * Client ips from us east coast geolocation would be tagged as 'east coast'.
     * Field introduced in 17.1.5.
     * 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 geolocationTag
     */
    public String getGeolocationTag() {
        return geolocationTag;
    }

    /**
     * This is the setter method to the attribute.
     * Geolocation tag for the client ip.
     * This could be any string value for the client ip, e.g.
     * Client ips from us east coast geolocation would be tagged as 'east coast'.
     * Field introduced in 17.1.5.
     * 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 geolocationTag set the geolocationTag.
     */
    public void setGeolocationTag(String  geolocationTag) {
        this.geolocationTag = geolocationTag;
    }

    /**
     * This is the getter method this will return the attribute value.
     * Criterion to use for matching the client ip's geographical location.
     * Enum options - IS_IN, IS_NOT_IN.
     * Field introduced in 17.1.5.
     * 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 matchCriteria
     */
    public String getMatchCriteria() {
        return matchCriteria;
    }

    /**
     * This is the setter method to the attribute.
     * Criterion to use for matching the client ip's geographical location.
     * Enum options - IS_IN, IS_NOT_IN.
     * Field introduced in 17.1.5.
     * 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 matchCriteria set the matchCriteria.
     */
    public void setMatchCriteria(String  matchCriteria) {
        this.matchCriteria = matchCriteria;
    }

    /**
     * This is the getter method this will return the attribute value.
     * Use the ip address from the edns client subnet option, if available, to derive geo location of the dns query.
     * Field introduced in 17.1.5.
     * 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 true.
     * @return useEdnsClientSubnetIp
     */
    public Boolean getUseEdnsClientSubnetIp() {
        return useEdnsClientSubnetIp;
    }

    /**
     * This is the setter method to the attribute.
     * Use the ip address from the edns client subnet option, if available, to derive geo location of the dns query.
     * Field introduced in 17.1.5.
     * 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 true.
     * @param useEdnsClientSubnetIp set the useEdnsClientSubnetIp.
     */
    public void setUseEdnsClientSubnetIp(Boolean  useEdnsClientSubnetIp) {
        this.useEdnsClientSubnetIp = useEdnsClientSubnetIp;
    }


    @Override
    public boolean equals(java.lang.Object o) {
      if (this == o) {
          return true;
      }
      if (o == null || getClass() != o.getClass()) {
          return false;
      }
      DnsGeoLocationMatch objDnsGeoLocationMatch = (DnsGeoLocationMatch) o;
      return   Objects.equals(this.matchCriteria, objDnsGeoLocationMatch.matchCriteria)&&
  Objects.equals(this.useEdnsClientSubnetIp, objDnsGeoLocationMatch.useEdnsClientSubnetIp)&&
  Objects.equals(this.geolocationName, objDnsGeoLocationMatch.geolocationName)&&
  Objects.equals(this.geolocationTag, objDnsGeoLocationMatch.geolocationTag);
    }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append("class DnsGeoLocationMatch {\n");
                  sb.append("    geolocationName: ").append(toIndentedString(geolocationName)).append("\n");
                        sb.append("    geolocationTag: ").append(toIndentedString(geolocationTag)).append("\n");
                        sb.append("    matchCriteria: ").append(toIndentedString(matchCriteria)).append("\n");
                        sb.append("    useEdnsClientSubnetIp: ").append(toIndentedString(useEdnsClientSubnetIp)).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