com.microsoft.azure.management.network.implementation.InboundNatPoolInner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-network Show documentation
Show all versions of azure-mgmt-network Show documentation
This package contains Microsoft Azure Network Management SDK.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.network.implementation;
import com.microsoft.azure.SubResource;
import com.microsoft.azure.management.network.TransportProtocol;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
/**
* Inbound NAT pool of the load balancer.
*/
@JsonFlatten
public class InboundNatPoolInner extends SubResource {
/**
* A reference to frontend IP addresses.
*/
@JsonProperty(value = "properties.frontendIPConfiguration")
private SubResource frontendIPConfiguration;
/**
* Possible values include: 'Udp', 'Tcp', 'All'.
*/
@JsonProperty(value = "properties.protocol", required = true)
private TransportProtocol protocol;
/**
* The first port number in the range of external ports that will be used
* to provide Inbound Nat to NICs associated with a load balancer.
* Acceptable values range between 1 and 65534.
*/
@JsonProperty(value = "properties.frontendPortRangeStart", required = true)
private int frontendPortRangeStart;
/**
* The last port number in the range of external ports that will be used to
* provide Inbound Nat to NICs associated with a load balancer. Acceptable
* values range between 1 and 65535.
*/
@JsonProperty(value = "properties.frontendPortRangeEnd", required = true)
private int frontendPortRangeEnd;
/**
* The port used for internal connections on the endpoint. Acceptable
* values are between 1 and 65535.
*/
@JsonProperty(value = "properties.backendPort", required = true)
private int backendPort;
/**
* The timeout for the TCP idle connection. The value can be set between 4
* and 30 minutes. The default value is 4 minutes. This element is only
* used when the protocol is set to TCP.
*/
@JsonProperty(value = "properties.idleTimeoutInMinutes")
private Integer idleTimeoutInMinutes;
/**
* Configures a virtual machine's endpoint for the floating IP capability
* required to configure a SQL AlwaysOn Availability Group. This setting is
* required when using the SQL AlwaysOn Availability Groups in SQL server.
* This setting can't be changed after you create the endpoint.
*/
@JsonProperty(value = "properties.enableFloatingIP")
private Boolean enableFloatingIP;
/**
* Gets the provisioning state of the PublicIP resource. Possible values
* are: 'Updating', 'Deleting', and 'Failed'.
*/
@JsonProperty(value = "properties.provisioningState")
private String provisioningState;
/**
* The name of the resource that is unique within a resource group. This
* name can be used to access the resource.
*/
@JsonProperty(value = "name")
private String name;
/**
* A unique read-only string that changes whenever the resource is updated.
*/
@JsonProperty(value = "etag")
private String etag;
/**
* Get the frontendIPConfiguration value.
*
* @return the frontendIPConfiguration value
*/
public SubResource frontendIPConfiguration() {
return this.frontendIPConfiguration;
}
/**
* Set the frontendIPConfiguration value.
*
* @param frontendIPConfiguration the frontendIPConfiguration value to set
* @return the InboundNatPoolInner object itself.
*/
public InboundNatPoolInner withFrontendIPConfiguration(SubResource frontendIPConfiguration) {
this.frontendIPConfiguration = frontendIPConfiguration;
return this;
}
/**
* Get the protocol value.
*
* @return the protocol value
*/
public TransportProtocol protocol() {
return this.protocol;
}
/**
* Set the protocol value.
*
* @param protocol the protocol value to set
* @return the InboundNatPoolInner object itself.
*/
public InboundNatPoolInner withProtocol(TransportProtocol protocol) {
this.protocol = protocol;
return this;
}
/**
* Get the frontendPortRangeStart value.
*
* @return the frontendPortRangeStart value
*/
public int frontendPortRangeStart() {
return this.frontendPortRangeStart;
}
/**
* Set the frontendPortRangeStart value.
*
* @param frontendPortRangeStart the frontendPortRangeStart value to set
* @return the InboundNatPoolInner object itself.
*/
public InboundNatPoolInner withFrontendPortRangeStart(int frontendPortRangeStart) {
this.frontendPortRangeStart = frontendPortRangeStart;
return this;
}
/**
* Get the frontendPortRangeEnd value.
*
* @return the frontendPortRangeEnd value
*/
public int frontendPortRangeEnd() {
return this.frontendPortRangeEnd;
}
/**
* Set the frontendPortRangeEnd value.
*
* @param frontendPortRangeEnd the frontendPortRangeEnd value to set
* @return the InboundNatPoolInner object itself.
*/
public InboundNatPoolInner withFrontendPortRangeEnd(int frontendPortRangeEnd) {
this.frontendPortRangeEnd = frontendPortRangeEnd;
return this;
}
/**
* Get the backendPort value.
*
* @return the backendPort value
*/
public int backendPort() {
return this.backendPort;
}
/**
* Set the backendPort value.
*
* @param backendPort the backendPort value to set
* @return the InboundNatPoolInner object itself.
*/
public InboundNatPoolInner withBackendPort(int backendPort) {
this.backendPort = backendPort;
return this;
}
/**
* Get the idleTimeoutInMinutes value.
*
* @return the idleTimeoutInMinutes value
*/
public Integer idleTimeoutInMinutes() {
return this.idleTimeoutInMinutes;
}
/**
* Set the idleTimeoutInMinutes value.
*
* @param idleTimeoutInMinutes the idleTimeoutInMinutes value to set
* @return the InboundNatPoolInner object itself.
*/
public InboundNatPoolInner withIdleTimeoutInMinutes(Integer idleTimeoutInMinutes) {
this.idleTimeoutInMinutes = idleTimeoutInMinutes;
return this;
}
/**
* Get the enableFloatingIP value.
*
* @return the enableFloatingIP value
*/
public Boolean enableFloatingIP() {
return this.enableFloatingIP;
}
/**
* Set the enableFloatingIP value.
*
* @param enableFloatingIP the enableFloatingIP value to set
* @return the InboundNatPoolInner object itself.
*/
public InboundNatPoolInner withEnableFloatingIP(Boolean enableFloatingIP) {
this.enableFloatingIP = enableFloatingIP;
return this;
}
/**
* Get the provisioningState value.
*
* @return the provisioningState value
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* Set the provisioningState value.
*
* @param provisioningState the provisioningState value to set
* @return the InboundNatPoolInner object itself.
*/
public InboundNatPoolInner withProvisioningState(String provisioningState) {
this.provisioningState = provisioningState;
return this;
}
/**
* Get the name value.
*
* @return the name value
*/
public String name() {
return this.name;
}
/**
* Set the name value.
*
* @param name the name value to set
* @return the InboundNatPoolInner object itself.
*/
public InboundNatPoolInner withName(String name) {
this.name = name;
return this;
}
/**
* Get the etag value.
*
* @return the etag value
*/
public String etag() {
return this.etag;
}
/**
* Set the etag value.
*
* @param etag the etag value to set
* @return the InboundNatPoolInner object itself.
*/
public InboundNatPoolInner withEtag(String etag) {
this.etag = etag;
return this;
}
}