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