Class NatGatewayPropertiesFormat
java.lang.Object
com.azure.resourcemanager.network.fluent.models.NatGatewayPropertiesFormat
- All Implemented Interfaces:
com.azure.json.JsonSerializable<NatGatewayPropertiesFormat>
public final class NatGatewayPropertiesFormat
extends Object
implements com.azure.json.JsonSerializable<NatGatewayPropertiesFormat>
Nat Gateway properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of NatGatewayPropertiesFormat class. -
Method Summary
Modifier and TypeMethodDescriptionstatic NatGatewayPropertiesFormatfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NatGatewayPropertiesFormat from the JsonReader.Get the idleTimeoutInMinutes property: The idle timeout of the nat gateway.Get the provisioningState property: The provisioning state of the NAT gateway resource.List<com.azure.core.management.SubResource> Get the publicIpAddresses property: An array of public ip addresses associated with the nat gateway resource.List<com.azure.core.management.SubResource> Get the publicIpPrefixes property: An array of public ip prefixes associated with the nat gateway resource.Get the resourceGuid property: The resource GUID property of the NAT gateway resource.List<com.azure.core.management.SubResource> subnets()Get the subnets property: An array of references to the subnets using this nat gateway resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withIdleTimeoutInMinutes(Integer idleTimeoutInMinutes) Set the idleTimeoutInMinutes property: The idle timeout of the nat gateway.withPublicIpAddresses(List<com.azure.core.management.SubResource> publicIpAddresses) Set the publicIpAddresses property: An array of public ip addresses associated with the nat gateway resource.withPublicIpPrefixes(List<com.azure.core.management.SubResource> publicIpPrefixes) Set the publicIpPrefixes property: An array of public ip prefixes associated with the nat gateway resource.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
-
NatGatewayPropertiesFormat
public NatGatewayPropertiesFormat()Creates an instance of NatGatewayPropertiesFormat class.
-
-
Method Details
-
idleTimeoutInMinutes
Get the idleTimeoutInMinutes property: The idle timeout of the nat gateway.- Returns:
- the idleTimeoutInMinutes value.
-
withIdleTimeoutInMinutes
Set the idleTimeoutInMinutes property: The idle timeout of the nat gateway.- Parameters:
idleTimeoutInMinutes- the idleTimeoutInMinutes value to set.- Returns:
- the NatGatewayPropertiesFormat object itself.
-
publicIpAddresses
Get the publicIpAddresses property: An array of public ip addresses associated with the nat gateway resource.- Returns:
- the publicIpAddresses value.
-
withPublicIpAddresses
public NatGatewayPropertiesFormat withPublicIpAddresses(List<com.azure.core.management.SubResource> publicIpAddresses) Set the publicIpAddresses property: An array of public ip addresses associated with the nat gateway resource.- Parameters:
publicIpAddresses- the publicIpAddresses value to set.- Returns:
- the NatGatewayPropertiesFormat object itself.
-
publicIpPrefixes
Get the publicIpPrefixes property: An array of public ip prefixes associated with the nat gateway resource.- Returns:
- the publicIpPrefixes value.
-
withPublicIpPrefixes
public NatGatewayPropertiesFormat withPublicIpPrefixes(List<com.azure.core.management.SubResource> publicIpPrefixes) Set the publicIpPrefixes property: An array of public ip prefixes associated with the nat gateway resource.- Parameters:
publicIpPrefixes- the publicIpPrefixes value to set.- Returns:
- the NatGatewayPropertiesFormat object itself.
-
subnets
Get the subnets property: An array of references to the subnets using this nat gateway resource.- Returns:
- the subnets value.
-
resourceGuid
Get the resourceGuid property: The resource GUID property of the NAT gateway resource.- Returns:
- the resourceGuid value.
-
provisioningState
Get the provisioningState property: The provisioning state of the NAT gateway resource.- Returns:
- the provisioningState value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<NatGatewayPropertiesFormat>- Throws:
IOException
-
fromJson
public static NatGatewayPropertiesFormat fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of NatGatewayPropertiesFormat from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of NatGatewayPropertiesFormat 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 NatGatewayPropertiesFormat.
-