public static final class FlowLogProps.Builder
extends java.lang.Object
FlowLogProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
FlowLogProps |
build()
Builds the configured instance.
|
FlowLogProps.Builder |
destination(FlowLogDestination destination)
Sets the value of
FlowLogOptions.getDestination() |
FlowLogProps.Builder |
flowLogName(java.lang.String flowLogName)
Sets the value of
FlowLogProps.getFlowLogName() |
FlowLogProps.Builder |
resourceType(FlowLogResourceType resourceType)
Sets the value of
FlowLogProps.getResourceType() |
FlowLogProps.Builder |
trafficType(FlowLogTrafficType trafficType)
Sets the value of
FlowLogOptions.getTrafficType() |
public FlowLogProps.Builder resourceType(FlowLogResourceType resourceType)
FlowLogProps.getResourceType()
resourceType
- The type of resource for which to create the flow log. This parameter is required.this
public FlowLogProps.Builder flowLogName(java.lang.String flowLogName)
FlowLogProps.getFlowLogName()
flowLogName
- The name of the FlowLog.
It is not recommended to use an explicit name.this
public FlowLogProps.Builder destination(FlowLogDestination destination)
FlowLogOptions.getDestination()
destination
- Specifies the type of destination to which the flow log data is to be published.
Flow log data can be published to CloudWatch Logs or Amazon S3this
public FlowLogProps.Builder trafficType(FlowLogTrafficType trafficType)
FlowLogOptions.getTrafficType()
trafficType
- The type of traffic to log.
You can log traffic that the resource accepts or rejects, or all traffic.this
public FlowLogProps build()
FlowLogProps
java.lang.NullPointerException
- if any required attribute was not provided