Class ComputeFirewallPolicyRuleMatch.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_firewall_policy_rule.ComputeFirewallPolicyRuleMatch.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeFirewallPolicyRuleMatch>
- Enclosing interface:
- ComputeFirewallPolicyRuleMatch
@Stability(Stable) public static final class ComputeFirewallPolicyRuleMatch.Builder extends Object implements software.amazon.jsii.Builder<ComputeFirewallPolicyRuleMatch>
A builder forComputeFirewallPolicyRuleMatch
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
layer4Configs
@Stability(Stable) public ComputeFirewallPolicyRuleMatch.Builder layer4Configs(com.hashicorp.cdktf.IResolvable layer4Configs)
Sets the value ofComputeFirewallPolicyRuleMatch.getLayer4Configs()- Parameters:
layer4Configs- layer4_configs block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_firewall_policy_rule#layer4_configs ComputeFirewallPolicyRule#layer4_configs}- Returns:
this
-
layer4Configs
@Stability(Stable) public ComputeFirewallPolicyRuleMatch.Builder layer4Configs(List<? extends ComputeFirewallPolicyRuleMatchLayer4Configs> layer4Configs)
Sets the value ofComputeFirewallPolicyRuleMatch.getLayer4Configs()- Parameters:
layer4Configs- layer4_configs block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_firewall_policy_rule#layer4_configs ComputeFirewallPolicyRule#layer4_configs}- Returns:
this
-
destAddressGroups
@Stability(Stable) public ComputeFirewallPolicyRuleMatch.Builder destAddressGroups(List<String> destAddressGroups)
Sets the value ofComputeFirewallPolicyRuleMatch.getDestAddressGroups()- Parameters:
destAddressGroups- Address groups which should be matched against the traffic destination. Maximum number of destination address groups is 10. Destination address groups is only supported in Egress rules. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_firewall_policy_rule#dest_address_groups ComputeFirewallPolicyRule#dest_address_groups}- Returns:
this
-
destFqdns
@Stability(Stable) public ComputeFirewallPolicyRuleMatch.Builder destFqdns(List<String> destFqdns)
Sets the value ofComputeFirewallPolicyRuleMatch.getDestFqdns()- Parameters:
destFqdns- Domain names that will be used to match against the resolved domain name of destination of traffic. Can only be specified if DIRECTION is egress. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_firewall_policy_rule#dest_fqdns ComputeFirewallPolicyRule#dest_fqdns}- Returns:
this
-
destIpRanges
@Stability(Stable) public ComputeFirewallPolicyRuleMatch.Builder destIpRanges(List<String> destIpRanges)
Sets the value ofComputeFirewallPolicyRuleMatch.getDestIpRanges()- Parameters:
destIpRanges- CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 256. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_firewall_policy_rule#dest_ip_ranges ComputeFirewallPolicyRule#dest_ip_ranges}- Returns:
this
-
destRegionCodes
@Stability(Stable) public ComputeFirewallPolicyRuleMatch.Builder destRegionCodes(List<String> destRegionCodes)
Sets the value ofComputeFirewallPolicyRuleMatch.getDestRegionCodes()- Parameters:
destRegionCodes- The Unicode country codes whose IP addresses will be used to match against the source of traffic. Can only be specified if DIRECTION is egress. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_firewall_policy_rule#dest_region_codes ComputeFirewallPolicyRule#dest_region_codes}- Returns:
this
-
destThreatIntelligences
@Stability(Stable) public ComputeFirewallPolicyRuleMatch.Builder destThreatIntelligences(List<String> destThreatIntelligences)
Sets the value ofComputeFirewallPolicyRuleMatch.getDestThreatIntelligences()- Parameters:
destThreatIntelligences- Name of the Google Cloud Threat Intelligence list. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_firewall_policy_rule#dest_threat_intelligences ComputeFirewallPolicyRule#dest_threat_intelligences}- Returns:
this
-
srcAddressGroups
@Stability(Stable) public ComputeFirewallPolicyRuleMatch.Builder srcAddressGroups(List<String> srcAddressGroups)
Sets the value ofComputeFirewallPolicyRuleMatch.getSrcAddressGroups()- Parameters:
srcAddressGroups- Address groups which should be matched against the traffic source. Maximum number of source address groups is 10. Source address groups is only supported in Ingress rules. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_firewall_policy_rule#src_address_groups ComputeFirewallPolicyRule#src_address_groups}- Returns:
this
-
srcFqdns
@Stability(Stable) public ComputeFirewallPolicyRuleMatch.Builder srcFqdns(List<String> srcFqdns)
Sets the value ofComputeFirewallPolicyRuleMatch.getSrcFqdns()- Parameters:
srcFqdns- Domain names that will be used to match against the resolved domain name of source of traffic. Can only be specified if DIRECTION is ingress. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_firewall_policy_rule#src_fqdns ComputeFirewallPolicyRule#src_fqdns}- Returns:
this
-
srcIpRanges
@Stability(Stable) public ComputeFirewallPolicyRuleMatch.Builder srcIpRanges(List<String> srcIpRanges)
Sets the value ofComputeFirewallPolicyRuleMatch.getSrcIpRanges()- Parameters:
srcIpRanges- CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 256. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_firewall_policy_rule#src_ip_ranges ComputeFirewallPolicyRule#src_ip_ranges}- Returns:
this
-
srcRegionCodes
@Stability(Stable) public ComputeFirewallPolicyRuleMatch.Builder srcRegionCodes(List<String> srcRegionCodes)
Sets the value ofComputeFirewallPolicyRuleMatch.getSrcRegionCodes()- Parameters:
srcRegionCodes- The Unicode country codes whose IP addresses will be used to match against the source of traffic. Can only be specified if DIRECTION is ingress. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_firewall_policy_rule#src_region_codes ComputeFirewallPolicyRule#src_region_codes}- Returns:
this
-
srcThreatIntelligences
@Stability(Stable) public ComputeFirewallPolicyRuleMatch.Builder srcThreatIntelligences(List<String> srcThreatIntelligences)
Sets the value ofComputeFirewallPolicyRuleMatch.getSrcThreatIntelligences()- Parameters:
srcThreatIntelligences- Name of the Google Cloud Threat Intelligence list. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_firewall_policy_rule#src_threat_intelligences ComputeFirewallPolicyRule#src_threat_intelligences}- Returns:
this
-
build
@Stability(Stable) public ComputeFirewallPolicyRuleMatch build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeFirewallPolicyRuleMatch>- Returns:
- a new instance of
ComputeFirewallPolicyRuleMatch - Throws:
NullPointerException- if any required attribute was not provided
-
-