All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.compute.model.FirewallPolicyRuleMatcher Maven / Gradle / Ivy

/*
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.compute.model;

/**
 * Represents a match condition that incoming traffic is evaluated against. Exactly one field must
 * be specified.
 *
 * 

This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: * https://developers.google.com/api-client-library/java/google-http-java-client/json *

* * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class FirewallPolicyRuleMatcher extends com.google.api.client.json.GenericJson { /** * Address groups which should be matched against the traffic destination. Maximum number of * destination address groups is 10. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List destAddressGroups; /** * CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List destIpRanges; /** * Region codes whose IP addresses will be used to match for destination of traffic. Should be * specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" * Maximum number of dest region codes allowed is 5000. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List destRegionCodes; /** * Names of Network Threat Intelligence lists. The IPs in these lists will be matched against * traffic destination. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List destThreatIntelligences; /** * Pairs of IP protocols and ports that the rule should match. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List layer4Configs; /** * Address groups which should be matched against the traffic source. Maximum number of source * address groups is 10. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List srcAddressGroups; /** * CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List srcIpRanges; /** * Region codes whose IP addresses will be used to match for source of traffic. Should be * specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" * Maximum number of source region codes allowed is 5000. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List srcRegionCodes; /** * List of secure tag values, which should be matched at the source of the traffic. For INGRESS * rule, if all the srcSecureTag are INEFFECTIVE, and there is no srcIpRange, this rule will be * ignored. Maximum number of source tag values allowed is 256. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List srcSecureTags; /** * Names of Network Threat Intelligence lists. The IPs in these lists will be matched against * traffic source. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List srcThreatIntelligences; /** * Address groups which should be matched against the traffic destination. Maximum number of * destination address groups is 10. * @return value or {@code null} for none */ public java.util.List getDestAddressGroups() { return destAddressGroups; } /** * Address groups which should be matched against the traffic destination. Maximum number of * destination address groups is 10. * @param destAddressGroups destAddressGroups or {@code null} for none */ public FirewallPolicyRuleMatcher setDestAddressGroups(java.util.List destAddressGroups) { this.destAddressGroups = destAddressGroups; return this; } /** * CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000. * @return value or {@code null} for none */ public java.util.List getDestIpRanges() { return destIpRanges; } /** * CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000. * @param destIpRanges destIpRanges or {@code null} for none */ public FirewallPolicyRuleMatcher setDestIpRanges(java.util.List destIpRanges) { this.destIpRanges = destIpRanges; return this; } /** * Region codes whose IP addresses will be used to match for destination of traffic. Should be * specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" * Maximum number of dest region codes allowed is 5000. * @return value or {@code null} for none */ public java.util.List getDestRegionCodes() { return destRegionCodes; } /** * Region codes whose IP addresses will be used to match for destination of traffic. Should be * specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" * Maximum number of dest region codes allowed is 5000. * @param destRegionCodes destRegionCodes or {@code null} for none */ public FirewallPolicyRuleMatcher setDestRegionCodes(java.util.List destRegionCodes) { this.destRegionCodes = destRegionCodes; return this; } /** * Names of Network Threat Intelligence lists. The IPs in these lists will be matched against * traffic destination. * @return value or {@code null} for none */ public java.util.List getDestThreatIntelligences() { return destThreatIntelligences; } /** * Names of Network Threat Intelligence lists. The IPs in these lists will be matched against * traffic destination. * @param destThreatIntelligences destThreatIntelligences or {@code null} for none */ public FirewallPolicyRuleMatcher setDestThreatIntelligences(java.util.List destThreatIntelligences) { this.destThreatIntelligences = destThreatIntelligences; return this; } /** * Pairs of IP protocols and ports that the rule should match. * @return value or {@code null} for none */ public java.util.List getLayer4Configs() { return layer4Configs; } /** * Pairs of IP protocols and ports that the rule should match. * @param layer4Configs layer4Configs or {@code null} for none */ public FirewallPolicyRuleMatcher setLayer4Configs(java.util.List layer4Configs) { this.layer4Configs = layer4Configs; return this; } /** * Address groups which should be matched against the traffic source. Maximum number of source * address groups is 10. * @return value or {@code null} for none */ public java.util.List getSrcAddressGroups() { return srcAddressGroups; } /** * Address groups which should be matched against the traffic source. Maximum number of source * address groups is 10. * @param srcAddressGroups srcAddressGroups or {@code null} for none */ public FirewallPolicyRuleMatcher setSrcAddressGroups(java.util.List srcAddressGroups) { this.srcAddressGroups = srcAddressGroups; return this; } /** * CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000. * @return value or {@code null} for none */ public java.util.List getSrcIpRanges() { return srcIpRanges; } /** * CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000. * @param srcIpRanges srcIpRanges or {@code null} for none */ public FirewallPolicyRuleMatcher setSrcIpRanges(java.util.List srcIpRanges) { this.srcIpRanges = srcIpRanges; return this; } /** * Region codes whose IP addresses will be used to match for source of traffic. Should be * specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" * Maximum number of source region codes allowed is 5000. * @return value or {@code null} for none */ public java.util.List getSrcRegionCodes() { return srcRegionCodes; } /** * Region codes whose IP addresses will be used to match for source of traffic. Should be * specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" * Maximum number of source region codes allowed is 5000. * @param srcRegionCodes srcRegionCodes or {@code null} for none */ public FirewallPolicyRuleMatcher setSrcRegionCodes(java.util.List srcRegionCodes) { this.srcRegionCodes = srcRegionCodes; return this; } /** * List of secure tag values, which should be matched at the source of the traffic. For INGRESS * rule, if all the srcSecureTag are INEFFECTIVE, and there is no srcIpRange, this rule will be * ignored. Maximum number of source tag values allowed is 256. * @return value or {@code null} for none */ public java.util.List getSrcSecureTags() { return srcSecureTags; } /** * List of secure tag values, which should be matched at the source of the traffic. For INGRESS * rule, if all the srcSecureTag are INEFFECTIVE, and there is no srcIpRange, this rule will be * ignored. Maximum number of source tag values allowed is 256. * @param srcSecureTags srcSecureTags or {@code null} for none */ public FirewallPolicyRuleMatcher setSrcSecureTags(java.util.List srcSecureTags) { this.srcSecureTags = srcSecureTags; return this; } /** * Names of Network Threat Intelligence lists. The IPs in these lists will be matched against * traffic source. * @return value or {@code null} for none */ public java.util.List getSrcThreatIntelligences() { return srcThreatIntelligences; } /** * Names of Network Threat Intelligence lists. The IPs in these lists will be matched against * traffic source. * @param srcThreatIntelligences srcThreatIntelligences or {@code null} for none */ public FirewallPolicyRuleMatcher setSrcThreatIntelligences(java.util.List srcThreatIntelligences) { this.srcThreatIntelligences = srcThreatIntelligences; return this; } @Override public FirewallPolicyRuleMatcher set(String fieldName, Object value) { return (FirewallPolicyRuleMatcher) super.set(fieldName, value); } @Override public FirewallPolicyRuleMatcher clone() { return (FirewallPolicyRuleMatcher) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy