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()
Specifies the format of the policy.
|
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)
Specifies the format of the policy.
|
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.
public Policy.Builder setEtag(String etag)
If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten.
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()
Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.
Policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset.
public Policy.Builder setVersion(Integer version)
Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.
Policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset.
public Policy build()
public Policy.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.