EndpointPropertiesSubnetsItem Class
- java.
lang. Object - com.
azure. resourcemanager. trafficmanager. models. EndpointPropertiesSubnetsItem
- com.
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 Endpoint |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
first()
Get the first property: First address in the subnet. |
static
Endpoint |
fromJson(JsonReader jsonReader)
Reads an instance of Endpoint |
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). |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Endpoint |
withFirst(String first)
Set the first property: First address in the subnet. |
Endpoint |
withLast(String last)
Set the last property: Last address in the subnet. |
Endpoint |
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:
fromJson
public static EndpointPropertiesSubnetsItem fromJson(JsonReader jsonReader)
Reads an instance of EndpointPropertiesSubnetsItem from the JsonReader.
Parameters:
Returns:
Throws:
last
public String last()
Get the last property: Last address in the subnet.
Returns:
scope
public Integer scope()
Get the scope property: Block size (number of leading bits in the subnet mask).
Returns:
toJson
validate
public void validate()
Validates the instance.
withFirst
public EndpointPropertiesSubnetsItem withFirst(String first)
Set the first property: First address in the subnet.
Parameters:
Returns:
withLast
public EndpointPropertiesSubnetsItem withLast(String last)
Set the last property: Last address in the subnet.
Parameters:
Returns:
withScope
public EndpointPropertiesSubnetsItem withScope(Integer scope)
Set the scope property: Block size (number of leading bits in the subnet mask).
Parameters:
Returns:
Applies to
Azure SDK for Java