
com.azure.resourcemanager.network.models.LoadBalancerInboundNatPool Maven / Gradle / Ivy
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.resourcemanager.network.models;
import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.resources.fluentcore.arm.models.ChildResource;
import com.azure.resourcemanager.resources.fluentcore.model.Attachable;
import com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel;
import com.azure.resourcemanager.resources.fluentcore.model.Settable;
/** A client-side representation of an inbound NAT pool. */
@Fluent()
public interface LoadBalancerInboundNatPool
extends HasFrontend,
HasBackendPort,
HasProtocol,
HasInnerModel,
ChildResource {
/** @return the starting frontend port number */
int frontendPortRangeStart();
/** @return the ending frontend port number */
int frontendPortRangeEnd();
/** Grouping of inbound NAT pool definition stages. */
interface DefinitionStages {
/**
* The first stage of the inbound NAT pool definition.
*
* @param the stage of the parent definition to return to after attaching this definition
*/
interface Blank extends WithProtocol {
}
/**
* The final stage of the inbound NAT pool definition.
*
* At this stage, any remaining optional settings can be specified, or the inbound NAT pool definition can be
* attached to the parent load balancer definition.
*
* @param the stage of the parent definition to return to after attaching this definition
*/
interface WithAttach extends Attachable.InDefinition {
}
/**
* The stage of an inbound NAT pool definition allowing to specify the transport protocol for the pool to apply
* to.
*
* @param the stage of the parent definition to return to after attaching this definition
*/
interface WithProtocol
extends HasProtocol.DefinitionStages.WithProtocol, TransportProtocol> {
}
/**
* The stage of an inbound NAT pool definition allowing to specify the frontend for the inbound NAT rules in the
* pool to apply to.
*
* @param the stage of the parent definition to return to after attaching this definition
*/
interface WithFrontend
extends HasFrontend.DefinitionStages.WithFrontend> {
}
/**
* The stage of an inbound NAT pool definition allowing to specify the frontend port range.
*
* @param the stage of the parent definition to return to after attaching this definition
*/
interface WithFrontendPortRange {
/**
* Specifies the frontend port range to receive network traffic from.
*
* @param from the starting port number, between 1 and 65534
* @param to the ending port number, greater than the starting port number and no more than 65534
* @return the next stage of the definition
*/
WithBackendPort fromFrontendPortRange(int from, int to);
}
/**
* The stage of an inbound NAT pool definition allowing to specify the backend port.
*
* @param the stage of the parent definition to return to after attaching this definition
*/
interface WithBackendPort
extends HasBackendPort.DefinitionStages.WithBackendPort> {
}
}
/**
* The entirety of an inbound NAT pool definition.
*
* @param the stage of the parent definition to return to after attaching this definition
*/
interface Definition
extends DefinitionStages.Blank,
DefinitionStages.WithAttach,
DefinitionStages.WithProtocol,
DefinitionStages.WithFrontend,
DefinitionStages.WithFrontendPortRange,
DefinitionStages.WithBackendPort {
}
/** Grouping of inbound NAT pool update stages. */
interface UpdateStages {
/**
* The stage of an inbound NAT pool update allowing to specify the transport protocol for the pool to apply to.
*/
interface WithProtocol extends HasProtocol.UpdateStages.WithProtocol {
}
/**
* The stage of an inbound NAT pool update allowing to specify the frontend for the inbound NAT rules in the
* pool to apply to.
*/
interface WithFrontend extends HasFrontend.UpdateStages.WithFrontend {
}
/** The stage of an inbound NAT pool update allowing to specify the frontend port range. */
interface WithFrontendPortRange {
/**
* Specifies the frontend port range.
*
* @param from the starting port number, between 1 and 65534
* @param to the ending port number, greater than the starting port number and no more than 65534
* @return the next stage of the definition
*/
Update fromFrontendPortRange(int from, int to);
}
/** The stage of an inbound NAT pool update allowing to specify the backend port. */
interface WithBackendPort extends HasBackendPort.UpdateStages.WithBackendPort {
}
}
/** The entirety of an inbound NAT pool update as part of a load balancer update. */
interface Update
extends Settable,
UpdateStages.WithProtocol,
UpdateStages.WithFrontend,
UpdateStages.WithBackendPort,
UpdateStages.WithFrontendPortRange {
}
/** Grouping of inbound NAT pool definition stages applicable as part of a load balancer update. */
interface UpdateDefinitionStages {
/**
* The first stage of the inbound NAT pool definition.
*
* @param the stage of the parent definition to return to after attaching this definition
*/
interface Blank extends WithProtocol {
}
/**
* The final stage of the inbound NAT pool definition.
*
* At this stage, any remaining optional settings can be specified, or the inbound NAT pool definition can be
* attached to the parent load balancer definition.
*
* @param the stage of the parent definition to return to after attaching this definition
*/
interface WithAttach extends Attachable.InUpdate {
}
/**
* The stage of an inbound NAT pool definition allowing to specify the transport protocol for the pool to apply
* to.
*
* @param the stage of the parent definition to return to after attaching this definition
*/
interface WithProtocol
extends HasProtocol.UpdateDefinitionStages.WithProtocol, TransportProtocol> {
}
/**
* The stage of an inbound NAT pool definition allowing to specify the frontend for the inbound NAT rules in the
* pool to apply to.
*
* @param the stage of the parent definition to return to after attaching this definition
*/
interface WithFrontend extends HasFrontend.UpdateDefinitionStages.WithFrontend> {
}
/**
* The stage of an inbound NAT pool definition allowing to specify the frontend port range.
*
* @param the stage of the parent definition to return to after attaching this definition
*/
interface WithFrontendPortRange {
/**
* Specified the frontend port range.
*
* @param from the starting port number, between 1 and 65534
* @param to the ending port number, greater than the starting port number and no more than 65534
* @return the next stage of the definition
*/
WithAttach fromFrontendPortRange(int from, int to);
}
/**
* The stage of an inbound NAT pool definition allowing to specify the backend port.
*
* @param the stage of the parent definition to return to after attaching this definition
*/
interface WithBackendPort
extends HasBackendPort.UpdateDefinitionStages.WithBackendPort> {
}
}
/**
* The entirety of an inbound NAT pool definition as part of a load balancer update.
*
* @param the stage of the parent definition to return to after attaching this definition
*/
interface UpdateDefinition
extends UpdateDefinitionStages.Blank,
UpdateDefinitionStages.WithAttach,
UpdateDefinitionStages.WithProtocol,
UpdateDefinitionStages.WithFrontend,
UpdateDefinitionStages.WithFrontendPortRange,
UpdateDefinitionStages.WithBackendPort {
}
}