Package com.vmware.nsx_policy.model
Class NsxtDnsAnswer.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.NsxtDnsAnswer.Builder
-
- Enclosing class:
- NsxtDnsAnswer
public static final class NsxtDnsAnswer.Builder extends java.lang.Object
Builder class forNsxtDnsAnswer
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofNsxtDnsAnswer
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NsxtDnsAnswer
build()
NsxtDnsAnswer.Builder
setAuthoritativeAnswers(java.util.List<NsxtDnsQueryAnswer> authoritativeAnswers)
Authoritative answersNsxtDnsAnswer.Builder
setDnsServer(java.lang.String dnsServer)
Dns server ip address and port, format is \"ip address#port\".NsxtDnsAnswer.Builder
setEdgeNodeId(java.lang.String edgeNodeId)
ID of the edge node that performed the query.NsxtDnsAnswer.Builder
setEnforcementPointPath(java.lang.String enforcementPointPath)
Policy path referencing the enforcement point from where the DNS forwarder nslookup answer is fetched.NsxtDnsAnswer.Builder
setNonAuthoritativeAnswers(java.util.List<NsxtDnsQueryAnswer> nonAuthoritativeAnswers)
Non authoritative answersNsxtDnsAnswer.Builder
setRawAnswer(java.lang.String rawAnswer)
It can be NXDOMAIN or error message which is not consisted of authoritative_answer or non_authoritative_answer.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofNsxtDnsAnswer
.
-
-
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.
-
build
public NsxtDnsAnswer build()
-
-