Class Binding (2.37.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.

publicabstractclassBinding

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

Inheritance

java.lang.Object >Binding

Static Methods

newBuilder()

publicstaticBinding.BuildernewBuilder()

Create a new Binding.Builder

Returns
TypeDescription
Binding.Builder

Constructors

Binding()

publicBinding()

Methods

getCondition()

publicabstractConditiongetCondition()

Get IAM Policy Binding Condition

Returns
TypeDescription
Condition

getMembers()

publicabstractImmutableList<String>getMembers()

Get IAM Policy Binding Members

Returns
TypeDescription
com.google.common.collect.ImmutableList<String>

getRole()

publicabstractStringgetRole()

Get IAM Policy Binding Role

Returns
TypeDescription
String

toBuilder()

publicabstractBinding.BuildertoBuilder()

Create a Binding.Builder from an existing Binding

Returns
TypeDescription
Binding.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.