SrvRecord Class
- java.
lang. Object - com.
azure. resourcemanager. dns. models. SrvRecord
- com.
public final class SrvRecord
An SRV record.
Constructor Summary
Constructor | Description |
---|---|
SrvRecord() |
Creates an instance of Srv |
Method Summary
Modifier and Type | Method and Description |
---|---|
Integer |
port()
Get the port property: The port value for this SRV record. |
Integer |
priority()
Get the priority property: The priority value for this SRV record. |
String |
target()
Get the target property: The target domain name for this SRV record. |
void |
validate()
Validates the instance. |
Integer |
weight()
Get the weight property: The weight value for this SRV record. |
Srv |
withPort(Integer port)
Set the port property: The port value for this SRV record. |
Srv |
withPriority(Integer priority)
Set the priority property: The priority value for this SRV record. |
Srv |
withTarget(String target)
Set the target property: The target domain name for this SRV record. |
Srv |
withWeight(Integer weight)
Set the weight property: The weight value for this SRV record. |
Methods inherited from java.lang.Object
Constructor Details
SrvRecord
public SrvRecord()
Creates an instance of SrvRecord class.
Method Details
port
public Integer port()
Get the port property: The port value for this SRV record.
Returns:
priority
public Integer priority()
Get the priority property: The priority value for this SRV record.
Returns:
target
public String target()
Get the target property: The target domain name for this SRV record.
Returns:
validate
public void validate()
Validates the instance.
weight
public Integer weight()
Get the weight property: The weight value for this SRV record.
Returns:
withPort
public SrvRecord withPort(Integer port)
Set the port property: The port value for this SRV record.
Parameters:
Returns:
withPriority
public SrvRecord withPriority(Integer priority)
Set the priority property: The priority value for this SRV record.
Parameters:
Returns:
withTarget
public SrvRecord withTarget(String target)
Set the target property: The target domain name for this SRV record.
Parameters:
Returns:
withWeight
public SrvRecord withWeight(Integer weight)
Set the weight property: The weight value for this SRV record.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for