Class Condition (2.33.0)

Beta

This library is covered by thePre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see thelaunch stage descriptions.

publicabstractclassCondition

Class for Identity and Access Management (IAM) policies. IAM policies are used to specify access settings for Cloud Platform resources. A policy is a list of bindings. A binding assigns a set of identities to a role, where the identities can be user accounts, Google groups, Google domains, and service accounts. A role is a named list of permissions defined by IAM.See Also:Policy,IAM Conditions

Inheritance

java.lang.Object >Condition

Static Methods

newBuilder()

publicstaticCondition.BuildernewBuilder()

Create a new Condition.Builder

Returns
TypeDescription
Condition.Builder

Constructors

Condition()

publicCondition()

Methods

getDescription()

publicabstractStringgetDescription()

Get IAM Policy Binding Condition Description

Returns
TypeDescription
String

getExpression()

publicabstractStringgetExpression()

Get IAM Policy Binding Condition Expression

Returns
TypeDescription
String

getTitle()

publicabstractStringgetTitle()

Get IAM Policy Binding Condition Title

Returns
TypeDescription
String

toBuilder()

publicabstractCondition.BuildertoBuilder()

Create a new Condition.Builder from an existing Condition

Returns
TypeDescription
Condition.Builder

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-01-31 UTC.