public final class Principal extends 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 Compute Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description | 
|---|
Principal()  | 
| Modifier and Type | Method and Description | 
|---|---|
Principal | 
clone()  | 
String | 
getCondition()
An expression to specify custom condition. 
 | 
List<String> | 
getGroups()
The groups the principal belongs to. 
 | 
List<String> | 
getIps()
IPv4 or IPv6 address or range (In CIDR format) 
 | 
List<String> | 
getNamespaces()
The namespaces. 
 | 
List<String> | 
getNotGroups()
Negate of groups. 
 | 
List<String> | 
getNotIps()
Negate of IPs. 
 | 
List<String> | 
getNotNamespaces()
Negate of namespaces. 
 | 
List<String> | 
getNotUsers()
Negate of users. 
 | 
Map<String,String> | 
getProperties()
A map of Istio attribute to expected values. 
 | 
List<String> | 
getUsers()
The user names/IDs or service accounts. 
 | 
Principal | 
set(String fieldName,
   Object value)  | 
Principal | 
setCondition(String condition)
An expression to specify custom condition. 
 | 
Principal | 
setGroups(List<String> groups)
The groups the principal belongs to. 
 | 
Principal | 
setIps(List<String> ips)
IPv4 or IPv6 address or range (In CIDR format) 
 | 
Principal | 
setNamespaces(List<String> namespaces)
The namespaces. 
 | 
Principal | 
setNotGroups(List<String> notGroups)
Negate of groups. 
 | 
Principal | 
setNotIps(List<String> notIps)
Negate of IPs. 
 | 
Principal | 
setNotNamespaces(List<String> notNamespaces)
Negate of namespaces. 
 | 
Principal | 
setNotUsers(List<String> notUsers)
Negate of users. 
 | 
Principal | 
setProperties(Map<String,String> properties)
A map of Istio attribute to expected values. 
 | 
Principal | 
setUsers(List<String> users)
The user names/IDs or service accounts. 
 | 
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getCondition()
null for nonepublic Principal setCondition(String condition)
condition - condition or null for nonepublic List<String> getGroups()
null for nonepublic Principal setGroups(List<String> groups)
groups - groups or null for nonepublic List<String> getIps()
null for nonepublic Principal setIps(List<String> ips)
ips - ips or null for nonepublic List<String> getNamespaces()
null for nonepublic Principal setNamespaces(List<String> namespaces)
namespaces - namespaces or null for nonepublic List<String> getNotGroups()
null for nonepublic Principal setNotGroups(List<String> notGroups)
notGroups - notGroups or null for nonepublic List<String> getNotIps()
null for nonepublic Principal setNotIps(List<String> notIps)
notIps - notIps or null for nonepublic List<String> getNotNamespaces()
null for nonepublic Principal setNotNamespaces(List<String> notNamespaces)
notNamespaces - notNamespaces or null for nonepublic List<String> getNotUsers()
null for nonepublic Principal setNotUsers(List<String> notUsers)
notUsers - notUsers or null for nonepublic Map<String,String> getProperties()
null for nonepublic Principal setProperties(Map<String,String> properties)
properties - properties or null for nonepublic List<String> getUsers()
null for nonepublic Principal setUsers(List<String> users)
users - users or null for nonepublic Principal set(String fieldName, Object value)
set in class GenericJsonpublic Principal clone()
clone in class GenericJsonCopyright © 2011–2020 Google. All rights reserved.