Class EndpointPropertiesSubnetsItem
java.lang.Object
com.azure.resourcemanager.trafficmanager.models.EndpointPropertiesSubnetsItem
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EndpointPropertiesSubnetsItem>
public final class EndpointPropertiesSubnetsItem
extends Object
implements com.azure.json.JsonSerializable<EndpointPropertiesSubnetsItem>
Subnet first address, scope, and/or last address.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of EndpointPropertiesSubnetsItem class. -
Method Summary
Modifier and TypeMethodDescriptionfirst()Get the first property: First address in the subnet.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of EndpointPropertiesSubnetsItem from the JsonReader.last()Get the last property: Last address in the subnet.scope()Get the scope property: Block size (number of leading bits in the subnet mask).com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the first property: First address in the subnet.Set the last property: Last address in the subnet.Set the scope property: Block size (number of leading bits in the subnet mask).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
EndpointPropertiesSubnetsItem
public EndpointPropertiesSubnetsItem()Creates an instance of EndpointPropertiesSubnetsItem class.
-
-
Method Details
-
first
Get the first property: First address in the subnet.- Returns:
- the first value.
-
withFirst
Set the first property: First address in the subnet.- Parameters:
first- the first value to set.- Returns:
- the EndpointPropertiesSubnetsItem object itself.
-
last
Get the last property: Last address in the subnet.- Returns:
- the last value.
-
withLast
Set the last property: Last address in the subnet.- Parameters:
last- the last value to set.- Returns:
- the EndpointPropertiesSubnetsItem object itself.
-
scope
Get the scope property: Block size (number of leading bits in the subnet mask).- Returns:
- the scope value.
-
withScope
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<EndpointPropertiesSubnetsItem>- Throws:
IOException
-
fromJson
public static EndpointPropertiesSubnetsItem fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-