public static final class DescribeFlowLogsResponseBody.FlowLog.Builder extends Object
构造器和说明 |
---|
Builder() |
限定符和类型 | 方法和说明 |
---|---|
DescribeFlowLogsResponseBody.FlowLog.Builder |
aggregationInterval(Integer aggregationInterval)
The sampling interval of the flow log.
|
DescribeFlowLogsResponseBody.FlowLog |
build() |
DescribeFlowLogsResponseBody.FlowLog.Builder |
businessStatus(String businessStatus)
The business status of the flow log.
|
DescribeFlowLogsResponseBody.FlowLog.Builder |
creationTime(String creationTime)
The time when the flow log was created.
|
DescribeFlowLogsResponseBody.FlowLog.Builder |
description(String description)
The description of the flow log.
|
DescribeFlowLogsResponseBody.FlowLog.Builder |
flowLogDeliverErrorMessage(String flowLogDeliverErrorMessage)
If the flow log failed to be delivered, you can troubleshoot based on the following error messages that may be returned:
* **UnavaliableTarget**: The Logstore of SLS is unavailable and cannot receive logs.
|
DescribeFlowLogsResponseBody.FlowLog.Builder |
flowLogDeliverStatus(String flowLogDeliverStatus)
Indicates whether the flow log is delivered.
|
DescribeFlowLogsResponseBody.FlowLog.Builder |
flowLogId(String flowLogId)
The ID of the flow log.
|
DescribeFlowLogsResponseBody.FlowLog.Builder |
flowLogName(String flowLogName)
The name of the flow log.
|
DescribeFlowLogsResponseBody.FlowLog.Builder |
logStoreName(String logStoreName)
The Logstore that stores the captured traffic data.
|
DescribeFlowLogsResponseBody.FlowLog.Builder |
projectName(String projectName)
The project that manages the captured traffic data.
|
DescribeFlowLogsResponseBody.FlowLog.Builder |
regionId(String regionId)
The region ID of the flow log.
|
DescribeFlowLogsResponseBody.FlowLog.Builder |
resourceGroupId(String resourceGroupId)
The ID of the resource group to which the flow log belongs.
|
DescribeFlowLogsResponseBody.FlowLog.Builder |
resourceId(String resourceId)
The ID of the resource from which traffic is captured.
|
DescribeFlowLogsResponseBody.FlowLog.Builder |
resourceType(String resourceType)
The type of the resource from which traffic is captured.
|
DescribeFlowLogsResponseBody.FlowLog.Builder |
serviceType(String serviceType)
The hosting type of the cloud service.
|
DescribeFlowLogsResponseBody.FlowLog.Builder |
status(String status)
The status of the flow log.
|
DescribeFlowLogsResponseBody.FlowLog.Builder |
tags(DescribeFlowLogsResponseBody.Tags tags)
The list of tags.
|
DescribeFlowLogsResponseBody.FlowLog.Builder |
trafficPath(DescribeFlowLogsResponseBody.TrafficPath trafficPath)
The sampling scope of the traffic that is collected.
|
DescribeFlowLogsResponseBody.FlowLog.Builder |
trafficType(String trafficType)
The type of traffic that is captured by the flow log.
|
public DescribeFlowLogsResponseBody.FlowLog.Builder aggregationInterval(Integer aggregationInterval)
public DescribeFlowLogsResponseBody.FlowLog.Builder businessStatus(String businessStatus)
* **Normal** * **FinancialLocked**
public DescribeFlowLogsResponseBody.FlowLog.Builder creationTime(String creationTime)
public DescribeFlowLogsResponseBody.FlowLog.Builder description(String description)
public DescribeFlowLogsResponseBody.FlowLog.Builder flowLogDeliverErrorMessage(String flowLogDeliverErrorMessage)
* **UnavaliableTarget**: The Logstore of SLS is unavailable and cannot receive logs. Check whether the Logstore is available. * **ProjectNotExist**: The project of SLS does not exist. We recommend that you delete the project and create a new one. * **UnknownError**: An internal error occurred. Try again later.
public DescribeFlowLogsResponseBody.FlowLog.Builder flowLogDeliverStatus(String flowLogDeliverStatus)
- **SUCCESS** - **FAILED**
public DescribeFlowLogsResponseBody.FlowLog.Builder flowLogId(String flowLogId)
public DescribeFlowLogsResponseBody.FlowLog.Builder flowLogName(String flowLogName)
public DescribeFlowLogsResponseBody.FlowLog.Builder logStoreName(String logStoreName)
public DescribeFlowLogsResponseBody.FlowLog.Builder projectName(String projectName)
public DescribeFlowLogsResponseBody.FlowLog.Builder regionId(String regionId)
public DescribeFlowLogsResponseBody.FlowLog.Builder resourceGroupId(String resourceGroupId)
public DescribeFlowLogsResponseBody.FlowLog.Builder resourceId(String resourceId)
public DescribeFlowLogsResponseBody.FlowLog.Builder resourceType(String resourceType)
* **NetworkInterface**: ENI * **VSwitch**: all ENIs in a vSwitch * **VPC**: all ENIs in a VPC
public DescribeFlowLogsResponseBody.FlowLog.Builder serviceType(String serviceType)
* This parameter can be empty, which indicates that the flow log is created by the user. * If this parameter is not empty, the value is set to **sls**. The value sls indicates that the flow log is created in the Simple Log Service (SLS) console. > A flow log that is created in the SLS console can be displayed in the VPC list. However, you cannot modify, start, stop, or delete the flow log in the VPC console. If you want to manage the flow log, you can log on to the [SLS console](https://sls.console.aliyun.com) and perform required operations.
public DescribeFlowLogsResponseBody.FlowLog.Builder status(String status)
* **Active** * **Activating** * **Inactive**
public DescribeFlowLogsResponseBody.FlowLog.Builder tags(DescribeFlowLogsResponseBody.Tags tags)
public DescribeFlowLogsResponseBody.FlowLog.Builder trafficPath(DescribeFlowLogsResponseBody.TrafficPath trafficPath)
* **all** (default value): all traffic * **internetGateway**: Internet traffic > By default, the traffic path feature is unavailable. To use this feature, [submit a ticket](https://workorder-intl.console.aliyun.com/?spm=5176.11182188.console-base-top.dworkorder.18ae4882n3v6ZW#/ticket/createIndex).
public DescribeFlowLogsResponseBody.FlowLog.Builder trafficType(String trafficType)
* **All**: all traffic * **Allow**: traffic that is allowed by access control * **Drop**: traffic that is denied by access control
public DescribeFlowLogsResponseBody.FlowLog build()
Copyright © 2024. All rights reserved.