SrvRecord Class
- java.
lang. Object - com.
azure. resourcemanager. dns. models. SrvRecord
- com.
Implements
public final class SrvRecord
implements JsonSerializable<SrvRecord>
An SRV record.
Constructor Summary
Constructor | Description |
---|---|
SrvRecord() |
Creates an instance of Srv |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Srv |
fromJson(JsonReader jsonReader)
Reads an instance of Srv |
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. |
Json |
toJson(JsonWriter jsonWriter) |
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
fromJson
public static SrvRecord fromJson(JsonReader jsonReader)
Reads an instance of SrvRecord from the JsonReader.
Parameters:
Returns:
Throws:
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:
toJson
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