Class CfnEventBusPolicy.ConditionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.events.CfnEventBusPolicy.ConditionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventBusPolicy.ConditionProperty>
- Enclosing interface:
CfnEventBusPolicy.ConditionProperty
@Stability(Stable)
public static final class CfnEventBusPolicy.ConditionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventBusPolicy.ConditionProperty>
A builder for
CfnEventBusPolicy.ConditionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnEventBusPolicy.ConditionProperty.getKey()Sets the value ofCfnEventBusPolicy.ConditionProperty.getType()Sets the value ofCfnEventBusPolicy.ConditionProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
key
Sets the value ofCfnEventBusPolicy.ConditionProperty.getKey()- Parameters:
key- Specifies the value for the key. Currently, this must be the ID of the organization.- Returns:
this
-
type
Sets the value ofCfnEventBusPolicy.ConditionProperty.getType()- Parameters:
type- Specifies the type of condition. Currently the only supported value is StringEquals.- Returns:
this
-
value
Sets the value ofCfnEventBusPolicy.ConditionProperty.getValue()- Parameters:
value- Specifies the key for the condition. Currently the only supported key is aws:PrincipalOrgID.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEventBusPolicy.ConditionProperty>- Returns:
- a new instance of
CfnEventBusPolicy.ConditionProperty - Throws:
NullPointerException- if any required attribute was not provided
-