IpAllocationInner Class

public final class IpAllocationInner
extends Resource

IpAllocation resource.

Constructor Summary

Constructor Description
IpAllocationInner()

Creates an instance of IpAllocationInner class.

Method Summary

Modifier and Type Method and Description
Map<String,String> allocationTags()

Get the allocationTags property: IpAllocation tags.

String etag()

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

static IpAllocationInner fromJson(JsonReader jsonReader)

Reads an instance of IpAllocationInner from the JsonReader.

String id()

Get the id property: Resource ID.

String ipamAllocationId()

Get the ipamAllocationId property: The IPAM allocation ID.

String name()

Get the name property: The name of the resource.

String prefix()

Get the prefix property: The address prefix for the IpAllocation.

Integer prefixLength()

Get the prefixLength property: The address prefix length for the IpAllocation.

IpVersion prefixType()

Get the prefixType property: The address prefix Type for the IpAllocation.

SubResource subnet()

Get the subnet property: The Subnet that using the prefix of this IpAllocation resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

IpAllocationType typePropertiesType()

Get the type property: The type for the IpAllocation.

void validate()

Validates the instance.

SubResource virtualNetwork()

Get the virtualNetwork property: The VirtualNetwork that using the prefix of this IpAllocation resource.

IpAllocationInner withAllocationTags(Map<String,String> allocationTags)

Set the allocationTags property: IpAllocation tags.

IpAllocationInner withId(String id)

Set the id property: Resource ID.

IpAllocationInner withIpamAllocationId(String ipamAllocationId)

Set the ipamAllocationId property: The IPAM allocation ID.

IpAllocationInner withLocation(String location)
IpAllocationInner withPrefix(String prefix)

Set the prefix property: The address prefix for the IpAllocation.

IpAllocationInner withPrefixLength(Integer prefixLength)

Set the prefixLength property: The address prefix length for the IpAllocation.

IpAllocationInner withPrefixType(IpVersion prefixType)

Set the prefixType property: The address prefix Type for the IpAllocation.

IpAllocationInner withTags(Map<String,String> tags)
IpAllocationInner withTypePropertiesType(IpAllocationType type)

Set the type property: The type for the IpAllocation.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

IpAllocationInner

public IpAllocationInner()

Creates an instance of IpAllocationInner class.

Method Details

allocationTags

public Map allocationTags()

Get the allocationTags property: IpAllocation tags.

Returns:

the allocationTags 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.

fromJson

public static IpAllocationInner fromJson(JsonReader jsonReader)

Reads an instance of IpAllocationInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of IpAllocationInner 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:

IpAllocationInner.id()

Returns:

the id value.

ipamAllocationId

public String ipamAllocationId()

Get the ipamAllocationId property: The IPAM allocation ID.

Returns:

the ipamAllocationId value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

IpAllocationInner.name()

Returns:

the name value.

prefix

public String prefix()

Get the prefix property: The address prefix for the IpAllocation.

Returns:

the prefix value.

prefixLength

public Integer prefixLength()

Get the prefixLength property: The address prefix length for the IpAllocation.

Returns:

the prefixLength value.

prefixType

public IpVersion prefixType()

Get the prefixType property: The address prefix Type for the IpAllocation.

Returns:

the prefixType value.

subnet

public SubResource subnet()

Get the subnet property: The Subnet that using the prefix of this IpAllocation resource.

Returns:

the subnet value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

IpAllocationInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

IpAllocationInner.type()

Returns:

the type value.

typePropertiesType

public IpAllocationType typePropertiesType()

Get the type property: The type for the IpAllocation.

Returns:

the type value.

validate

public void validate()

Validates the instance.

virtualNetwork

public SubResource virtualNetwork()

Get the virtualNetwork property: The VirtualNetwork that using the prefix of this IpAllocation resource.

Returns:

the virtualNetwork value.

withAllocationTags

public IpAllocationInner withAllocationTags(Map allocationTags)

Set the allocationTags property: IpAllocation tags.

Parameters:

allocationTags - the allocationTags value to set.

Returns:

the IpAllocationInner object itself.

withId

public IpAllocationInner withId(String id)

Set the id property: Resource ID.

Parameters:

id - the id value to set.

Returns:

the IpAllocationInner object itself.

withIpamAllocationId

public IpAllocationInner withIpamAllocationId(String ipamAllocationId)

Set the ipamAllocationId property: The IPAM allocation ID.

Parameters:

ipamAllocationId - the ipamAllocationId value to set.

Returns:

the IpAllocationInner object itself.

withLocation

public IpAllocationInner withLocation(String location)

Overrides:

IpAllocationInner.withLocation(String location)

Parameters:

location

withPrefix

public IpAllocationInner withPrefix(String prefix)

Set the prefix property: The address prefix for the IpAllocation.

Parameters:

prefix - the prefix value to set.

Returns:

the IpAllocationInner object itself.

withPrefixLength

public IpAllocationInner withPrefixLength(Integer prefixLength)

Set the prefixLength property: The address prefix length for the IpAllocation.

Parameters:

prefixLength - the prefixLength value to set.

Returns:

the IpAllocationInner object itself.

withPrefixType

public IpAllocationInner withPrefixType(IpVersion prefixType)

Set the prefixType property: The address prefix Type for the IpAllocation.

Parameters:

prefixType - the prefixType value to set.

Returns:

the IpAllocationInner object itself.

withTags

public IpAllocationInner withTags(Map tags)

Overrides:

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

Parameters:

tags

withTypePropertiesType

public IpAllocationInner withTypePropertiesType(IpAllocationType type)

Set the type property: The type for the IpAllocation.

Parameters:

type - the type value to set.

Returns:

the IpAllocationInner object itself.

Applies to