Partager via


ARecord Class

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

Implements

public final class ARecord
implements JsonSerializable<ARecord>

An A record.

Constructor Summary

Constructor Description
ARecord()

Creates an instance of ARecord class.

Method Summary

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

Reads an instance of ARecord from the JsonReader.

String ipv4Address()

Get the ipv4Address property: The IPv4 address of this A record.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ARecord withIpv4Address(String ipv4Address)

Set the ipv4Address property: The IPv4 address of this A record.

Methods inherited from java.lang.Object

Constructor Details

ARecord

public ARecord()

Creates an instance of ARecord class.

Method Details

fromJson

public static ARecord fromJson(JsonReader jsonReader)

Reads an instance of ARecord from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

ipv4Address

public String ipv4Address()

Get the ipv4Address property: The IPv4 address of this A record.

Returns:

the ipv4Address value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIpv4Address

public ARecord withIpv4Address(String ipv4Address)

Set the ipv4Address property: The IPv4 address of this A record.

Parameters:

ipv4Address - the ipv4Address value to set.

Returns:

the ARecord object itself.

Applies to