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

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

There is a newer version: v1-rev20240903-2.0.0
Show newest version
/*
 * 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 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; /** * User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as * origin.ip, source.region_code and contents in the request header. Expressions containing * `evaluateThreatIntelligence` require Cloud Armor Managed Protection Plus tier and are not * supported in Edge Policies nor in Regional Policies. Expressions containing * `evaluatePreconfiguredExpr('sourceiplist-*')` require Cloud Armor Managed Protection Plus tier * and are only supported in Global Security Policies. * The value may be {@code null}. */ @com.google.api.client.util.Key private Expr expr; /** * The configuration options available when specifying a user defined CEVAL expression (i.e., * 'expr'). * The value may be {@code null}. */ @com.google.api.client.util.Key private SecurityPolicyRuleMatcherExprOptions exprOptions; /** * 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; } /** * User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as * origin.ip, source.region_code and contents in the request header. Expressions containing * `evaluateThreatIntelligence` require Cloud Armor Managed Protection Plus tier and are not * supported in Edge Policies nor in Regional Policies. Expressions containing * `evaluatePreconfiguredExpr('sourceiplist-*')` require Cloud Armor Managed Protection Plus tier * and are only supported in Global Security Policies. * @return value or {@code null} for none */ public Expr getExpr() { return expr; } /** * User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as * origin.ip, source.region_code and contents in the request header. Expressions containing * `evaluateThreatIntelligence` require Cloud Armor Managed Protection Plus tier and are not * supported in Edge Policies nor in Regional Policies. Expressions containing * `evaluatePreconfiguredExpr('sourceiplist-*')` require Cloud Armor Managed Protection Plus tier * and are only supported in Global Security Policies. * @param expr expr or {@code null} for none */ public SecurityPolicyRuleMatcher setExpr(Expr expr) { this.expr = expr; return this; } /** * The configuration options available when specifying a user defined CEVAL expression (i.e., * 'expr'). * @return value or {@code null} for none */ public SecurityPolicyRuleMatcherExprOptions getExprOptions() { return exprOptions; } /** * The configuration options available when specifying a user defined CEVAL expression (i.e., * 'expr'). * @param exprOptions exprOptions or {@code null} for none */ public SecurityPolicyRuleMatcher setExprOptions(SecurityPolicyRuleMatcherExprOptions exprOptions) { this.exprOptions = exprOptions; 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 - 2024 Weber Informatics LLC | Privacy Policy