Class LoadBalancerFrontendIpConfigurationProperties
java.lang.Object
com.azure.resourcemanager.compute.models.LoadBalancerFrontendIpConfigurationProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<LoadBalancerFrontendIpConfigurationProperties>
public final class LoadBalancerFrontendIpConfigurationProperties
extends Object
implements com.azure.json.JsonSerializable<LoadBalancerFrontendIpConfigurationProperties>
Describes a cloud service IP Configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of LoadBalancerFrontendIpConfigurationProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of LoadBalancerFrontendIpConfigurationProperties from the JsonReader.Get the privateIpAddress property: The virtual network private IP address of the IP configuration.com.azure.core.management.SubResourceGet the publicIpAddress property: The reference to the public ip address resource.com.azure.core.management.SubResourcesubnet()Get the subnet property: The reference to the virtual network subnet resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withPrivateIpAddress(String privateIpAddress) Set the privateIpAddress property: The virtual network private IP address of the IP configuration.withPublicIpAddress(com.azure.core.management.SubResource publicIpAddress) Set the publicIpAddress property: The reference to the public ip address resource.withSubnet(com.azure.core.management.SubResource subnet) Set the subnet property: The reference to the virtual network subnet resource.Methods inherited from class 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
-
LoadBalancerFrontendIpConfigurationProperties
public LoadBalancerFrontendIpConfigurationProperties()Creates an instance of LoadBalancerFrontendIpConfigurationProperties class.
-
-
Method Details
-
publicIpAddress
public com.azure.core.management.SubResource publicIpAddress()Get the publicIpAddress property: The reference to the public ip address resource.- Returns:
- the publicIpAddress value.
-
withPublicIpAddress
public LoadBalancerFrontendIpConfigurationProperties withPublicIpAddress(com.azure.core.management.SubResource publicIpAddress) Set the publicIpAddress property: The reference to the public ip address resource.- Parameters:
publicIpAddress- the publicIpAddress value to set.- Returns:
- the LoadBalancerFrontendIpConfigurationProperties object itself.
-
subnet
public com.azure.core.management.SubResource subnet()Get the subnet property: The reference to the virtual network subnet resource.- Returns:
- the subnet value.
-
withSubnet
public LoadBalancerFrontendIpConfigurationProperties withSubnet(com.azure.core.management.SubResource subnet) Set the subnet property: The reference to the virtual network subnet resource.- Parameters:
subnet- the subnet value to set.- Returns:
- the LoadBalancerFrontendIpConfigurationProperties object itself.
-
privateIpAddress
Get the privateIpAddress property: The virtual network private IP address of the IP configuration.- Returns:
- the privateIpAddress value.
-
withPrivateIpAddress
Set the privateIpAddress property: The virtual network private IP address of the IP configuration.- Parameters:
privateIpAddress- the privateIpAddress value to set.- Returns:
- the LoadBalancerFrontendIpConfigurationProperties 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<LoadBalancerFrontendIpConfigurationProperties>- Throws:
IOException
-
fromJson
public static LoadBalancerFrontendIpConfigurationProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of LoadBalancerFrontendIpConfigurationProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of LoadBalancerFrontendIpConfigurationProperties 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 LoadBalancerFrontendIpConfigurationProperties.
-