Class BastionHostIpConfigurationPropertiesFormat
java.lang.Object
com.azure.resourcemanager.network.fluent.models.BastionHostIpConfigurationPropertiesFormat
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BastionHostIpConfigurationPropertiesFormat>
public final class BastionHostIpConfigurationPropertiesFormat
extends Object
implements com.azure.json.JsonSerializable<BastionHostIpConfigurationPropertiesFormat>
Properties of IP configuration of an Bastion Host.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of BastionHostIpConfigurationPropertiesFormat class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BastionHostIpConfigurationPropertiesFormat from the JsonReader.Get the privateIpAllocationMethod property: Private IP allocation method.Get the provisioningState property: The provisioning state of the bastion host IP configuration resource.com.azure.core.management.SubResourceGet the publicIpAddress property: Reference of the PublicIP resource.com.azure.core.management.SubResourcesubnet()Get the subnet property: Reference of the subnet resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withPrivateIpAllocationMethod(IpAllocationMethod privateIpAllocationMethod) Set the privateIpAllocationMethod property: Private IP allocation method.withPublicIpAddress(com.azure.core.management.SubResource publicIpAddress) Set the publicIpAddress property: Reference of the PublicIP resource.withSubnet(com.azure.core.management.SubResource subnet) Set the subnet property: Reference of the subnet 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
-
BastionHostIpConfigurationPropertiesFormat
public BastionHostIpConfigurationPropertiesFormat()Creates an instance of BastionHostIpConfigurationPropertiesFormat class.
-
-
Method Details
-
subnet
public com.azure.core.management.SubResource subnet()Get the subnet property: Reference of the subnet resource.- Returns:
- the subnet value.
-
withSubnet
public BastionHostIpConfigurationPropertiesFormat withSubnet(com.azure.core.management.SubResource subnet) Set the subnet property: Reference of the subnet resource.- Parameters:
subnet- the subnet value to set.- Returns:
- the BastionHostIpConfigurationPropertiesFormat object itself.
-
publicIpAddress
public com.azure.core.management.SubResource publicIpAddress()Get the publicIpAddress property: Reference of the PublicIP resource. Null for private only bastion.- Returns:
- the publicIpAddress value.
-
withPublicIpAddress
public BastionHostIpConfigurationPropertiesFormat withPublicIpAddress(com.azure.core.management.SubResource publicIpAddress) Set the publicIpAddress property: Reference of the PublicIP resource. Null for private only bastion.- Parameters:
publicIpAddress- the publicIpAddress value to set.- Returns:
- the BastionHostIpConfigurationPropertiesFormat object itself.
-
provisioningState
Get the provisioningState property: The provisioning state of the bastion host IP configuration resource.- Returns:
- the provisioningState value.
-
privateIpAllocationMethod
Get the privateIpAllocationMethod property: Private IP allocation method.- Returns:
- the privateIpAllocationMethod value.
-
withPrivateIpAllocationMethod
public BastionHostIpConfigurationPropertiesFormat withPrivateIpAllocationMethod(IpAllocationMethod privateIpAllocationMethod) Set the privateIpAllocationMethod property: Private IP allocation method.- Parameters:
privateIpAllocationMethod- the privateIpAllocationMethod value to set.- Returns:
- the BastionHostIpConfigurationPropertiesFormat 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<BastionHostIpConfigurationPropertiesFormat>- Throws:
IOException
-
fromJson
public static BastionHostIpConfigurationPropertiesFormat fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BastionHostIpConfigurationPropertiesFormat from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BastionHostIpConfigurationPropertiesFormat if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the BastionHostIpConfigurationPropertiesFormat.
-