@Generated(value="software.amazon.awssdk:codegen") public final class Condition extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Condition.Builder,Condition>
A JSON string which you can use to limit the event bus permissions you are granting to only accounts that fulfill the
condition. Currently, the only supported condition is membership in a certain Amazon Web Services organization. The
string must contain Type, Key, and Value fields. The Value field
specifies the ID of the Amazon Web Services organization. Following is an example value for Condition:
'{"Type" : "StringEquals", "Key": "aws:PrincipalOrgID", "Value": "o-1234567890"}'
| Modifier and Type | Class and Description |
|---|---|
static interface |
Condition.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Condition.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
key()
Specifies the key for the condition.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Condition.Builder> |
serializableBuilderClass() |
Condition.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
type()
Specifies the type of condition.
|
String |
value()
Specifies the value for the key.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String type()
Specifies the type of condition. Currently the only supported value is StringEquals.
StringEquals.public final String key()
Specifies the key for the condition. Currently the only supported key is aws:PrincipalOrgID.
aws:PrincipalOrgID.public final String value()
Specifies the value for the key. Currently, this must be the ID of the organization.
public Condition.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Condition.Builder,Condition>public static Condition.Builder builder()
public static Class<? extends Condition.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.