Class CfnPlan.RegionSwitchPlanConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.arcregionswitch.CfnPlan.RegionSwitchPlanConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPlan.RegionSwitchPlanConfigurationProperty>
- Enclosing interface:
CfnPlan.RegionSwitchPlanConfigurationProperty
@Stability(Stable)
public static final class CfnPlan.RegionSwitchPlanConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPlan.RegionSwitchPlanConfigurationProperty>
A builder for
CfnPlan.RegionSwitchPlanConfigurationProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnPlan.RegionSwitchPlanConfigurationProperty.getArn()
build()
Builds the configured instance.crossAccountRole
(String crossAccountRole) Sets the value ofCfnPlan.RegionSwitchPlanConfigurationProperty.getCrossAccountRole()
externalId
(String externalId) Sets the value ofCfnPlan.RegionSwitchPlanConfigurationProperty.getExternalId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
arn
Sets the value ofCfnPlan.RegionSwitchPlanConfigurationProperty.getArn()
- Parameters:
arn
- The Amazon Resource Name (ARN) of the plan configuration. This parameter is required.- Returns:
this
-
crossAccountRole
@Stability(Stable) public CfnPlan.RegionSwitchPlanConfigurationProperty.Builder crossAccountRole(String crossAccountRole) Sets the value ofCfnPlan.RegionSwitchPlanConfigurationProperty.getCrossAccountRole()
- Parameters:
crossAccountRole
- The cross account role for the configuration.- Returns:
this
-
externalId
@Stability(Stable) public CfnPlan.RegionSwitchPlanConfigurationProperty.Builder externalId(String externalId) Sets the value ofCfnPlan.RegionSwitchPlanConfigurationProperty.getExternalId()
- Parameters:
externalId
- The external ID (secret key) for the configuration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPlan.RegionSwitchPlanConfigurationProperty>
- Returns:
- a new instance of
CfnPlan.RegionSwitchPlanConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-