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