public final class Rule
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 Key Management Service (KMS) 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 |
|---|
Rule() |
| Modifier and Type | Method and Description |
|---|---|
Rule |
clone() |
java.lang.String |
getAction()
Required
|
java.util.List<Condition> |
getConditions()
Additional restrictions that must be met
|
java.lang.String |
getDescription()
Human-readable description of the rule.
|
java.util.List<java.lang.String> |
getIn()
If one or more 'in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR
is in at least one of these entries.
|
java.util.List<LogConfig> |
getLogConfig()
The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG
action.
|
java.util.List<java.lang.String> |
getNotIn()
If one or more 'not_in' clauses are specified, the rule matches if the
PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
|
java.util.List<java.lang.String> |
getPermissions()
A permission is a string of form '..' (e.g., 'storage.buckets.list').
|
Rule |
set(java.lang.String fieldName,
java.lang.Object value) |
Rule |
setAction(java.lang.String action)
Required
|
Rule |
setConditions(java.util.List<Condition> conditions)
Additional restrictions that must be met
|
Rule |
setDescription(java.lang.String description)
Human-readable description of the rule.
|
Rule |
setIn(java.util.List<java.lang.String> in)
If one or more 'in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR
is in at least one of these entries.
|
Rule |
setLogConfig(java.util.List<LogConfig> logConfig)
The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG
action.
|
Rule |
setNotIn(java.util.List<java.lang.String> notIn)
If one or more 'not_in' clauses are specified, the rule matches if the
PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
|
Rule |
setPermissions(java.util.List<java.lang.String> permissions)
A permission is a string of form '..' (e.g., 'storage.buckets.list').
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic java.lang.String getAction()
null for nonepublic Rule setAction(java.lang.String action)
action - action or null for nonepublic java.util.List<Condition> getConditions()
null for nonepublic Rule setConditions(java.util.List<Condition> conditions)
conditions - conditions or null for nonepublic java.lang.String getDescription()
null for nonepublic Rule setDescription(java.lang.String description)
description - description or null for nonepublic java.util.List<java.lang.String> getIn()
null for nonepublic Rule setIn(java.util.List<java.lang.String> in)
in - in or null for nonepublic java.util.List<LogConfig> getLogConfig()
null for nonepublic Rule setLogConfig(java.util.List<LogConfig> logConfig)
logConfig - logConfig or null for nonepublic java.util.List<java.lang.String> getNotIn()
null for nonepublic Rule setNotIn(java.util.List<java.lang.String> notIn)
notIn - notIn or null for nonepublic java.util.List<java.lang.String> getPermissions()
null for nonepublic Rule setPermissions(java.util.List<java.lang.String> permissions)
permissions - permissions or null for nonepublic Rule set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic Rule clone()
clone in class com.google.api.client.json.GenericJson