Class PublicIpPrefixPropertiesFormatInner
java.lang.Object
com.azure.resourcemanager.network.fluent.models.PublicIpPrefixPropertiesFormatInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PublicIpPrefixPropertiesFormatInner>
public final class PublicIpPrefixPropertiesFormatInner
extends Object
implements com.azure.json.JsonSerializable<PublicIpPrefixPropertiesFormatInner>
Public IP prefix properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of PublicIpPrefixPropertiesFormatInner class. -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.management.SubResourceGet the customIpPrefix property: The customIpPrefix that this prefix is associated with.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PublicIpPrefixPropertiesFormatInner from the JsonReader.ipPrefix()Get the ipPrefix property: The allocated Prefix.ipTags()Get the ipTags property: The list of tags associated with the public IP prefix.com.azure.core.management.SubResourceGet the loadBalancerFrontendIpConfiguration property: The reference to load balancer frontend IP configuration associated with the public IP prefix.Get the natGateway property: NatGateway of Public IP Prefix.Get the prefixLength property: The Length of the Public IP Prefix.Get the provisioningState property: The provisioning state of the public IP prefix resource.Get the publicIpAddresses property: The list of all referenced PublicIPAddresses.Get the publicIpAddressVersion property: The public IP address version.Get the resourceGuid property: The resource GUID property of the public IP prefix resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCustomIpPrefix(com.azure.core.management.SubResource customIpPrefix) Set the customIpPrefix property: The customIpPrefix that this prefix is associated with.withIpTags(List<IpTag> ipTags) Set the ipTags property: The list of tags associated with the public IP prefix.withNatGateway(NatGatewayInner natGateway) Set the natGateway property: NatGateway of Public IP Prefix.withPrefixLength(Integer prefixLength) Set the prefixLength property: The Length of the Public IP Prefix.withPublicIpAddressVersion(IpVersion publicIpAddressVersion) Set the publicIpAddressVersion property: The public IP address version.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
-
PublicIpPrefixPropertiesFormatInner
public PublicIpPrefixPropertiesFormatInner()Creates an instance of PublicIpPrefixPropertiesFormatInner class.
-
-
Method Details
-
publicIpAddressVersion
Get the publicIpAddressVersion property: The public IP address version.- Returns:
- the publicIpAddressVersion value.
-
withPublicIpAddressVersion
public PublicIpPrefixPropertiesFormatInner withPublicIpAddressVersion(IpVersion publicIpAddressVersion) Set the publicIpAddressVersion property: The public IP address version.- Parameters:
publicIpAddressVersion- the publicIpAddressVersion value to set.- Returns:
- the PublicIpPrefixPropertiesFormatInner object itself.
-
ipTags
Get the ipTags property: The list of tags associated with the public IP prefix.- Returns:
- the ipTags value.
-
withIpTags
Set the ipTags property: The list of tags associated with the public IP prefix.- Parameters:
ipTags- the ipTags value to set.- Returns:
- the PublicIpPrefixPropertiesFormatInner object itself.
-
prefixLength
Get the prefixLength property: The Length of the Public IP Prefix.- Returns:
- the prefixLength value.
-
withPrefixLength
Set the prefixLength property: The Length of the Public IP Prefix.- Parameters:
prefixLength- the prefixLength value to set.- Returns:
- the PublicIpPrefixPropertiesFormatInner object itself.
-
ipPrefix
Get the ipPrefix property: The allocated Prefix.- Returns:
- the ipPrefix value.
-
publicIpAddresses
Get the publicIpAddresses property: The list of all referenced PublicIPAddresses.- Returns:
- the publicIpAddresses value.
-
loadBalancerFrontendIpConfiguration
public com.azure.core.management.SubResource loadBalancerFrontendIpConfiguration()Get the loadBalancerFrontendIpConfiguration property: The reference to load balancer frontend IP configuration associated with the public IP prefix.- Returns:
- the loadBalancerFrontendIpConfiguration value.
-
customIpPrefix
public com.azure.core.management.SubResource customIpPrefix()Get the customIpPrefix property: The customIpPrefix that this prefix is associated with.- Returns:
- the customIpPrefix value.
-
withCustomIpPrefix
public PublicIpPrefixPropertiesFormatInner withCustomIpPrefix(com.azure.core.management.SubResource customIpPrefix) Set the customIpPrefix property: The customIpPrefix that this prefix is associated with.- Parameters:
customIpPrefix- the customIpPrefix value to set.- Returns:
- the PublicIpPrefixPropertiesFormatInner object itself.
-
resourceGuid
Get the resourceGuid property: The resource GUID property of the public IP prefix resource.- Returns:
- the resourceGuid value.
-
provisioningState
Get the provisioningState property: The provisioning state of the public IP prefix resource.- Returns:
- the provisioningState value.
-
natGateway
Get the natGateway property: NatGateway of Public IP Prefix.- Returns:
- the natGateway value.
-
withNatGateway
Set the natGateway property: NatGateway of Public IP Prefix.- Parameters:
natGateway- the natGateway value to set.- Returns:
- the PublicIpPrefixPropertiesFormatInner 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<PublicIpPrefixPropertiesFormatInner>- Throws:
IOException
-
fromJson
public static PublicIpPrefixPropertiesFormatInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of PublicIpPrefixPropertiesFormatInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PublicIpPrefixPropertiesFormatInner 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 PublicIpPrefixPropertiesFormatInner.
-