Class ComputePacketMirroringFilter.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_packet_mirroring.ComputePacketMirroringFilter.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputePacketMirroringFilter>
- Enclosing interface:
- ComputePacketMirroringFilter
@Stability(Stable) public static final class ComputePacketMirroringFilter.Builder extends Object implements software.amazon.jsii.Builder<ComputePacketMirroringFilter>
A builder forComputePacketMirroringFilter
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputePacketMirroringFilterbuild()Builds the configured instance.ComputePacketMirroringFilter.BuildercidrRanges(List<String> cidrRanges)Sets the value ofComputePacketMirroringFilter.getCidrRanges()ComputePacketMirroringFilter.Builderdirection(String direction)Sets the value ofComputePacketMirroringFilter.getDirection()ComputePacketMirroringFilter.BuilderipProtocols(List<String> ipProtocols)Sets the value ofComputePacketMirroringFilter.getIpProtocols()
-
-
-
Method Detail
-
cidrRanges
@Stability(Stable) public ComputePacketMirroringFilter.Builder cidrRanges(List<String> cidrRanges)
Sets the value ofComputePacketMirroringFilter.getCidrRanges()- Parameters:
cidrRanges- IP CIDR ranges that apply as a filter on the source (ingress) or destination (egress) IP in the IP header. Only IPv4 is supported. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_packet_mirroring#cidr_ranges ComputePacketMirroring#cidr_ranges}- Returns:
this
-
direction
@Stability(Stable) public ComputePacketMirroringFilter.Builder direction(String direction)
Sets the value ofComputePacketMirroringFilter.getDirection()- Parameters:
direction- Direction of traffic to mirror. Default value: "BOTH" Possible values: ["INGRESS", "EGRESS", "BOTH"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_packet_mirroring#direction ComputePacketMirroring#direction}- Returns:
this
-
ipProtocols
@Stability(Stable) public ComputePacketMirroringFilter.Builder ipProtocols(List<String> ipProtocols)
Sets the value ofComputePacketMirroringFilter.getIpProtocols()- Parameters:
ipProtocols- Possible IP protocols including tcp, udp, icmp and esp. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_packet_mirroring#ip_protocols ComputePacketMirroring#ip_protocols}- Returns:
this
-
build
@Stability(Stable) public ComputePacketMirroringFilter build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputePacketMirroringFilter>- Returns:
- a new instance of
ComputePacketMirroringFilter - Throws:
NullPointerException- if any required attribute was not provided
-
-