EndpointPropertiesSubnetsItem Class

  • java.lang.Object
    • com.azure.resourcemanager.trafficmanager.models.EndpointPropertiesSubnetsItem

Implements

public final class EndpointPropertiesSubnetsItem
implements JsonSerializable<EndpointPropertiesSubnetsItem>

Subnet first address, scope, and/or last address.

Constructor Summary

Constructor Description
EndpointPropertiesSubnetsItem()

Creates an instance of EndpointPropertiesSubnetsItem class.

Method Summary

Modifier and Type Method and Description
String first()

Get the first property: First address in the subnet.

static EndpointPropertiesSubnetsItem fromJson(JsonReader jsonReader)

Reads an instance of EndpointPropertiesSubnetsItem from the JsonReader.

String last()

Get the last property: Last address in the subnet.

Integer scope()

Get the scope property: Block size (number of leading bits in the subnet mask).

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

EndpointPropertiesSubnetsItem withFirst(String first)

Set the first property: First address in the subnet.

EndpointPropertiesSubnetsItem withLast(String last)

Set the last property: Last address in the subnet.

EndpointPropertiesSubnetsItem withScope(Integer scope)

Set the scope property: Block size (number of leading bits in the subnet mask).

Methods inherited from java.lang.Object

Constructor Details

EndpointPropertiesSubnetsItem

public EndpointPropertiesSubnetsItem()

Creates an instance of EndpointPropertiesSubnetsItem class.

Method Details

first

public String first()

Get the first property: First address in the subnet.

Returns:

the first value.

fromJson

public static EndpointPropertiesSubnetsItem fromJson(JsonReader jsonReader)

Reads an instance of EndpointPropertiesSubnetsItem from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

last

public String last()

Get the last property: Last address in the subnet.

Returns:

the last value.

scope

public Integer scope()

Get the scope property: Block size (number of leading bits in the subnet mask).

Returns:

the scope value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withFirst

public EndpointPropertiesSubnetsItem withFirst(String first)

Set the first property: First address in the subnet.

Parameters:

first - the first value to set.

Returns:

the EndpointPropertiesSubnetsItem object itself.

withLast

public EndpointPropertiesSubnetsItem withLast(String last)

Set the last property: Last address in the subnet.

Parameters:

last - the last value to set.

Returns:

the EndpointPropertiesSubnetsItem object itself.

withScope

public EndpointPropertiesSubnetsItem withScope(Integer scope)

Set the scope property: Block size (number of leading bits in the subnet mask).

Parameters:

scope - the scope value to set.

Returns:

the EndpointPropertiesSubnetsItem object itself.

Applies to