com.google.api.services.cloudasset.v1.model.GoogleCloudAssetV1Constraint Maven / Gradle / Ivy
The 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.cloudasset.v1.model;
/**
* The definition of a constraint.
*
* 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 Cloud Asset 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 GoogleCloudAssetV1Constraint extends com.google.api.client.json.GenericJson {
/**
* Defines this constraint as being a BooleanConstraint.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleCloudAssetV1BooleanConstraint booleanConstraint;
/**
* The evaluation behavior of this constraint in the absence of 'Policy'.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String constraintDefault;
/**
* Detailed description of what this `Constraint` controls as well as how and where it is
* enforced.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String description;
/**
* The human readable name of the constraint.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String displayName;
/**
* Defines this constraint as being a ListConstraint.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleCloudAssetV1ListConstraint listConstraint;
/**
* The unique name of the constraint. Format of the name should be *
* `constraints/{constraint_name}` For example, `constraints/compute.disableSerialPortAccess`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;
/**
* Defines this constraint as being a BooleanConstraint.
* @return value or {@code null} for none
*/
public GoogleCloudAssetV1BooleanConstraint getBooleanConstraint() {
return booleanConstraint;
}
/**
* Defines this constraint as being a BooleanConstraint.
* @param booleanConstraint booleanConstraint or {@code null} for none
*/
public GoogleCloudAssetV1Constraint setBooleanConstraint(GoogleCloudAssetV1BooleanConstraint booleanConstraint) {
this.booleanConstraint = booleanConstraint;
return this;
}
/**
* The evaluation behavior of this constraint in the absence of 'Policy'.
* @return value or {@code null} for none
*/
public java.lang.String getConstraintDefault() {
return constraintDefault;
}
/**
* The evaluation behavior of this constraint in the absence of 'Policy'.
* @param constraintDefault constraintDefault or {@code null} for none
*/
public GoogleCloudAssetV1Constraint setConstraintDefault(java.lang.String constraintDefault) {
this.constraintDefault = constraintDefault;
return this;
}
/**
* Detailed description of what this `Constraint` controls as well as how and where it is
* enforced.
* @return value or {@code null} for none
*/
public java.lang.String getDescription() {
return description;
}
/**
* Detailed description of what this `Constraint` controls as well as how and where it is
* enforced.
* @param description description or {@code null} for none
*/
public GoogleCloudAssetV1Constraint setDescription(java.lang.String description) {
this.description = description;
return this;
}
/**
* The human readable name of the constraint.
* @return value or {@code null} for none
*/
public java.lang.String getDisplayName() {
return displayName;
}
/**
* The human readable name of the constraint.
* @param displayName displayName or {@code null} for none
*/
public GoogleCloudAssetV1Constraint setDisplayName(java.lang.String displayName) {
this.displayName = displayName;
return this;
}
/**
* Defines this constraint as being a ListConstraint.
* @return value or {@code null} for none
*/
public GoogleCloudAssetV1ListConstraint getListConstraint() {
return listConstraint;
}
/**
* Defines this constraint as being a ListConstraint.
* @param listConstraint listConstraint or {@code null} for none
*/
public GoogleCloudAssetV1Constraint setListConstraint(GoogleCloudAssetV1ListConstraint listConstraint) {
this.listConstraint = listConstraint;
return this;
}
/**
* The unique name of the constraint. Format of the name should be *
* `constraints/{constraint_name}` For example, `constraints/compute.disableSerialPortAccess`.
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}
/**
* The unique name of the constraint. Format of the name should be *
* `constraints/{constraint_name}` For example, `constraints/compute.disableSerialPortAccess`.
* @param name name or {@code null} for none
*/
public GoogleCloudAssetV1Constraint setName(java.lang.String name) {
this.name = name;
return this;
}
@Override
public GoogleCloudAssetV1Constraint set(String fieldName, Object value) {
return (GoogleCloudAssetV1Constraint) super.set(fieldName, value);
}
@Override
public GoogleCloudAssetV1Constraint clone() {
return (GoogleCloudAssetV1Constraint) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy