Class SrvRecord
- java.lang.Object
-
- com.azure.resourcemanager.privatedns.models.SrvRecord
-
public final class SrvRecord extends Object
An SRV record.
-
-
Constructor Summary
Constructors Constructor Description SrvRecord()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integerport()Get the port property: The port value for this SRV record.Integerpriority()Get the priority property: The priority value for this SRV record.Stringtarget()Get the target property: The target domain name for this SRV record.voidvalidate()Validates the instance.Integerweight()Get the weight property: The weight value for this SRV record.SrvRecordwithPort(Integer port)Set the port property: The port value for this SRV record.SrvRecordwithPriority(Integer priority)Set the priority property: The priority value for this SRV record.SrvRecordwithTarget(String target)Set the target property: The target domain name for this SRV record.SrvRecordwithWeight(Integer weight)Set the weight property: The weight value for this SRV record.
-
-
-
Method Detail
-
priority
public Integer priority()
Get the priority property: The priority value for this SRV record.- Returns:
- the priority value.
-
withPriority
public SrvRecord withPriority(Integer priority)
Set the priority property: The priority value for this SRV record.- Parameters:
priority- the priority value to set.- Returns:
- the SrvRecord object itself.
-
weight
public Integer weight()
Get the weight property: The weight value for this SRV record.- Returns:
- the weight value.
-
withWeight
public SrvRecord withWeight(Integer weight)
Set the weight property: The weight value for this SRV record.- Parameters:
weight- the weight value to set.- Returns:
- the SrvRecord object itself.
-
port
public Integer port()
Get the port property: The port value for this SRV record.- Returns:
- the port value.
-
withPort
public SrvRecord withPort(Integer port)
Set the port property: The port value for this SRV record.- Parameters:
port- the port value to set.- Returns:
- the SrvRecord object itself.
-
target
public String target()
Get the target property: The target domain name for this SRV record.- Returns:
- the target value.
-
withTarget
public SrvRecord withTarget(String target)
Set the target property: The target domain name for this SRV record.- Parameters:
target- the target value to set.- Returns:
- the SrvRecord object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-