AddressPrefixItem Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.AddressPrefixItem

Implements

public final class AddressPrefixItem
implements JsonSerializable<AddressPrefixItem>

Address prefix item.

Constructor Summary

Constructor Description
AddressPrefixItem()

Creates an instance of AddressPrefixItem class.

Method Summary

Modifier and Type Method and Description
String addressPrefix()

Get the addressPrefix property: Address prefix.

AddressPrefixType addressPrefixType()

Get the addressPrefixType property: Address prefix type.

static AddressPrefixItem fromJson(JsonReader jsonReader)

Reads an instance of AddressPrefixItem from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AddressPrefixItem withAddressPrefix(String addressPrefix)

Set the addressPrefix property: Address prefix.

AddressPrefixItem withAddressPrefixType(AddressPrefixType addressPrefixType)

Set the addressPrefixType property: Address prefix type.

Methods inherited from java.lang.Object

Constructor Details

AddressPrefixItem

public AddressPrefixItem()

Creates an instance of AddressPrefixItem class.

Method Details

addressPrefix

public String addressPrefix()

Get the addressPrefix property: Address prefix.

Returns:

the addressPrefix value.

addressPrefixType

public AddressPrefixType addressPrefixType()

Get the addressPrefixType property: Address prefix type.

Returns:

the addressPrefixType value.

fromJson

public static AddressPrefixItem fromJson(JsonReader jsonReader)

Reads an instance of AddressPrefixItem from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAddressPrefix

public AddressPrefixItem withAddressPrefix(String addressPrefix)

Set the addressPrefix property: Address prefix.

Parameters:

addressPrefix - the addressPrefix value to set.

Returns:

the AddressPrefixItem object itself.

withAddressPrefixType

public AddressPrefixItem withAddressPrefixType(AddressPrefixType addressPrefixType)

Set the addressPrefixType property: Address prefix type.

Parameters:

addressPrefixType - the addressPrefixType value to set.

Returns:

the AddressPrefixItem object itself.

Applies to