Class NsxtDnsAnswer.Builder

  • Enclosing class:
    NsxtDnsAnswer

    public static final class NsxtDnsAnswer.Builder
    extends java.lang.Object
    Builder class for NsxtDnsAnswer.
    • Constructor Detail

      • Builder

        public Builder()
        Constructor with parameters for the required properties of NsxtDnsAnswer.
    • Method Detail

      • setAuthoritativeAnswers

        public NsxtDnsAnswer.Builder setAuthoritativeAnswers​(java.util.List<NsxtDnsQueryAnswer> authoritativeAnswers)
        Authoritative answers
        Parameters:
        authoritativeAnswers - New value for the property.
      • setDnsServer

        public NsxtDnsAnswer.Builder setDnsServer​(java.lang.String dnsServer)
        Dns server ip address and port, format is \"ip address#port\".
        Parameters:
        dnsServer - New value for the property.
      • setEdgeNodeId

        public NsxtDnsAnswer.Builder setEdgeNodeId​(java.lang.String edgeNodeId)
        ID of the edge node that performed the query.
        Parameters:
        edgeNodeId - New value for the property.
      • setNonAuthoritativeAnswers

        public NsxtDnsAnswer.Builder setNonAuthoritativeAnswers​(java.util.List<NsxtDnsQueryAnswer> nonAuthoritativeAnswers)
        Non authoritative answers
        Parameters:
        nonAuthoritativeAnswers - New value for the property.
      • setRawAnswer

        public NsxtDnsAnswer.Builder setRawAnswer​(java.lang.String rawAnswer)
        It can be NXDOMAIN or error message which is not consisted of authoritative_answer or non_authoritative_answer.
        Parameters:
        rawAnswer - New value for the property.
      • setEnforcementPointPath

        public NsxtDnsAnswer.Builder setEnforcementPointPath​(java.lang.String enforcementPointPath)
        Policy path referencing the enforcement point from where the DNS forwarder nslookup answer is fetched. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        enforcementPointPath - New value for the property.