Condividi tramite


NetworkInterfaceIpConfigurationInner Class

public final class NetworkInterfaceIpConfigurationInner
extends SubResource

IPConfiguration in a network interface.

Constructor Summary

Constructor Description
NetworkInterfaceIpConfigurationInner()

Creates an instance of NetworkInterfaceIpConfigurationInner class.

Method Summary

Modifier and Type Method and Description
List<ApplicationGatewayBackendAddressPool> applicationGatewayBackendAddressPools()

Get the applicationGatewayBackendAddressPools property: The reference to ApplicationGatewayBackendAddressPool resource.

List<ApplicationSecurityGroupInner> applicationSecurityGroups()

Get the applicationSecurityGroups property: Application security groups in which the IP configuration is included.

String etag()

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

static NetworkInterfaceIpConfigurationInner fromJson(JsonReader jsonReader)

Reads an instance of NetworkInterfaceIpConfigurationInner from the JsonReader.

SubResource gatewayLoadBalancer()

Get the gatewayLoadBalancer property: The reference to gateway load balancer frontend IP.

List<BackendAddressPoolInner> loadBalancerBackendAddressPools()

Get the loadBalancerBackendAddressPools property: The reference to LoadBalancerBackendAddressPool resource.

List<InboundNatRuleInner> loadBalancerInboundNatRules()

Get the loadBalancerInboundNatRules property: A list of references of LoadBalancerInboundNatRules.

String name()

Get the name property: The name of the resource that is unique within a resource group.

Boolean primary()

Get the primary property: Whether this is a primary customer address on the network interface.

String privateIpAddress()

Get the privateIpAddress property: Private IP address of the IP configuration.

Integer privateIpAddressPrefixLength()

Get the privateIpAddressPrefixLength property: The private IP address prefix length.

IpVersion privateIpAddressVersion()

Get the privateIpAddressVersion property: Whether the specific IP configuration is IPv4 or IPv6.

IpAllocationMethod privateIpAllocationMethod()

Get the privateIpAllocationMethod property: The private IP address allocation method.

NetworkInterfaceIpConfigurationPrivateLinkConnectionProperties privateLinkConnectionProperties()

Get the privateLinkConnectionProperties property: PrivateLinkConnection properties for the network interface.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the network interface IP configuration.

PublicIpAddressInner publicIpAddress()

Get the publicIpAddress property: Public IP address bound to the IP configuration.

SubnetInner subnet()

Get the subnet property: Subnet bound to the IP configuration.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Resource type.

void validate()

Validates the instance.

List<VirtualNetworkTapInner> virtualNetworkTaps()

Get the virtualNetworkTaps property: The reference to Virtual Network Taps.

NetworkInterfaceIpConfigurationInner withApplicationGatewayBackendAddressPools(List<ApplicationGatewayBackendAddressPool> applicationGatewayBackendAddressPools)

Set the applicationGatewayBackendAddressPools property: The reference to ApplicationGatewayBackendAddressPool resource.

NetworkInterfaceIpConfigurationInner withApplicationSecurityGroups(List<ApplicationSecurityGroupInner> applicationSecurityGroups)

Set the applicationSecurityGroups property: Application security groups in which the IP configuration is included.

NetworkInterfaceIpConfigurationInner withGatewayLoadBalancer(SubResource gatewayLoadBalancer)

Set the gatewayLoadBalancer property: The reference to gateway load balancer frontend IP.

NetworkInterfaceIpConfigurationInner withId(String id)
NetworkInterfaceIpConfigurationInner withLoadBalancerBackendAddressPools(List<BackendAddressPoolInner> loadBalancerBackendAddressPools)

Set the loadBalancerBackendAddressPools property: The reference to LoadBalancerBackendAddressPool resource.

NetworkInterfaceIpConfigurationInner withLoadBalancerInboundNatRules(List<InboundNatRuleInner> loadBalancerInboundNatRules)

Set the loadBalancerInboundNatRules property: A list of references of LoadBalancerInboundNatRules.

NetworkInterfaceIpConfigurationInner withName(String name)

Set the name property: The name of the resource that is unique within a resource group.

NetworkInterfaceIpConfigurationInner withPrimary(Boolean primary)

Set the primary property: Whether this is a primary customer address on the network interface.

NetworkInterfaceIpConfigurationInner withPrivateIpAddress(String privateIpAddress)

Set the privateIpAddress property: Private IP address of the IP configuration.

NetworkInterfaceIpConfigurationInner withPrivateIpAddressPrefixLength(Integer privateIpAddressPrefixLength)

Set the privateIpAddressPrefixLength property: The private IP address prefix length.

NetworkInterfaceIpConfigurationInner withPrivateIpAddressVersion(IpVersion privateIpAddressVersion)

Set the privateIpAddressVersion property: Whether the specific IP configuration is IPv4 or IPv6.

NetworkInterfaceIpConfigurationInner withPrivateIpAllocationMethod(IpAllocationMethod privateIpAllocationMethod)

Set the privateIpAllocationMethod property: The private IP address allocation method.

NetworkInterfaceIpConfigurationInner withPublicIpAddress(PublicIpAddressInner publicIpAddress)

Set the publicIpAddress property: Public IP address bound to the IP configuration.

NetworkInterfaceIpConfigurationInner withSubnet(SubnetInner subnet)

Set the subnet property: Subnet bound to the IP configuration.

NetworkInterfaceIpConfigurationInner withType(String type)

Set the type property: Resource type.

NetworkInterfaceIpConfigurationInner withVirtualNetworkTaps(List<VirtualNetworkTapInner> virtualNetworkTaps)

Set the virtualNetworkTaps property: The reference to Virtual Network Taps.

Methods inherited from SubResource

Methods inherited from java.lang.Object

Constructor Details

NetworkInterfaceIpConfigurationInner

public NetworkInterfaceIpConfigurationInner()

Creates an instance of NetworkInterfaceIpConfigurationInner class.

Method Details

applicationGatewayBackendAddressPools

public List<ApplicationGatewayBackendAddressPool> applicationGatewayBackendAddressPools()

Get the applicationGatewayBackendAddressPools property: The reference to ApplicationGatewayBackendAddressPool resource.

Returns:

the applicationGatewayBackendAddressPools value.

applicationSecurityGroups

public List<ApplicationSecurityGroupInner> applicationSecurityGroups()

Get the applicationSecurityGroups property: Application security groups in which the IP configuration is included.

Returns:

the applicationSecurityGroups 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 NetworkInterfaceIpConfigurationInner fromJson(JsonReader jsonReader)

Reads an instance of NetworkInterfaceIpConfigurationInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of NetworkInterfaceIpConfigurationInner 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 NetworkInterfaceIpConfigurationInner.

gatewayLoadBalancer

public SubResource gatewayLoadBalancer()

Get the gatewayLoadBalancer property: The reference to gateway load balancer frontend IP.

Returns:

the gatewayLoadBalancer value.

loadBalancerBackendAddressPools

public List<BackendAddressPoolInner> loadBalancerBackendAddressPools()

Get the loadBalancerBackendAddressPools property: The reference to LoadBalancerBackendAddressPool resource.

Returns:

the loadBalancerBackendAddressPools value.

loadBalancerInboundNatRules

public List<InboundNatRuleInner> loadBalancerInboundNatRules()

Get the loadBalancerInboundNatRules property: A list of references of LoadBalancerInboundNatRules.

Returns:

the loadBalancerInboundNatRules value.

name

public String name()

Get the name property: The name of the resource that is unique within a resource group. This name can be used to access the resource.

Returns:

the name value.

primary

public Boolean primary()

Get the primary property: Whether this is a primary customer address on the network interface.

Returns:

the primary value.

privateIpAddress

public String privateIpAddress()

Get the privateIpAddress property: Private IP address of the IP configuration. It can be a single IP address or a CIDR block in the format

/<prefix-length>.

Returns:

the privateIpAddress value.

privateIpAddressPrefixLength

public Integer privateIpAddressPrefixLength()

Get the privateIpAddressPrefixLength property: The private IP address prefix length. If specified and the allocation method is dynamic, the service will allocate a CIDR block instead of a single IP address.

Returns:

the privateIpAddressPrefixLength value.

privateIpAddressVersion

public IpVersion privateIpAddressVersion()

Get the privateIpAddressVersion property: Whether the specific IP configuration is IPv4 or IPv6. Default is IPv4.

Returns:

the privateIpAddressVersion value.

privateIpAllocationMethod

public IpAllocationMethod privateIpAllocationMethod()

Get the privateIpAllocationMethod property: The private IP address allocation method.

Returns:

the privateIpAllocationMethod value.

privateLinkConnectionProperties

public NetworkInterfaceIpConfigurationPrivateLinkConnectionProperties privateLinkConnectionProperties()

Get the privateLinkConnectionProperties property: PrivateLinkConnection properties for the network interface.

Returns:

the privateLinkConnectionProperties value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the network interface IP configuration.

Returns:

the provisioningState value.

publicIpAddress

public PublicIpAddressInner publicIpAddress()

Get the publicIpAddress property: Public IP address bound to the IP configuration.

Returns:

the publicIpAddress value.

subnet

public SubnetInner subnet()

Get the subnet property: Subnet bound to the IP configuration.

Returns:

the subnet value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

NetworkInterfaceIpConfigurationInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Resource type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

virtualNetworkTaps

public List<VirtualNetworkTapInner> virtualNetworkTaps()

Get the virtualNetworkTaps property: The reference to Virtual Network Taps.

Returns:

the virtualNetworkTaps value.

withApplicationGatewayBackendAddressPools

public NetworkInterfaceIpConfigurationInner withApplicationGatewayBackendAddressPools(List<ApplicationGatewayBackendAddressPool> applicationGatewayBackendAddressPools)

Set the applicationGatewayBackendAddressPools property: The reference to ApplicationGatewayBackendAddressPool resource.

Parameters:

applicationGatewayBackendAddressPools - the applicationGatewayBackendAddressPools value to set.

Returns:

the NetworkInterfaceIpConfigurationInner object itself.

withApplicationSecurityGroups

public NetworkInterfaceIpConfigurationInner withApplicationSecurityGroups(List<ApplicationSecurityGroupInner> applicationSecurityGroups)

Set the applicationSecurityGroups property: Application security groups in which the IP configuration is included.

Parameters:

applicationSecurityGroups - the applicationSecurityGroups value to set.

Returns:

the NetworkInterfaceIpConfigurationInner object itself.

withGatewayLoadBalancer

public NetworkInterfaceIpConfigurationInner withGatewayLoadBalancer(SubResource gatewayLoadBalancer)

Set the gatewayLoadBalancer property: The reference to gateway load balancer frontend IP.

Parameters:

gatewayLoadBalancer - the gatewayLoadBalancer value to set.

Returns:

the NetworkInterfaceIpConfigurationInner object itself.

withId

public NetworkInterfaceIpConfigurationInner withId(String id)

Overrides:

NetworkInterfaceIpConfigurationInner.withId(String id)

Parameters:

id

withLoadBalancerBackendAddressPools

public NetworkInterfaceIpConfigurationInner withLoadBalancerBackendAddressPools(List<BackendAddressPoolInner> loadBalancerBackendAddressPools)

Set the loadBalancerBackendAddressPools property: The reference to LoadBalancerBackendAddressPool resource.

Parameters:

loadBalancerBackendAddressPools - the loadBalancerBackendAddressPools value to set.

Returns:

the NetworkInterfaceIpConfigurationInner object itself.

withLoadBalancerInboundNatRules

public NetworkInterfaceIpConfigurationInner withLoadBalancerInboundNatRules(List<InboundNatRuleInner> loadBalancerInboundNatRules)

Set the loadBalancerInboundNatRules property: A list of references of LoadBalancerInboundNatRules.

Parameters:

loadBalancerInboundNatRules - the loadBalancerInboundNatRules value to set.

Returns:

the NetworkInterfaceIpConfigurationInner object itself.

withName

public NetworkInterfaceIpConfigurationInner withName(String name)

Set the name property: The name of the resource that is unique within a resource group. This name can be used to access the resource.

Parameters:

name - the name value to set.

Returns:

the NetworkInterfaceIpConfigurationInner object itself.

withPrimary

public NetworkInterfaceIpConfigurationInner withPrimary(Boolean primary)

Set the primary property: Whether this is a primary customer address on the network interface.

Parameters:

primary - the primary value to set.

Returns:

the NetworkInterfaceIpConfigurationInner object itself.

withPrivateIpAddress

public NetworkInterfaceIpConfigurationInner withPrivateIpAddress(String privateIpAddress)

Set the privateIpAddress property: Private IP address of the IP configuration. It can be a single IP address or a CIDR block in the format

/<prefix-length>.

Parameters:

privateIpAddress - the privateIpAddress value to set.

Returns:

the NetworkInterfaceIpConfigurationInner object itself.

withPrivateIpAddressPrefixLength

public NetworkInterfaceIpConfigurationInner withPrivateIpAddressPrefixLength(Integer privateIpAddressPrefixLength)

Set the privateIpAddressPrefixLength property: The private IP address prefix length. If specified and the allocation method is dynamic, the service will allocate a CIDR block instead of a single IP address.

Parameters:

privateIpAddressPrefixLength - the privateIpAddressPrefixLength value to set.

Returns:

the NetworkInterfaceIpConfigurationInner object itself.

withPrivateIpAddressVersion

public NetworkInterfaceIpConfigurationInner withPrivateIpAddressVersion(IpVersion privateIpAddressVersion)

Set the privateIpAddressVersion property: Whether the specific IP configuration is IPv4 or IPv6. Default is IPv4.

Parameters:

privateIpAddressVersion - the privateIpAddressVersion value to set.

Returns:

the NetworkInterfaceIpConfigurationInner object itself.

withPrivateIpAllocationMethod

public NetworkInterfaceIpConfigurationInner withPrivateIpAllocationMethod(IpAllocationMethod privateIpAllocationMethod)

Set the privateIpAllocationMethod property: The private IP address allocation method.

Parameters:

privateIpAllocationMethod - the privateIpAllocationMethod value to set.

Returns:

the NetworkInterfaceIpConfigurationInner object itself.

withPublicIpAddress

public NetworkInterfaceIpConfigurationInner withPublicIpAddress(PublicIpAddressInner publicIpAddress)

Set the publicIpAddress property: Public IP address bound to the IP configuration.

Parameters:

publicIpAddress - the publicIpAddress value to set.

Returns:

the NetworkInterfaceIpConfigurationInner object itself.

withSubnet

public NetworkInterfaceIpConfigurationInner withSubnet(SubnetInner subnet)

Set the subnet property: Subnet bound to the IP configuration.

Parameters:

subnet - the subnet value to set.

Returns:

the NetworkInterfaceIpConfigurationInner object itself.

withType

public NetworkInterfaceIpConfigurationInner withType(String type)

Set the type property: Resource type.

Parameters:

type - the type value to set.

Returns:

the NetworkInterfaceIpConfigurationInner object itself.

withVirtualNetworkTaps

public NetworkInterfaceIpConfigurationInner withVirtualNetworkTaps(List<VirtualNetworkTapInner> virtualNetworkTaps)

Set the virtualNetworkTaps property: The reference to Virtual Network Taps.

Parameters:

virtualNetworkTaps - the virtualNetworkTaps value to set.

Returns:

the NetworkInterfaceIpConfigurationInner object itself.

Applies to