@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Condition extends Object implements Serializable, Cloneable, StructuredPojo
A JSON string that you can use to limit the event bus permissions that you're 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. The following is an example value for Condition
:
'{"Type" : "StringEquals", "Key": "aws:PrincipalOrgID", "Value": "o-1234567890"}'
Constructor and Description |
---|
Condition() |
Modifier and Type | Method and Description |
---|---|
Condition |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The key for the condition.
|
String |
getType()
The type of condition.
|
String |
getValue()
The value for the key.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKey(String key)
The key for the condition.
|
void |
setType(String type)
The type of condition.
|
void |
setValue(String value)
The value for the key.
|
String |
toString()
Returns a string representation of this object.
|
Condition |
withKey(String key)
The key for the condition.
|
Condition |
withType(String type)
The type of condition.
|
Condition |
withValue(String value)
The value for the key.
|
public void setType(String type)
The type of condition. Currently, the only supported value is StringEquals
.
type
- The type of condition. Currently, the only supported value is StringEquals
.public String getType()
The type of condition. Currently, the only supported value is StringEquals
.
StringEquals
.public Condition withType(String type)
The type of condition. Currently, the only supported value is StringEquals
.
type
- The type of condition. Currently, the only supported value is StringEquals
.public void setKey(String key)
The key for the condition. Currently, the only supported key is aws:PrincipalOrgID
.
key
- The key for the condition. Currently, the only supported key is aws:PrincipalOrgID
.public String getKey()
The key for the condition. Currently, the only supported key is aws:PrincipalOrgID
.
aws:PrincipalOrgID
.public Condition withKey(String key)
The key for the condition. Currently, the only supported key is aws:PrincipalOrgID
.
key
- The key for the condition. Currently, the only supported key is aws:PrincipalOrgID
.public void setValue(String value)
The value for the key. Currently, this must be the ID of the organization.
value
- The value for the key. Currently, this must be the ID of the organization.public String getValue()
The value for the key. Currently, this must be the ID of the organization.
public Condition withValue(String value)
The value for the key. Currently, this must be the ID of the organization.
value
- The value for the key. Currently, this must be the ID of the organization.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.