public final class Constraint
extends com.google.api.client.json.GenericJson
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 Google Cloud Resource Manager API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
Constraint() |
| Modifier and Type | Method and Description |
|---|---|
Constraint |
clone() |
BooleanConstraint |
getBooleanConstraint()
Defines this constraint as being a BooleanConstraint.
|
java.lang.String |
getConstraintDefault()
The evaluation behavior of this constraint in the absense of 'Policy'.
|
java.lang.String |
getDescription()
Detailed description of what this `Constraint` controls as well as how and where it is
enforced.
|
java.lang.String |
getDisplayName()
The human readable name.
|
ListConstraint |
getListConstraint()
Defines this constraint as being a ListConstraint.
|
java.lang.String |
getName()
Immutable value, required to globally be unique.
|
java.lang.Integer |
getVersion()
Version of the `Constraint`.
|
Constraint |
set(java.lang.String fieldName,
java.lang.Object value) |
Constraint |
setBooleanConstraint(BooleanConstraint booleanConstraint)
Defines this constraint as being a BooleanConstraint.
|
Constraint |
setConstraintDefault(java.lang.String constraintDefault)
The evaluation behavior of this constraint in the absense of 'Policy'.
|
Constraint |
setDescription(java.lang.String description)
Detailed description of what this `Constraint` controls as well as how and where it is
enforced.
|
Constraint |
setDisplayName(java.lang.String displayName)
The human readable name.
|
Constraint |
setListConstraint(ListConstraint listConstraint)
Defines this constraint as being a ListConstraint.
|
Constraint |
setName(java.lang.String name)
Immutable value, required to globally be unique.
|
Constraint |
setVersion(java.lang.Integer version)
Version of the `Constraint`.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic BooleanConstraint getBooleanConstraint()
null for nonepublic Constraint setBooleanConstraint(BooleanConstraint booleanConstraint)
booleanConstraint - booleanConstraint or null for nonepublic java.lang.String getConstraintDefault()
null for nonepublic Constraint setConstraintDefault(java.lang.String constraintDefault)
constraintDefault - constraintDefault or null for nonepublic java.lang.String getDescription()
null for nonepublic Constraint setDescription(java.lang.String description)
description - description or null for nonepublic java.lang.String getDisplayName()
null for nonepublic Constraint setDisplayName(java.lang.String displayName)
displayName - displayName or null for nonepublic ListConstraint getListConstraint()
null for nonepublic Constraint setListConstraint(ListConstraint listConstraint)
listConstraint - listConstraint or null for nonepublic java.lang.String getName()
null for nonepublic Constraint setName(java.lang.String name)
name - name or null for nonepublic java.lang.Integer getVersion()
null for nonepublic Constraint setVersion(java.lang.Integer version)
version - version or null for nonepublic Constraint set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic Constraint clone()
clone in class com.google.api.client.json.GenericJson