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

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

/*
 * Copyright 2010 Google Inc.
 *
 * 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/google/apis-client-generator/
 * (build: 2017-02-15 17:18:02 UTC)
 * on 2017-08-07 at 19:39:09 UTC 
 * 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 SecurityPolicyRuleMatcher extends com.google.api.client.json.GenericJson { /** * The configuration options available when specifying versioned_expr. This field must be * specified if versioned_expr is specified and cannot be specified if versioned_expr is not * specified. * The value may be {@code null}. */ @com.google.api.client.util.Key private SecurityPolicyRuleMatcherConfig config; /** * CIDR IP address range. Only IPv4 is supported. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List srcIpRanges; /** * Match by country or region code. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List srcRegionCodes; /** * Preconfigured versioned expression. If this field is specified, config must also be specified. * Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must * specify the corresponding src_ip_range field in config. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String versionedExpr; /** * The configuration options available when specifying versioned_expr. This field must be * specified if versioned_expr is specified and cannot be specified if versioned_expr is not * specified. * @return value or {@code null} for none */ public SecurityPolicyRuleMatcherConfig getConfig() { return config; } /** * The configuration options available when specifying versioned_expr. This field must be * specified if versioned_expr is specified and cannot be specified if versioned_expr is not * specified. * @param config config or {@code null} for none */ public SecurityPolicyRuleMatcher setConfig(SecurityPolicyRuleMatcherConfig config) { this.config = config; return this; } /** * CIDR IP address range. Only IPv4 is supported. * @return value or {@code null} for none */ public java.util.List getSrcIpRanges() { return srcIpRanges; } /** * CIDR IP address range. Only IPv4 is supported. * @param srcIpRanges srcIpRanges or {@code null} for none */ public SecurityPolicyRuleMatcher setSrcIpRanges(java.util.List srcIpRanges) { this.srcIpRanges = srcIpRanges; return this; } /** * Match by country or region code. * @return value or {@code null} for none */ public java.util.List getSrcRegionCodes() { return srcRegionCodes; } /** * Match by country or region code. * @param srcRegionCodes srcRegionCodes or {@code null} for none */ public SecurityPolicyRuleMatcher setSrcRegionCodes(java.util.List srcRegionCodes) { this.srcRegionCodes = srcRegionCodes; return this; } /** * Preconfigured versioned expression. If this field is specified, config must also be specified. * Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must * specify the corresponding src_ip_range field in config. * @return value or {@code null} for none */ public java.lang.String getVersionedExpr() { return versionedExpr; } /** * Preconfigured versioned expression. If this field is specified, config must also be specified. * Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must * specify the corresponding src_ip_range field in config. * @param versionedExpr versionedExpr or {@code null} for none */ public SecurityPolicyRuleMatcher setVersionedExpr(java.lang.String versionedExpr) { this.versionedExpr = versionedExpr; return this; } @Override public SecurityPolicyRuleMatcher set(String fieldName, Object value) { return (SecurityPolicyRuleMatcher) super.set(fieldName, value); } @Override public SecurityPolicyRuleMatcher clone() { return (SecurityPolicyRuleMatcher) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy