@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 AWS organization. The string must
contain Type
, Key
, and Value
fields. The Value
field specifies
the ID of the AWS 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) |
<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()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
type()
Specifies the type of condition.
|
String |
value()
Specifies the value for the key.
|
copy
public String type()
Specifies the type of condition. Currently the only supported value is StringEquals
.
StringEquals
.public String key()
Specifies the key for the condition. Currently the only supported key is aws:PrincipalOrgID
.
aws:PrincipalOrgID
.public String value()
Specifies the value for the key. Currently, this must be the ID of the organization.
public Condition.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Condition.Builder,Condition>
public static Condition.Builder builder()
public static Class<? extends Condition.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.