public static final class CreateFlowlogRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateFlowlogRequest |
build() |
CreateFlowlogRequest.Builder |
cenId(String cenId)
The ID of the CEN instance.
|
CreateFlowlogRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
CreateFlowlogRequest.Builder |
description(String description)
The description of the flow log.
|
CreateFlowlogRequest.Builder |
flowLogName(String flowLogName)
The flow log name.
|
CreateFlowlogRequest.Builder |
interval(Long interval)
The time window for collecting log data.
|
CreateFlowlogRequest.Builder |
logFormatString(String logFormatString)
The strings that define the fields in the flow log.
|
CreateFlowlogRequest.Builder |
logStoreName(String logStoreName)
The Logstore that stores the captured traffic data.
|
CreateFlowlogRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
CreateFlowlogRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
CreateFlowlogRequest.Builder |
projectName(String projectName)
The project that stores the captured traffic data.
|
CreateFlowlogRequest.Builder |
regionId(String regionId)
The ID of the region where the flow log is deployed.
|
CreateFlowlogRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
CreateFlowlogRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
CreateFlowlogRequest.Builder |
tag(List<CreateFlowlogRequest.Tag> tag)
The tags.
|
CreateFlowlogRequest.Builder |
transitRouterAttachmentId(String transitRouterAttachmentId)
The ID of the VPC connection, VPN connection, VBR connection, ECR connection, or inter-region connection.
|
CreateFlowlogRequest.Builder |
transitRouterId(String transitRouterId)
The ID of the transit router.
|
public CreateFlowlogRequest.Builder cenId(String cenId)
The ID of the CEN instance.
This parameter is required.
example:cen-7qthudw0ll6jmc****
public CreateFlowlogRequest.Builder clientToken(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 make sure that it is unique among all requests. The token can contain only ASCII characters.
example:If you do not set this parameter, ClientToken is set to the value of RequestId. The value of RequestId for each API request may be different.
123e4567-e89b-12d3-a456-42665544****
public CreateFlowlogRequest.Builder description(String description)
The description of the flow log.
The description is optional. If you enter a description, it must be 1 to 256 characters in length, and cannot start with http:// or https://.
example:myFlowlog
public CreateFlowlogRequest.Builder flowLogName(String flowLogName)
The flow log name.
The name can be empty or 1 to 128 characters in length, and cannot start with http:// or https://.
example:myFlowlog
public CreateFlowlogRequest.Builder interval(Long interval)
The time window for collecting log data. Unit: seconds. Valid values: 60 and 600. Default value: 600.
example:600
public CreateFlowlogRequest.Builder logFormatString(String logFormatString)
The strings that define the fields in the flow log.
Format: ${Field 1}${Field 2}${Field 3}...{Field n}
${srcaddr}${dstaddr}${bytes}
because ${srcaddr}${dstaddr}${bytes}
are required variables. For more information about the fields supported by flow logs, see Configure a flow log.${srcaddr}${dstaddr}${bytes}
public CreateFlowlogRequest.Builder logStoreName(String logStoreName)
The Logstore that stores the captured traffic data.
If a Logstore is already created in the selected region, enter the name of the Logstore.
If no Logstores are created in the selected region, enter a name and the system automatically creates a Logstore. The name of the Logstore. The name must meet the following requirements:
This parameter is required.
example:FlowLogStore
public CreateFlowlogRequest.Builder ownerAccount(String ownerAccount)
public CreateFlowlogRequest.Builder ownerId(Long ownerId)
public CreateFlowlogRequest.Builder projectName(String projectName)
The project that stores the captured traffic data.
If a project is already created in the selected region, enter the name of the project.
If no projects are created in the selected region, enter a name and the system automatically creates a project.
The project name must be unique in a region. You cannot change the name after the project is created. The name must meet the following requirements:
This parameter is required.
example:FlowLogProject
public CreateFlowlogRequest.Builder regionId(String regionId)
The ID of the region where the flow log is deployed.
You can call the DescribeChildInstanceRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
public CreateFlowlogRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateFlowlogRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateFlowlogRequest.Builder tag(List<CreateFlowlogRequest.Tag> tag)
The tags.
You can specify at most 20 tags.
public CreateFlowlogRequest.Builder transitRouterAttachmentId(String transitRouterAttachmentId)
The ID of the VPC connection, VPN connection, VBR connection, ECR connection, or inter-region connection.
If you create the flow log for a transfer router, skip this parameter.
example:tr-attach-r6g0m3epjehw57****
public CreateFlowlogRequest.Builder transitRouterId(String transitRouterId)
The ID of the transit router.
example:tr-bp1rmwxnk221e3fas****
public CreateFlowlogRequest build()
Copyright © 2025. All rights reserved.