Class CfnPlan.EventSourceMappingProperty.Builder
java.lang.Object
software.amazon.awscdk.services.arcregionswitch.CfnPlan.EventSourceMappingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPlan.EventSourceMappingProperty>
- Enclosing interface:
CfnPlan.EventSourceMappingProperty
@Stability(Stable)
public static final class CfnPlan.EventSourceMappingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPlan.EventSourceMappingProperty>
A builder for
CfnPlan.EventSourceMappingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnPlan.EventSourceMappingProperty.getArn()build()Builds the configured instance.crossAccountRole(String crossAccountRole) Sets the value ofCfnPlan.EventSourceMappingProperty.getCrossAccountRole()externalId(String externalId) Sets the value ofCfnPlan.EventSourceMappingProperty.getExternalId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
arn
Sets the value ofCfnPlan.EventSourceMappingProperty.getArn()- Parameters:
arn- the value to be set. This parameter is required.- Returns:
this
-
crossAccountRole
@Stability(Stable) public CfnPlan.EventSourceMappingProperty.Builder crossAccountRole(String crossAccountRole) Sets the value ofCfnPlan.EventSourceMappingProperty.getCrossAccountRole()- Parameters:
crossAccountRole- the value to be set.- Returns:
this
-
externalId
Sets the value ofCfnPlan.EventSourceMappingProperty.getExternalId()- Parameters:
externalId- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPlan.EventSourceMappingProperty>- Returns:
- a new instance of
CfnPlan.EventSourceMappingProperty - Throws:
NullPointerException- if any required attribute was not provided
-