PublicIpPrefixInner Class

public final class PublicIpPrefixInner
extends Resource

Public IP prefix resource.

Constructor Summary

Constructor Description
PublicIpPrefixInner()

Creates an instance of PublicIpPrefixInner class.

Method Summary

Modifier and Type Method and Description
SubResource customIpPrefix()

Get the customIpPrefix property: The customIpPrefix that this prefix is associated with.

String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

ExtendedLocation extendedLocation()

Get the extendedLocation property: The extended location of the public ip address.

static PublicIpPrefixInner fromJson(JsonReader jsonReader)

Reads an instance of PublicIpPrefixInner from the JsonReader.

String id()

Get the id property: Resource ID.

String ipPrefix()

Get the ipPrefix property: The allocated Prefix.

List<IpTag> ipTags()

Get the ipTags property: The list of tags associated with the public IP prefix.

SubResource loadBalancerFrontendIpConfiguration()

Get the loadBalancerFrontendIpConfiguration property: The reference to load balancer frontend IP configuration associated with the public IP prefix.

String name()

Get the name property: The name of the resource.

NatGatewayInner natGateway()

Get the natGateway property: NatGateway of Public IP Prefix.

Integer prefixLength()

Get the prefixLength property: The Length of the Public IP Prefix.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the public IP prefix resource.

IpVersion publicIpAddressVersion()

Get the publicIpAddressVersion property: The public IP address version.

List<ReferencedPublicIpAddress> publicIpAddresses()

Get the publicIpAddresses property: The list of all referenced PublicIPAddresses.

String resourceGuid()

Get the resourceGuid property: The resource GUID property of the public IP prefix resource.

PublicIpPrefixSku sku()

Get the sku property: The public IP prefix SKU.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

PublicIpPrefixInner withCustomIpPrefix(SubResource customIpPrefix)

Set the customIpPrefix property: The customIpPrefix that this prefix is associated with.

PublicIpPrefixInner withExtendedLocation(ExtendedLocation extendedLocation)

Set the extendedLocation property: The extended location of the public ip address.

PublicIpPrefixInner withId(String id)

Set the id property: Resource ID.

PublicIpPrefixInner withIpTags(List<IpTag> ipTags)

Set the ipTags property: The list of tags associated with the public IP prefix.

PublicIpPrefixInner withLocation(String location)
PublicIpPrefixInner withNatGateway(NatGatewayInner natGateway)

Set the natGateway property: NatGateway of Public IP Prefix.

PublicIpPrefixInner withPrefixLength(Integer prefixLength)

Set the prefixLength property: The Length of the Public IP Prefix.

PublicIpPrefixInner withPublicIpAddressVersion(IpVersion publicIpAddressVersion)

Set the publicIpAddressVersion property: The public IP address version.

PublicIpPrefixInner withSku(PublicIpPrefixSku sku)

Set the sku property: The public IP prefix SKU.

PublicIpPrefixInner withTags(Map<String,String> tags)
PublicIpPrefixInner withZones(List<String> zones)

Set the zones property: A list of availability zones denoting the IP allocated for the resource needs to come from.

List<String> zones()

Get the zones property: A list of availability zones denoting the IP allocated for the resource needs to come from.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

PublicIpPrefixInner

public PublicIpPrefixInner()

Creates an instance of PublicIpPrefixInner class.

Method Details

customIpPrefix

public SubResource customIpPrefix()

Get the customIpPrefix property: The customIpPrefix that this prefix is associated with.

Returns:

the customIpPrefix value.

etag

public String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

Returns:

the etag value.

extendedLocation

public ExtendedLocation extendedLocation()

Get the extendedLocation property: The extended location of the public ip address.

Returns:

the extendedLocation value.

fromJson

public static PublicIpPrefixInner fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Resource ID.

Overrides:

PublicIpPrefixInner.id()

Returns:

the id value.

ipPrefix

public String ipPrefix()

Get the ipPrefix property: The allocated Prefix.

Returns:

the ipPrefix value.

ipTags

public List ipTags()

Get the ipTags property: The list of tags associated with the public IP prefix.

Returns:

the ipTags value.

loadBalancerFrontendIpConfiguration

public SubResource loadBalancerFrontendIpConfiguration()

Get the loadBalancerFrontendIpConfiguration property: The reference to load balancer frontend IP configuration associated with the public IP prefix.

Returns:

the loadBalancerFrontendIpConfiguration value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

PublicIpPrefixInner.name()

Returns:

the name value.

natGateway

public NatGatewayInner natGateway()

Get the natGateway property: NatGateway of Public IP Prefix.

Returns:

the natGateway value.

prefixLength

public Integer prefixLength()

Get the prefixLength property: The Length of the Public IP Prefix.

Returns:

the prefixLength value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the public IP prefix resource.

Returns:

the provisioningState value.

publicIpAddressVersion

public IpVersion publicIpAddressVersion()

Get the publicIpAddressVersion property: The public IP address version.

Returns:

the publicIpAddressVersion value.

publicIpAddresses

public List publicIpAddresses()

Get the publicIpAddresses property: The list of all referenced PublicIPAddresses.

Returns:

the publicIpAddresses value.

resourceGuid

public String resourceGuid()

Get the resourceGuid property: The resource GUID property of the public IP prefix resource.

Returns:

the resourceGuid value.

sku

public PublicIpPrefixSku sku()

Get the sku property: The public IP prefix SKU.

Returns:

the sku value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

PublicIpPrefixInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

PublicIpPrefixInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withCustomIpPrefix

public PublicIpPrefixInner withCustomIpPrefix(SubResource customIpPrefix)

Set the customIpPrefix property: The customIpPrefix that this prefix is associated with.

Parameters:

customIpPrefix - the customIpPrefix value to set.

Returns:

the PublicIpPrefixInner object itself.

withExtendedLocation

public PublicIpPrefixInner withExtendedLocation(ExtendedLocation extendedLocation)

Set the extendedLocation property: The extended location of the public ip address.

Parameters:

extendedLocation - the extendedLocation value to set.

Returns:

the PublicIpPrefixInner object itself.

withId

public PublicIpPrefixInner withId(String id)

Set the id property: Resource ID.

Parameters:

id - the id value to set.

Returns:

the PublicIpPrefixInner object itself.

withIpTags

public PublicIpPrefixInner withIpTags(List ipTags)

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.

withLocation

public PublicIpPrefixInner withLocation(String location)

Overrides:

PublicIpPrefixInner.withLocation(String location)

Parameters:

location

withNatGateway

public PublicIpPrefixInner withNatGateway(NatGatewayInner natGateway)

Set the natGateway property: NatGateway of Public IP Prefix.

Parameters:

natGateway - the natGateway value to set.

Returns:

the PublicIpPrefixInner object itself.

withPrefixLength

public PublicIpPrefixInner withPrefixLength(Integer prefixLength)

Set the prefixLength property: The Length of the Public IP Prefix.

Parameters:

prefixLength - the prefixLength value to set.

Returns:

the PublicIpPrefixInner object itself.

withPublicIpAddressVersion

public PublicIpPrefixInner withPublicIpAddressVersion(IpVersion publicIpAddressVersion)

Set the publicIpAddressVersion property: The public IP address version.

Parameters:

publicIpAddressVersion - the publicIpAddressVersion value to set.

Returns:

the PublicIpPrefixInner object itself.

withSku

public PublicIpPrefixInner withSku(PublicIpPrefixSku sku)

Set the sku property: The public IP prefix SKU.

Parameters:

sku - the sku value to set.

Returns:

the PublicIpPrefixInner object itself.

withTags

public PublicIpPrefixInner withTags(Map tags)

Overrides:

PublicIpPrefixInner.withTags(Map<String,String> tags)

Parameters:

tags

withZones

public PublicIpPrefixInner withZones(List zones)

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.

zones

public List 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.

Applies to