Class PublicIpPrefixInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.network.fluent.models.PublicIpPrefixInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class PublicIpPrefixInner
extends com.azure.core.management.Resource
Public IP prefix resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.management.SubResourceGet the customIpPrefix property: The customIpPrefix that this prefix is associated with.etag()Get the etag property: A unique read-only string that changes whenever the resource is updated.Get the extendedLocation property: The extended location of the public ip address.static PublicIpPrefixInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PublicIpPrefixInner from the JsonReader.id()Get the id property: Resource ID.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.name()Get the name property: The name of the resource.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.sku()Get the sku property: The public IP prefix SKU.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.withCustomIpPrefix(com.azure.core.management.SubResource customIpPrefix) Set the customIpPrefix property: The customIpPrefix that this prefix is associated with.withExtendedLocation(ExtendedLocation extendedLocation) Set the extendedLocation property: The extended location of the public ip address.Set the id property: Resource ID.withIpTags(List<IpTag> ipTags) Set the ipTags property: The list of tags associated with the public IP prefix.withLocation(String location) 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.withSku(PublicIpPrefixSku sku) Set the sku property: The public IP prefix SKU.Set the zones property: A list of availability zones denoting the IP allocated for the resource needs to come from.zones()Get the zones property: A list of availability zones denoting the IP allocated for the resource needs to come from.Methods inherited from class com.azure.core.management.Resource
location, tagsMethods 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
-
PublicIpPrefixInner
public PublicIpPrefixInner()Creates an instance of PublicIpPrefixInner class.
-
-
Method Details
-
extendedLocation
Get the extendedLocation property: The extended location of the public ip address.- Returns:
- the extendedLocation value.
-
withExtendedLocation
Set the extendedLocation property: The extended location of the public ip address.- Parameters:
extendedLocation- the extendedLocation value to set.- Returns:
- the PublicIpPrefixInner object itself.
-
sku
Get the sku property: The public IP prefix SKU.- Returns:
- the sku value.
-
withSku
Set the sku property: The public IP prefix SKU.- Parameters:
sku- the sku value to set.- Returns:
- the PublicIpPrefixInner object itself.
-
etag
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
zones
Get the zones property: A list of availability zones denoting the IP allocated for the resource needs to come from.- Returns:
- the zones value.
-
withZones
Set the zones property: A list of availability zones denoting the IP allocated for the resource needs to come from.- Parameters:
zones- the zones value to set.- Returns:
- the PublicIpPrefixInner object itself.
-
id
Get the id property: Resource ID.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
withId
Set the id property: Resource ID.- Parameters:
id- the id value to set.- Returns:
- the PublicIpPrefixInner object itself.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
withLocation
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
publicIpAddressVersion
Get the publicIpAddressVersion property: The public IP address version.- Returns:
- the publicIpAddressVersion value.
-
withPublicIpAddressVersion
Set the publicIpAddressVersion property: The public IP address version.- Parameters:
publicIpAddressVersion- the publicIpAddressVersion value to set.- Returns:
- the PublicIpPrefixInner 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 PublicIpPrefixInner 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 PublicIpPrefixInner 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
Set the customIpPrefix property: The customIpPrefix that this prefix is associated with.- Parameters:
customIpPrefix- the customIpPrefix value to set.- Returns:
- the PublicIpPrefixInner 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 PublicIpPrefixInner 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<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.Resource- Throws:
IOException
-
fromJson
Reads an instance of PublicIpPrefixInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PublicIpPrefixInner 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 PublicIpPrefixInner.
-