vpc-20160428/core/Models/ModifyForwardEntryRequest.cs (57 lines of code) (raw):
// This file is auto-generated, don't edit it. Thanks.
using System;
using System.Collections.Generic;
using System.IO;
using Tea;
namespace AlibabaCloud.SDK.Vpc20160428.Models
{
public class ModifyForwardEntryRequest : TeaModel {
/// <summary>
/// <para>The client token that is used to ensure the idempotence of the request.</para>
/// <para>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</para>
/// <remarks>
/// <para> If you do not specify this parameter, the system automatically uses the <b>request ID</b> as the <b>client token</b>. The <b>request ID</b> may be different for each request.</para>
/// </remarks>
///
/// <b>Example:</b>
/// <para>123e4567-e89b-12d3-a456-426655440000</para>
/// </summary>
[NameInMap("ClientToken")]
[Validation(Required=false)]
public string ClientToken { get; set; }
[NameInMap("DryRun")]
[Validation(Required=false)]
public bool? DryRun { get; set; }
/// <summary>
/// <list type="bullet">
/// <item><description>When you modify DNAT entries of Internet NAT gateways, this parameter specifies the elastic IP addresses (EIPs) that are used to access the Internet.</description></item>
/// <item><description>When you modify DNAT entries of Virtual Private Cloud (VPC) NAT gateways, this parameter specifies the NAT IP addresses that are accessed by external networks.</description></item>
/// </list>
///
/// <b>Example:</b>
/// <para>116.85.XX.XX</para>
/// </summary>
[NameInMap("ExternalIp")]
[Validation(Required=false)]
public string ExternalIp { get; set; }
/// <summary>
/// <list type="bullet">
/// <item><description><para>The external port that is used to forward traffic when you modify DNAT entries of Internet NAT gateways.</para>
/// <list type="bullet">
/// <item><description>Valid values: <b>1</b> to <b>65535</b>.</description></item>
/// <item><description>If you want to modify the port range, separate port numbers with a forward slash (/), such as <c>10/20</c>.</description></item>
/// <item><description>If you need to modify <b>ExternalPort</b> and <b>InternalPort</b> at the same time, and <b>ExternalPort</b> specifies a port range, make sure that <b>InternalPort</b> also specifies a port range, and both ranges specify the same number of ports. For example, you can set <b>ExternalPort</b> to <c>10/20</c> and <b>InternalPort</b> to <c>80/90</c>.</description></item>
/// </list>
/// </description></item>
/// <item><description><para>The port that is accessed by external networks when you modify DNAT entries of VPC NAT gateways. Valid values: <b>1</b> to <b>65535</b>.</para>
/// </description></item>
/// </list>
///
/// <b>Example:</b>
/// <para>80</para>
/// </summary>
[NameInMap("ExternalPort")]
[Validation(Required=false)]
public string ExternalPort { get; set; }
/// <summary>
/// <para>The ID of the DNAT entry.</para>
/// <para>This parameter is required.</para>
///
/// <b>Example:</b>
/// <para>fwd-8vbn3bc8roygjp0gy****</para>
/// </summary>
[NameInMap("ForwardEntryId")]
[Validation(Required=false)]
public string ForwardEntryId { get; set; }
/// <summary>
/// <para>The new name of the DNAT entry.</para>
/// <para>The name must be 2 to 128 characters in length. It must start with a letter but cannot start with <c>http://</c> or <c>https://</c>.</para>
///
/// <b>Example:</b>
/// <para>test</para>
/// </summary>
[NameInMap("ForwardEntryName")]
[Validation(Required=false)]
public string ForwardEntryName { get; set; }
/// <summary>
/// <para>The ID of the DNAT table to which the DNAT entry belongs.</para>
/// <para>This parameter is required.</para>
///
/// <b>Example:</b>
/// <para>ftb-8vbx8xu2lqj9qb334****</para>
/// </summary>
[NameInMap("ForwardTableId")]
[Validation(Required=false)]
public string ForwardTableId { get; set; }
/// <summary>
/// <list type="bullet">
/// <item><description>The private IP address of the ECS instance that uses DNAT entries to communicate with the Internet when you modify DNAT entries of Internet NAT gateways.</description></item>
/// <item><description>The private IP address that uses DNAT entries to communicate when you modify DNAT entries of VPC NAT gateways.</description></item>
/// </list>
///
/// <b>Example:</b>
/// <para>10.0.0.78</para>
/// </summary>
[NameInMap("InternalIp")]
[Validation(Required=false)]
public string InternalIp { get; set; }
/// <summary>
/// <list type="bullet">
/// <item><description>The internal port or port range that is used to forward traffic when you modify DNAT entries of Internet NAT gateways. Valid values: <b>1</b> to <b>65535</b>.</description></item>
/// <item><description>The port of the destination ECS instance to be mapped when you modify DNAT entries of VPC NAT gateways. Valid values: <b>1</b> to <b>65535</b>.</description></item>
/// </list>
///
/// <b>Example:</b>
/// <para>80</para>
/// </summary>
[NameInMap("InternalPort")]
[Validation(Required=false)]
public string InternalPort { get; set; }
/// <summary>
/// <para>The protocol. Valid values:</para>
/// <list type="bullet">
/// <item><description><b>TCP</b></description></item>
/// <item><description><b>UDP</b></description></item>
/// <item><description><b>Any</b></description></item>
/// </list>
///
/// <b>Example:</b>
/// <para>TCP</para>
/// </summary>
[NameInMap("IpProtocol")]
[Validation(Required=false)]
public string IpProtocol { get; set; }
[NameInMap("OwnerAccount")]
[Validation(Required=false)]
public string OwnerAccount { get; set; }
[NameInMap("OwnerId")]
[Validation(Required=false)]
public long? OwnerId { get; set; }
/// <summary>
/// <para>Specifies whether to remove limits on the port range. Valid values:</para>
/// <list type="bullet">
/// <item><description><b>true</b></description></item>
/// <item><description><b>false</b> If an SNAT entry and a DNAT entry use the same public IP address, and you want to specify a port number greater than <c>1024</c>, set <c>PortBreak</c> to <c>true</c>.</description></item>
/// </list>
///
/// <b>Example:</b>
/// <para>false</para>
/// </summary>
[NameInMap("PortBreak")]
[Validation(Required=false)]
public bool? PortBreak { get; set; }
/// <summary>
/// <para>The region ID of the NAT gateway.</para>
/// <para>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</para>
/// <para>This parameter is required.</para>
///
/// <b>Example:</b>
/// <para>cn-hangzhou</para>
/// </summary>
[NameInMap("RegionId")]
[Validation(Required=false)]
public string RegionId { get; set; }
[NameInMap("ResourceOwnerAccount")]
[Validation(Required=false)]
public string ResourceOwnerAccount { get; set; }
[NameInMap("ResourceOwnerId")]
[Validation(Required=false)]
public long? ResourceOwnerId { get; set; }
}
}