Modifier and Type | Method and Description |
---|---|
Policy.Builder |
addAllAuditConfigs(List<AuditConfig> auditConfigs)
Specifies cloud audit logging configuration for this policy.
|
Policy.Builder |
addAllBindings(List<Binding> bindings)
Associates a list of `members` to a `role`.
|
Policy.Builder |
addAllRules(List<Rule> rules)
If more than one rule is specified, the rules are applied in the following manner: - All
matching LOG rules are always applied.
|
Policy.Builder |
addAuditConfigs(AuditConfig auditConfigs)
Specifies cloud audit logging configuration for this policy.
|
Policy.Builder |
addBindings(Binding bindings)
Associates a list of `members` to a `role`.
|
Policy.Builder |
addRules(Rule rules)
If more than one rule is specified, the rules are applied in the following manner: - All
matching LOG rules are always applied.
|
Policy |
build() |
Policy.Builder |
clone() |
List<AuditConfig> |
getAuditConfigsList()
Specifies cloud audit logging configuration for this policy.
|
List<Binding> |
getBindingsList()
Associates a list of `members` to a `role`.
|
String |
getEtag()
`etag` is used for optimistic concurrency control as a way to help prevent simultaneous
updates of a policy from overwriting each other.
|
Boolean |
getIamOwned() |
List<Rule> |
getRulesList()
If more than one rule is specified, the rules are applied in the following manner: - All
matching LOG rules are always applied.
|
Integer |
getVersion()
Deprecated.
|
Policy.Builder |
mergeFrom(Policy other) |
Policy.Builder |
setEtag(String etag)
`etag` is used for optimistic concurrency control as a way to help prevent simultaneous
updates of a policy from overwriting each other.
|
Policy.Builder |
setIamOwned(Boolean iamOwned) |
Policy.Builder |
setVersion(Integer version)
Deprecated.
|
public Policy.Builder mergeFrom(Policy other)
public List<AuditConfig> getAuditConfigsList()
public Policy.Builder addAllAuditConfigs(List<AuditConfig> auditConfigs)
public Policy.Builder addAuditConfigs(AuditConfig auditConfigs)
public List<Binding> getBindingsList()
public Policy.Builder addAllBindings(List<Binding> bindings)
public Policy.Builder addBindings(Binding bindings)
public String getEtag()
If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten blindly.
public Policy.Builder setEtag(String etag)
If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten blindly.
public Boolean getIamOwned()
public Policy.Builder setIamOwned(Boolean iamOwned)
public List<Rule> getRulesList()
public Policy.Builder addAllRules(List<Rule> rules)
public Policy.Builder addRules(Rule rules)
public Integer getVersion()
public Policy.Builder setVersion(Integer version)
public Policy build()
public Policy.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.