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

com.google.api.services.securitycenter.v1.model.GoogleCloudSecuritycenterV2PolicyDriftDetails Maven / Gradle / Ivy

There is a newer version: v1-rev20241111-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.securitycenter.v1.model;

/**
 * The policy field that violates the deployed posture and its expected and detected values.
 *
 * 

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 Security Command Center 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 GoogleCloudSecuritycenterV2PolicyDriftDetails extends com.google.api.client.json.GenericJson { /** * The detected value that violates the deployed posture, for example, `false` or * `allowed_values={"projects/22831892"}`. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String detectedValue; /** * The value of this field that was configured in a posture, for example, `true` or * `allowed_values={"projects/29831892"}`. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String expectedValue; /** * The name of the updated field, for example constraint.implementation.policy_rules[0].enforce * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String field; /** * The detected value that violates the deployed posture, for example, `false` or * `allowed_values={"projects/22831892"}`. * @return value or {@code null} for none */ public java.lang.String getDetectedValue() { return detectedValue; } /** * The detected value that violates the deployed posture, for example, `false` or * `allowed_values={"projects/22831892"}`. * @param detectedValue detectedValue or {@code null} for none */ public GoogleCloudSecuritycenterV2PolicyDriftDetails setDetectedValue(java.lang.String detectedValue) { this.detectedValue = detectedValue; return this; } /** * The value of this field that was configured in a posture, for example, `true` or * `allowed_values={"projects/29831892"}`. * @return value or {@code null} for none */ public java.lang.String getExpectedValue() { return expectedValue; } /** * The value of this field that was configured in a posture, for example, `true` or * `allowed_values={"projects/29831892"}`. * @param expectedValue expectedValue or {@code null} for none */ public GoogleCloudSecuritycenterV2PolicyDriftDetails setExpectedValue(java.lang.String expectedValue) { this.expectedValue = expectedValue; return this; } /** * The name of the updated field, for example constraint.implementation.policy_rules[0].enforce * @return value or {@code null} for none */ public java.lang.String getField() { return field; } /** * The name of the updated field, for example constraint.implementation.policy_rules[0].enforce * @param field field or {@code null} for none */ public GoogleCloudSecuritycenterV2PolicyDriftDetails setField(java.lang.String field) { this.field = field; return this; } @Override public GoogleCloudSecuritycenterV2PolicyDriftDetails set(String fieldName, Object value) { return (GoogleCloudSecuritycenterV2PolicyDriftDetails) super.set(fieldName, value); } @Override public GoogleCloudSecuritycenterV2PolicyDriftDetails clone() { return (GoogleCloudSecuritycenterV2PolicyDriftDetails) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy