public class CreateTrafficMirrorSessionRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
CreateTrafficMirrorSessionRequest.CreateTrafficMirrorSessionRequestTag |
限定符和类型 | 字段和说明 |
---|---|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
Boolean |
dryRun
Specifies whether to perform a dry run.
|
Boolean |
enabled
Specifies whether to enable the traffic mirror session.
|
String |
ownerAccount |
Long |
ownerId |
Integer |
packetLength
The maximum transmission unit.
|
Integer |
priority
The priority of the traffic mirror session.
|
String |
regionId
The ID of the region to which the traffic mirror session belongs.
|
String |
resourceGroupId
The ID of the resource group to which the mirrored traffic belongs.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
List<CreateTrafficMirrorSessionRequest.CreateTrafficMirrorSessionRequestTag> |
tag
The tag of the resource.
|
String |
trafficMirrorFilterId
The ID of the filter.
|
String |
trafficMirrorSessionDescription
The description of the traffic mirror session.
|
String |
trafficMirrorSessionName
The name of the traffic mirror session.
|
List<String> |
trafficMirrorSourceIds
The ID of the traffic mirror source.
|
String |
trafficMirrorTargetId
The ID of the traffic mirror destination.
|
String |
trafficMirrorTargetType
The type of the traffic mirror destination.
|
Integer |
virtualNetworkId
The VXLAN network identifier (VNI).
|
构造器和说明 |
---|
CreateTrafficMirrorSessionRequest() |
@NameInMap(value="ClientToken") public String clientToken
The client token that is used to ensure the idempotence of the request.
You can use the client to generate the value, but you must ensure that the value is unique among all requests. The client token can contain only ASCII characters.
example:If you do not set this parameter, the system uses RequestId as ClientToken. RequestId might be different for each API request.
0c593ea1-3bea-11e9-b96b-88e9fe63****
@NameInMap(value="DryRun") public Boolean dryRun
Specifies whether to perform a dry run. Valid values:
DryRunOperation
error code is returned.false
@NameInMap(value="Enabled") public Boolean enabled
Specifies whether to enable the traffic mirror session. Valid values:
false
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="PacketLength") public Integer packetLength
The maximum transmission unit.
Valid values: 64 to 9600. Default value: 1500.
example:1500
@NameInMap(value="Priority") public Integer priority
The priority of the traffic mirror session. Valid values: 1 to 32766.
A smaller value indicates a higher priority. You cannot specify identical priorities for traffic mirror sessions that are created in the same region by using the same account.
This parameter is required.
example:1
@NameInMap(value="RegionId") public String regionId
The ID of the region to which the traffic mirror session belongs. You can call the DescribeRegions operation to query the most recent region list. For more information about regions that support traffic mirroring, see Overview of traffic mirroring.
This parameter is required.
example:cn-hongkong
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group to which the mirrored traffic belongs.
example:rg-bp67acfmxazb4ph****
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="Tag") public List<CreateTrafficMirrorSessionRequest.CreateTrafficMirrorSessionRequestTag> tag
The tag of the resource.
@NameInMap(value="TrafficMirrorFilterId") public String trafficMirrorFilterId
The ID of the filter.
This parameter is required.
example:tmf-j6cmls82xnc86vtpe****
@NameInMap(value="TrafficMirrorSessionDescription") public String trafficMirrorSessionDescription
The description of the traffic mirror session.
The description must be 1 to 256 characters in length and cannot start with http://
or https://
.
This is a trafficmirrorsession.
@NameInMap(value="TrafficMirrorSessionName") public String trafficMirrorSessionName
The name of the traffic mirror session.
The name must be 1 to 128 characters in length, and cannot start with http://
or https://
.
test
@NameInMap(value="TrafficMirrorSourceIds") public List<String> trafficMirrorSourceIds
The ID of the traffic mirror source. You can specify only an elastic network interface (ENI) as the traffic mirror source. The default value of N is 1, which indicates that you can add only one traffic mirror source to a traffic mirror session.
This parameter is required.
example:eni-j6c2fp57q8rr47rp****
@NameInMap(value="TrafficMirrorTargetId") public String trafficMirrorTargetId
The ID of the traffic mirror destination. You can specify only an elastic network interface (ENI) or a Server Load Balancer (SLB) instance as a traffic mirror destination.
This parameter is required.
example:eni-j6c8znm5l1yt4sox****
@NameInMap(value="TrafficMirrorTargetType") public String trafficMirrorTargetType
The type of the traffic mirror destination. Valid values:
This parameter is required.
example:NetworkInterface
@NameInMap(value="VirtualNetworkId") public Integer virtualNetworkId
The VXLAN network identifier (VNI). Valid values: 0 to 16777215.
You can use VNIs to identify mirrored traffic from different sessions at the traffic mirror destination. You can specify a custom VNI or use a random VNI allocated by the system. If you want the system to randomly allocate a VNI, do not enter a value.
example:1
public static CreateTrafficMirrorSessionRequest build(Map<String,?> map) throws Exception
Exception
public CreateTrafficMirrorSessionRequest setClientToken(String clientToken)
public String getClientToken()
public CreateTrafficMirrorSessionRequest setDryRun(Boolean dryRun)
public Boolean getDryRun()
public CreateTrafficMirrorSessionRequest setEnabled(Boolean enabled)
public Boolean getEnabled()
public CreateTrafficMirrorSessionRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public CreateTrafficMirrorSessionRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public CreateTrafficMirrorSessionRequest setPacketLength(Integer packetLength)
public Integer getPacketLength()
public CreateTrafficMirrorSessionRequest setPriority(Integer priority)
public Integer getPriority()
public CreateTrafficMirrorSessionRequest setRegionId(String regionId)
public String getRegionId()
public CreateTrafficMirrorSessionRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public CreateTrafficMirrorSessionRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public CreateTrafficMirrorSessionRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public CreateTrafficMirrorSessionRequest setTag(List<CreateTrafficMirrorSessionRequest.CreateTrafficMirrorSessionRequestTag> tag)
public List<CreateTrafficMirrorSessionRequest.CreateTrafficMirrorSessionRequestTag> getTag()
public CreateTrafficMirrorSessionRequest setTrafficMirrorFilterId(String trafficMirrorFilterId)
public String getTrafficMirrorFilterId()
public CreateTrafficMirrorSessionRequest setTrafficMirrorSessionDescription(String trafficMirrorSessionDescription)
public String getTrafficMirrorSessionDescription()
public CreateTrafficMirrorSessionRequest setTrafficMirrorSessionName(String trafficMirrorSessionName)
public String getTrafficMirrorSessionName()
public CreateTrafficMirrorSessionRequest setTrafficMirrorSourceIds(List<String> trafficMirrorSourceIds)
public CreateTrafficMirrorSessionRequest setTrafficMirrorTargetId(String trafficMirrorTargetId)
public String getTrafficMirrorTargetId()
public CreateTrafficMirrorSessionRequest setTrafficMirrorTargetType(String trafficMirrorTargetType)
public String getTrafficMirrorTargetType()
public CreateTrafficMirrorSessionRequest setVirtualNetworkId(Integer virtualNetworkId)
public Integer getVirtualNetworkId()
Copyright © 2024. All rights reserved.