SrvRecord Class

  • java.lang.Object
    • com.azure.resourcemanager.privatedns.models.SrvRecord

Implements

public final class SrvRecord
implements JsonSerializable<SrvRecord>

An SRV record.

Constructor Summary

Constructor Description
SrvRecord()

Creates an instance of SrvRecord class.

Method Summary

Modifier and Type Method and Description
static SrvRecord fromJson(JsonReader jsonReader)

Reads an instance of SrvRecord from the JsonReader.

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.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Integer weight()

Get the weight property: The weight value for this SRV record.

SrvRecord withPort(Integer port)

Set the port property: The port value for this SRV record.

SrvRecord withPriority(Integer priority)

Set the priority property: The priority value for this SRV record.

SrvRecord withTarget(String target)

Set the target property: The target domain name for this SRV record.

SrvRecord 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:

jsonReader - The JsonReader being read.

Returns:

An instance of SrvRecord if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the SrvRecord.

port

public Integer port()

Get the port property: The port value for this SRV record.

Returns:

the port value.

priority

public Integer priority()

Get the priority property: The priority value for this SRV record.

Returns:

the priority value.

target

public String target()

Get the target property: The target domain name for this SRV record.

Returns:

the target value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

weight

public Integer weight()

Get the weight property: The weight value for this SRV record.

Returns:

the weight 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.

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.

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.

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.

Applies to