NsRecord Class

  • java.lang.Object
    • com.azure.resourcemanager.dns.models.NsRecord

Implements

public final class NsRecord
implements JsonSerializable<NsRecord>

An NS record.

Constructor Summary

Constructor Description
NsRecord()

Creates an instance of NsRecord class.

Method Summary

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

Reads an instance of NsRecord from the JsonReader.

String nsdname()

Get the nsdname property: The name server name for this NS record.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NsRecord withNsdname(String nsdname)

Set the nsdname property: The name server name for this NS record.

Methods inherited from java.lang.Object

Constructor Details

NsRecord

public NsRecord()

Creates an instance of NsRecord class.

Method Details

fromJson

public static NsRecord fromJson(JsonReader jsonReader)

Reads an instance of NsRecord from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of NsRecord 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 NsRecord.

nsdname

public String nsdname()

Get the nsdname property: The name server name for this NS record.

Returns:

the nsdname value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withNsdname

public NsRecord withNsdname(String nsdname)

Set the nsdname property: The name server name for this NS record.

Parameters:

nsdname - the nsdname value to set.

Returns:

the NsRecord object itself.

Applies to