public class InboundNatRule extends ChildResource
| Constructor and Description |
|---|
InboundNatRule()
Initializes a new instance of the InboundNatRule class.
|
InboundNatRule(String protocol,
int frontendPort,
boolean enableFloatingIP)
Initializes a new instance of the InboundNatRule class with required
arguments.
|
| Modifier and Type | Method and Description |
|---|---|
ResourceId |
getBackendIPConfiguration()
Optional.
|
int |
getBackendPort()
Optional.
|
ResourceId |
getFrontendIPConfiguration()
Optional.
|
int |
getFrontendPort()
Required.
|
Integer |
getIdleTimeoutInMinutes()
Optional.
|
String |
getProtocol()
Required.
|
String |
getProvisioningState()
Optional.
|
boolean |
isEnableFloatingIP()
Required.
|
void |
setBackendIPConfiguration(ResourceId backendIPConfigurationValue)
Optional.
|
void |
setBackendPort(int backendPortValue)
Optional.
|
void |
setEnableFloatingIP(boolean enableFloatingIPValue)
Required.
|
void |
setFrontendIPConfiguration(ResourceId frontendIPConfigurationValue)
Optional.
|
void |
setFrontendPort(int frontendPortValue)
Required.
|
void |
setIdleTimeoutInMinutes(Integer idleTimeoutInMinutesValue)
Optional.
|
void |
setProtocol(String protocolValue)
Required.
|
void |
setProvisioningState(String provisioningStateValue)
Optional.
|
getEtag, getName, setEtag, setNamegetId, setIdpublic InboundNatRule()
public InboundNatRule(String protocol, int frontendPort, boolean enableFloatingIP)
protocol - Gets or sets the transport potocol for the external
endpoint. Possible values are Udp or TcpfrontendPort - Gets or sets the port for the external endpoint. You
can spcify any port number you choose, but the port numbers specified
for each role in the service must be unique. Possible values range
between 1 and 65535, inclusiveenableFloatingIP - 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 Always ON
availability Groups in SQL server. This setting can't be changed after
you create the endpointpublic ResourceId getBackendIPConfiguration()
public void setBackendIPConfiguration(ResourceId backendIPConfigurationValue)
backendIPConfigurationValue - The BackendIPConfiguration value.public int getBackendPort()
public void setBackendPort(int backendPortValue)
backendPortValue - The BackendPort value.public boolean isEnableFloatingIP()
public void setEnableFloatingIP(boolean enableFloatingIPValue)
enableFloatingIPValue - The EnableFloatingIP value.public ResourceId getFrontendIPConfiguration()
public void setFrontendIPConfiguration(ResourceId frontendIPConfigurationValue)
frontendIPConfigurationValue - The FrontendIPConfiguration value.public int getFrontendPort()
public void setFrontendPort(int frontendPortValue)
frontendPortValue - The FrontendPort value.public Integer getIdleTimeoutInMinutes()
public void setIdleTimeoutInMinutes(Integer idleTimeoutInMinutesValue)
idleTimeoutInMinutesValue - The IdleTimeoutInMinutes value.public String getProtocol()
public void setProtocol(String protocolValue)
protocolValue - The Protocol value.public String getProvisioningState()
public void setProvisioningState(String provisioningStateValue)
provisioningStateValue - The ProvisioningState value./**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/