Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. */
package com.microsoft.azure.management.network; import com.microsoft.azure.management.apigeneration.Beta; import com.microsoft.azure.management.apigeneration.Beta.SinceVersion; import com.microsoft.azure.management.apigeneration.Fluent; import com.microsoft.azure.management.network.implementation.NetworkInterfaceIPConfigurationInner; import com.microsoft.azure.management.network.model.HasPrivateIPAddress; import com.microsoft.azure.management.network.model.HasPublicIPAddress; import com.microsoft.azure.management.resources.fluentcore.arm.models.ChildResource; import com.microsoft.azure.management.resources.fluentcore.model.Attachable; import com.microsoft.azure.management.resources.fluentcore.model.Creatable; import com.microsoft.azure.management.resources.fluentcore.model.Settable; import com.microsoft.azure.management.resources.fluentcore.model.HasInner;
An IP configuration in a network interface.
/** * An IP configuration in a network interface. */
@Fluent() public interface NicIPConfiguration extends NicIPConfigurationBase, HasInner<NetworkInterfaceIPConfigurationInner>, ChildResource<NetworkInterface>, HasPublicIPAddress {
The entirety of the network interface IP configuration definition.
Type parameters:
  • <ParentT> – the stage of the parent network interface definition to return to after attaching this definition
/** * The entirety of the network interface IP configuration definition. * @param <ParentT> the stage of the parent network interface definition to return to after attaching this definition */
interface Definition<ParentT> extends DefinitionStages.Blank<ParentT>, DefinitionStages.WithAttach<ParentT>, DefinitionStages.WithNetwork<ParentT>, DefinitionStages.WithSubnet<ParentT>, DefinitionStages.WithPrivateIP<ParentT> { }
Grouping of network interface IP configuration definition stages applicable as part of a network interface update.
/** * Grouping of network interface IP configuration definition stages applicable as part of a * network interface update. */
interface DefinitionStages {
The first stage of network interface IP configuration definition.
Type parameters:
  • <ParentT> – the stage of the parent network interface definition to return to after attaching this definition
/** * The first stage of network interface IP configuration definition. * * @param <ParentT> the stage of the parent network interface definition to return to after attaching this definition */
interface Blank<ParentT> extends WithNetwork<ParentT> { }
The stage of the network interface IP configuration definition allowing to specify the virtual network.
Type parameters:
  • <ParentT> – the stage of the parent network interface definition to return to after attaching this definition
/** * The stage of the network interface IP configuration definition allowing to specify the virtual network. * * @param <ParentT> the stage of the parent network interface definition to return to after attaching this definition */
interface WithNetwork<ParentT> {
Create a new virtual network to associate with the network interface IP configuration, based on the provided definition.
Params:
  • creatable – a creatable definition for a new virtual network
Returns:the next stage of the definition
/** * Create a new virtual network to associate with the network interface IP configuration, * based on the provided definition. * * @param creatable a creatable definition for a new virtual network * @return the next stage of the definition */
WithPrivateIP<ParentT> withNewNetwork(Creatable<Network> creatable);
Creates a new virtual network to associate with the network interface IP configuration.

the virtual network will be created in the same resource group and region as of parent network interface, it will be created with the specified address space and a default subnet covering the entirety of the network IP address space.

Params:
  • name – the name of the new virtual network
  • addressSpace – the address space for rhe virtual network
Returns:the next stage of the definition
/** * Creates a new virtual network to associate with the network interface IP configuration. * <p> * the virtual network will be created in the same resource group and region as of parent * network interface, it will be created with the specified address space and a default subnet * covering the entirety of the network IP address space. * * @param name the name of the new virtual network * @param addressSpace the address space for rhe virtual network * @return the next stage of the definition */
WithPrivateIP<ParentT> withNewNetwork(String name, String addressSpace);
Creates a new virtual network to associate with the network interface IP configuration.

the virtual network will be created in the same resource group and region as of parent network interface, it will be created with the specified address space and a default subnet covering the entirety of the network IP address space.

Params:
  • addressSpace – the address space for the virtual network
Returns:the next stage of the definition
/** * Creates a new virtual network to associate with the network interface IP configuration. * <p> * the virtual network will be created in the same resource group and region as of parent network interface, * it will be created with the specified address space and a default subnet covering the entirety of the * network IP address space. * * @param addressSpace the address space for the virtual network * @return the next stage of the definition */
WithPrivateIP<ParentT> withNewNetwork(String addressSpace);
Associate an existing virtual network with the network interface IP configuration.
Params:
  • network – an existing virtual network
Returns:the next stage of the definition
/** * Associate an existing virtual network with the network interface IP configuration. * * @param network an existing virtual network * @return the next stage of the definition */
WithSubnet<ParentT> withExistingNetwork(Network network); }
The stage of the network interface IP configuration definition allowing to specify private IP address within a virtual network subnet.
Type parameters:
  • <ParentT> – the stage of the parent network interface definition to return to after attaching this definition
/** * The stage of the network interface IP configuration definition allowing to specify private IP address * within a virtual network subnet. * * @param <ParentT> the stage of the parent network interface definition to return to after attaching this definition */
interface WithPrivateIP<ParentT> extends HasPrivateIPAddress.DefinitionStages.WithPrivateIPAddress<WithAttach<ParentT>> {
Specifies the IP version for the private IP address.
Params:
  • ipVersion – an IP version
Returns:the next stage of the definition
/** * Specifies the IP version for the private IP address. * @param ipVersion an IP version * @return the next stage of the definition */
WithAttach<ParentT> withPrivateIPVersion(IPVersion ipVersion); }
The stage of the network interface IP configuration definition allowing to specify subnet.
Type parameters:
/** * The stage of the network interface IP configuration definition allowing to specify subnet. * * @param <ParentT> the return type of the final {@link Attachable#attach()} */
interface WithSubnet<ParentT> {
Associate a subnet with the network interface IP configuration.
Params:
  • name – the subnet name
Returns:the next stage of the definition
/** * Associate a subnet with the network interface IP configuration. * * @param name the subnet name * @return the next stage of the definition */
WithPrivateIP<ParentT> withSubnet(String name); }
The stage of the network interface IP configuration definition allowing to associate it with a public IP address.
Type parameters:
  • <ParentT> – the stage of the parent network interface definition to return to after attaching this definition
/** * The stage of the network interface IP configuration definition allowing to associate it with * a public IP address. * * @param <ParentT> the stage of the parent network interface definition to return to after attaching this definition */
interface WithPublicIPAddress<ParentT> extends HasPublicIPAddress.DefinitionStages.WithPublicIPAddress<WithAttach<ParentT>> { }
The stage of the network interface IP configuration definition allowing to specify the load balancer to associate this IP configuration with.
Type parameters:
  • <ParentT> – the stage of the parent network interface definition to return to after attaching this definition
/** * The stage of the network interface IP configuration definition allowing to specify the load balancer * to associate this IP configuration with. * * @param <ParentT> the stage of the parent network interface definition to return to after attaching this definition */
interface WithLoadBalancer<ParentT> {
Specifies the load balancer backend to associate this IP configuration with.
Params:
  • loadBalancer – an existing load balancer
  • backendName – the name of an existing backend on that load balancer
Returns:the next stage of the definition
/** * Specifies the load balancer backend to associate this IP configuration with. * @param loadBalancer an existing load balancer * @param backendName the name of an existing backend on that load balancer * @return the next stage of the definition */
WithAttach<ParentT> withExistingLoadBalancerBackend(LoadBalancer loadBalancer, String backendName);
Specifies the load balancer inbound NAT rule to associate this IP configuration with.
Params:
  • loadBalancer – an existing load balancer
  • inboundNatRuleName – the name of an existing inbound NAT rule on the selected load balancer
Returns:the next stage of the definition
/** * Specifies the load balancer inbound NAT rule to associate this IP configuration with. * @param loadBalancer an existing load balancer * @param inboundNatRuleName the name of an existing inbound NAT rule on the selected load balancer * @return the next stage of the definition */
WithAttach<ParentT> withExistingLoadBalancerInboundNatRule(LoadBalancer loadBalancer, String inboundNatRuleName); }
The stage of the network interface IP configuration definition allowing to specify the load balancer to associate this IP configuration with.
Type parameters:
  • <ParentT> – the stage of the parent network interface definition to return to after attaching this definition
/** * The stage of the network interface IP configuration definition allowing to specify the load balancer * to associate this IP configuration with. * * @param <ParentT> the stage of the parent network interface definition to return to after attaching this definition */
interface WithApplicationGateway<ParentT> {
Specifies the application gateway backend to associate this IP configuration with.
Params:
  • appGateway – an existing application gateway
  • backendName – the name of an existing backend on the application gateway
Returns:the next stage of the definition
/** * Specifies the application gateway backend to associate this IP configuration with. * @param appGateway an existing application gateway * @param backendName the name of an existing backend on the application gateway * @return the next stage of the definition */
@Beta(SinceVersion.V1_4_0) WithAttach<ParentT> withExistingApplicationGatewayBackend(ApplicationGateway appGateway, String backendName); }
The final stage of network interface IP configuration.

At this stage, any remaining optional settings can be specified, or the network interface IP configuration definition can be attached to the parent network interface definition.

Type parameters:
  • <ParentT> – the stage of the parent network interface definition to return to after attaching this definition
/** * The final stage of network interface IP configuration. * <p> * At this stage, any remaining optional settings can be specified, or the network interface IP configuration * definition can be attached to the parent network interface definition. * * @param <ParentT> the stage of the parent network interface definition to return to after attaching this definition */
interface WithAttach<ParentT> extends Attachable.InDefinition<ParentT>, WithPublicIPAddress<ParentT>, WithLoadBalancer<ParentT>, WithApplicationGateway<ParentT> { } }
The entirety of a network interface IP configuration definition as part of a network interface update.
Type parameters:
/** The entirety of a network interface IP configuration definition as part of a network interface update. * @param <ParentT> the return type of the final {@link UpdateDefinitionStages.WithAttach#attach()} */
interface UpdateDefinition<ParentT> extends UpdateDefinitionStages.Blank<ParentT>, UpdateDefinitionStages.WithAttach<ParentT>, UpdateDefinitionStages.WithNetwork<ParentT>, UpdateDefinitionStages.WithPrivateIP<ParentT>, UpdateDefinitionStages.WithSubnet<ParentT>, UpdateDefinitionStages.WithPublicIPAddress<ParentT> { }
Grouping of network interface IP configuration definition stages.
/** * Grouping of network interface IP configuration definition stages. */
interface UpdateDefinitionStages {
The first stage of network interface IP configuration definition.
Type parameters:
  • <ParentT> – the stage of the parent network interface update to return to after attaching this definition
/** * The first stage of network interface IP configuration definition. * * @param <ParentT> the stage of the parent network interface update to return to after attaching this definition */
interface Blank<ParentT> extends WithNetwork<ParentT> { }
The stage of the network interface IP configuration definition allowing to specify the virtual network.
Type parameters:
  • <ParentT> – the stage of the parent network interface update to return to after attaching this definition
/** * The stage of the network interface IP configuration definition allowing to specify the virtual network. * * @param <ParentT> the stage of the parent network interface update to return to after attaching this definition */
interface WithNetwork<ParentT> {
Create a new virtual network to associate with the network interface IP configuration, based on the provided definition.
Params:
  • creatable – a creatable definition for a new virtual network
Returns:the next stage of the definition
/** * Create a new virtual network to associate with the network interface IP configuration, * based on the provided definition. * * @param creatable a creatable definition for a new virtual network * @return the next stage of the definition */
WithPrivateIP<ParentT> withNewNetwork(Creatable<Network> creatable);
Creates a new virtual network to associate with the network interface IP configuration.

the virtual network will be created in the same resource group and region as of parent network interface, it will be created with the specified address space and a default subnet covering the entirety of the network IP address space.

Params:
  • name – the name of the new virtual network
  • addressSpace – the address space for rhe virtual network
Returns:the next stage of the definition
/** * Creates a new virtual network to associate with the network interface IP configuration. * <p> * the virtual network will be created in the same resource group and region as of parent * network interface, it will be created with the specified address space and a default subnet * covering the entirety of the network IP address space. * * @param name the name of the new virtual network * @param addressSpace the address space for rhe virtual network * @return the next stage of the definition */
WithPrivateIP<ParentT> withNewNetwork(String name, String addressSpace);
Creates a new virtual network to associate with the network interface IP configuration.

the virtual network will be created in the same resource group and region as of parent network interface, it will be created with the specified address space and a default subnet covering the entirety of the network IP address space.

Params:
  • addressSpace – the address space for the virtual network
Returns:the next stage of the definition
/** * Creates a new virtual network to associate with the network interface IP configuration. * <p> * the virtual network will be created in the same resource group and region as of parent network interface, * it will be created with the specified address space and a default subnet covering the entirety of the * network IP address space. * * @param addressSpace the address space for the virtual network * @return the next stage of the definition */
WithPrivateIP<ParentT> withNewNetwork(String addressSpace);
Associate an existing virtual network with the network interface IP configuration.
Params:
  • network – an existing virtual network
Returns:the next stage of the definition
/** * Associate an existing virtual network with the network interface IP configuration. * * @param network an existing virtual network * @return the next stage of the definition */
WithSubnet<ParentT> withExistingNetwork(Network network); }
The stage of the network interface IP configuration definition allowing to specify private IP address within a virtual network subnet.
Type parameters:
  • <ParentT> – the stage of the parent network interface update to return to after attaching this definition
/** * The stage of the network interface IP configuration definition allowing to specify private IP address * within a virtual network subnet. * * @param <ParentT> the stage of the parent network interface update to return to after attaching this definition */
interface WithPrivateIP<ParentT> extends HasPrivateIPAddress.UpdateDefinitionStages.WithPrivateIPAddress<WithAttach<ParentT>> {
Specifies the IP version for the private IP address.
Params:
  • ipVersion – an IP version
Returns:the next stage of the definition
/** * Specifies the IP version for the private IP address. * @param ipVersion an IP version * @return the next stage of the definition */
WithAttach<ParentT> withPrivateIPVersion(IPVersion ipVersion); }
The stage of the network interface IP configuration definition allowing to specify subnet.
Type parameters:
  • <ParentT> – the stage of the parent network interface update to return to after attaching this definition
/** * The stage of the network interface IP configuration definition allowing to specify subnet. * * @param <ParentT> the stage of the parent network interface update to return to after attaching this definition */
interface WithSubnet<ParentT> {
Associate a subnet with the network interface IP configuration.
Params:
  • name – the subnet name
Returns:the next stage of the definition
/** * Associate a subnet with the network interface IP configuration. * * @param name the subnet name * @return the next stage of the definition */
WithPrivateIP<ParentT> withSubnet(String name); }
The stage of the network interface IP configuration definition allowing to associate it with a public IP address.
Type parameters:
  • <ParentT> – the stage of the parent network interface update to return to after attaching this definition
/** * The stage of the network interface IP configuration definition allowing to associate it with * a public IP address. * * @param <ParentT> the stage of the parent network interface update to return to after attaching this definition */
interface WithPublicIPAddress<ParentT> extends HasPublicIPAddress.UpdateDefinitionStages.WithPublicIPAddress<WithAttach<ParentT>> { }
The stage of the network interface IP configuration definition allowing to specify the load balancer to associate this IP configuration with.
Type parameters:
  • <ParentT> – the stage of the parent network interface update to return to after attaching this definition
/** * The stage of the network interface IP configuration definition allowing to specify the load balancer * to associate this IP configuration with. * * @param <ParentT> the stage of the parent network interface update to return to after attaching this definition */
interface WithLoadBalancer<ParentT> {
Specifies the load balancer to associate this IP configuration with.
Params:
  • loadBalancer – an existing load balancer
  • backendName – the name of an existing backend on that load balancer
Returns:the next stage of the update
/** * Specifies the load balancer to associate this IP configuration with. * @param loadBalancer an existing load balancer * @param backendName the name of an existing backend on that load balancer * @return the next stage of the update */
WithAttach<ParentT> withExistingLoadBalancerBackend(LoadBalancer loadBalancer, String backendName);
Specifies the load balancer inbound NAT rule to associate this IP configuration with.
Params:
  • loadBalancer – an existing load balancer
  • inboundNatRuleName – the name of an existing inbound NAT rule on the selected load balancer
Returns:the next stage of the update
/** * Specifies the load balancer inbound NAT rule to associate this IP configuration with. * @param loadBalancer an existing load balancer * @param inboundNatRuleName the name of an existing inbound NAT rule on the selected load balancer * @return the next stage of the update */
WithAttach<ParentT> withExistingLoadBalancerInboundNatRule(LoadBalancer loadBalancer, String inboundNatRuleName); }
The stage of the network interface IP configuration definition allowing to specify the load balancer to associate this IP configuration with.
Type parameters:
  • <ParentT> – the stage of the parent network interface update to return to after attaching this definition
/** * The stage of the network interface IP configuration definition allowing to specify the load balancer * to associate this IP configuration with. * * @param <ParentT> the stage of the parent network interface update to return to after attaching this definition */
interface WithApplicationGateway<ParentT> {
Specifies the application gateway backend to associate this IP configuration with.
Params:
  • appGateway – an existing application gateway
  • backendName – the name of an existing backend on the application gateway
Returns:the next stage of the definition
/** * Specifies the application gateway backend to associate this IP configuration with. * @param appGateway an existing application gateway * @param backendName the name of an existing backend on the application gateway * @return the next stage of the definition */
@Beta(SinceVersion.V1_4_0) WithAttach<ParentT> withExistingApplicationGatewayBackend(ApplicationGateway appGateway, String backendName); }
The final stage of network interface IP configuration.

At this stage, any remaining optional settings can be specified, or the network interface IP configuration definition can be attached to the parent network interface definition using InUpdate.attach().

Type parameters:
  • <ParentT> – the stage of the parent network interface update to return to after attaching this definition
/** * The final stage of network interface IP configuration. * <p> * At this stage, any remaining optional settings can be specified, or the network interface IP configuration * definition can be attached to the parent network interface definition using {@link WithAttach#attach()}. * * @param <ParentT> the stage of the parent network interface update to return to after attaching this definition */
interface WithAttach<ParentT> extends Attachable.InUpdate<ParentT>, WithPublicIPAddress<ParentT>, WithLoadBalancer<ParentT>, WithApplicationGateway<ParentT> { } }
The entirety of a network interface IP configuration update as part of a network interface update.
/** * The entirety of a network interface IP configuration update as part of a network interface update. */
interface Update extends Settable<NetworkInterface.Update>, UpdateStages.WithSubnet, UpdateStages.WithPrivateIP, UpdateStages.WithPublicIPAddress, UpdateStages.WithLoadBalancer, UpdateStages.WithApplicationGateway { }
Grouping of network interface IP configuration update stages.
/** * Grouping of network interface IP configuration update stages. */
interface UpdateStages {
The stage of the network interface IP configuration update allowing to specify subnet.
/** * The stage of the network interface IP configuration update allowing to specify subnet. */
interface WithSubnet {
Associate a subnet with the network interface IP configuration.
Params:
  • name – the subnet name
Returns:the next stage of the network interface IP configuration update
/** * Associate a subnet with the network interface IP configuration. * * @param name the subnet name * @return the next stage of the network interface IP configuration update */
Update withSubnet(String name); }
The stage of the network interface IP configuration update allowing to specify private IP.
/** * The stage of the network interface IP configuration update allowing to specify private IP. */
interface WithPrivateIP extends HasPrivateIPAddress.UpdateStages.WithPrivateIPAddress<Update> {
Specifies the IP version for the private IP address.
Params:
  • ipVersion – an IP version
Returns:the next stage of the update
/** * Specifies the IP version for the private IP address. * @param ipVersion an IP version * @return the next stage of the update */
Update withPrivateIPVersion(IPVersion ipVersion); }
The stage of the network interface IP configuration update allowing to specify public IP address.
/** * The stage of the network interface IP configuration update allowing to specify public IP address. */
interface WithPublicIPAddress extends HasPublicIPAddress.UpdateStages.WithPublicIPAddress<Update> { }
The stage of the network interface's IP configuration allowing to specify the load balancer to associate this IP configuration with.
/** * The stage of the network interface's IP configuration allowing to specify the load balancer * to associate this IP configuration with. */
interface WithLoadBalancer {
Specifies the load balancer to associate this IP configuration with.
Params:
  • loadBalancer – an existing load balancer
  • backendName – the name of an existing backend on that load balancer
Returns:the next stage of the update
/** * Specifies the load balancer to associate this IP configuration with. * @param loadBalancer an existing load balancer * @param backendName the name of an existing backend on that load balancer * @return the next stage of the update */
Update withExistingLoadBalancerBackend(LoadBalancer loadBalancer, String backendName);
Specifies the load balancer inbound NAT rule to associate this IP configuration with.
Params:
  • loadBalancer – an existing load balancer
  • inboundNatRuleName – the name of an existing inbound NAT rule on the selected load balancer
Returns:the next stage of the update
/** * Specifies the load balancer inbound NAT rule to associate this IP configuration with. * @param loadBalancer an existing load balancer * @param inboundNatRuleName the name of an existing inbound NAT rule on the selected load balancer * @return the next stage of the update */
Update withExistingLoadBalancerInboundNatRule(LoadBalancer loadBalancer, String inboundNatRuleName);
Removes all the existing associations with load balancer backends.
Returns:the next stage of the update
/** * Removes all the existing associations with load balancer backends. * @return the next stage of the update */
Update withoutLoadBalancerBackends();
Removes all the existing associations with load balancer inbound NAT rules.
Returns:the next stage of the update
/** * Removes all the existing associations with load balancer inbound NAT rules. * @return the next stage of the update */
Update withoutLoadBalancerInboundNatRules(); }
The stage of the network interface IP configuration update allowing to specify the load balancer to associate this IP configuration with.
/** * The stage of the network interface IP configuration update allowing to specify the load balancer * to associate this IP configuration with. */
interface WithApplicationGateway {
Specifies the application gateway backend to associate this IP configuration with.
Params:
  • appGateway – an existing application gateway
  • backendName – the name of an existing backend on the application gateway
Returns:the next stage of the update
/** * Specifies the application gateway backend to associate this IP configuration with. * @param appGateway an existing application gateway * @param backendName the name of an existing backend on the application gateway * @return the next stage of the update */
@Beta(SinceVersion.V1_4_0) Update withExistingApplicationGatewayBackend(ApplicationGateway appGateway, String backendName);
Removes all existing associations with application gateway backends.
Returns:the next stage of the update
/** * Removes all existing associations with application gateway backends. * @return the next stage of the update */
@Beta(SinceVersion.V1_4_0) Update withoutApplicationGatewayBackends(); } } }