Class CfnApp.ResourceMappingProperty.Builder
java.lang.Object
software.amazon.awscdk.services.resiliencehub.CfnApp.ResourceMappingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApp.ResourceMappingProperty>
- Enclosing interface:
CfnApp.ResourceMappingProperty
@Stability(Stable)
public static final class CfnApp.ResourceMappingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApp.ResourceMappingProperty>
A builder for
CfnApp.ResourceMappingProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.eksSourceName
(String eksSourceName) Sets the value ofCfnApp.ResourceMappingProperty.getEksSourceName()
logicalStackName
(String logicalStackName) Sets the value ofCfnApp.ResourceMappingProperty.getLogicalStackName()
mappingType
(String mappingType) Sets the value ofCfnApp.ResourceMappingProperty.getMappingType()
physicalResourceId
(IResolvable physicalResourceId) Sets the value ofCfnApp.ResourceMappingProperty.getPhysicalResourceId()
physicalResourceId
(CfnApp.PhysicalResourceIdProperty physicalResourceId) Sets the value ofCfnApp.ResourceMappingProperty.getPhysicalResourceId()
resourceName
(String resourceName) Sets the value ofCfnApp.ResourceMappingProperty.getResourceName()
terraformSourceName
(String terraformSourceName) Sets the value ofCfnApp.ResourceMappingProperty.getTerraformSourceName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
mappingType
Sets the value ofCfnApp.ResourceMappingProperty.getMappingType()
- Parameters:
mappingType
- Specifies the type of resource mapping. This parameter is required.- Returns:
this
-
physicalResourceId
@Stability(Stable) public CfnApp.ResourceMappingProperty.Builder physicalResourceId(IResolvable physicalResourceId) Sets the value ofCfnApp.ResourceMappingProperty.getPhysicalResourceId()
- Parameters:
physicalResourceId
- Identifier of the physical resource. This parameter is required.- Returns:
this
-
physicalResourceId
@Stability(Stable) public CfnApp.ResourceMappingProperty.Builder physicalResourceId(CfnApp.PhysicalResourceIdProperty physicalResourceId) Sets the value ofCfnApp.ResourceMappingProperty.getPhysicalResourceId()
- Parameters:
physicalResourceId
- Identifier of the physical resource. This parameter is required.- Returns:
this
-
eksSourceName
@Stability(Stable) public CfnApp.ResourceMappingProperty.Builder eksSourceName(String eksSourceName) Sets the value ofCfnApp.ResourceMappingProperty.getEksSourceName()
- Parameters:
eksSourceName
- Name of the Amazon Elastic Kubernetes Service cluster and namespace that this resource is mapped to when themappingType
isEKS
.This parameter accepts values in "eks-cluster/namespace" format.
- Returns:
this
-
logicalStackName
@Stability(Stable) public CfnApp.ResourceMappingProperty.Builder logicalStackName(String logicalStackName) Sets the value ofCfnApp.ResourceMappingProperty.getLogicalStackName()
- Parameters:
logicalStackName
- Name of the AWS CloudFormation stack this resource is mapped to when themappingType
isCfnStack
.- Returns:
this
-
resourceName
Sets the value ofCfnApp.ResourceMappingProperty.getResourceName()
- Parameters:
resourceName
- Name of the resource that this resource is mapped to when themappingType
isResource
.- Returns:
this
-
terraformSourceName
@Stability(Stable) public CfnApp.ResourceMappingProperty.Builder terraformSourceName(String terraformSourceName) Sets the value ofCfnApp.ResourceMappingProperty.getTerraformSourceName()
- Parameters:
terraformSourceName
- Name of the Terraform source that this resource is mapped to when themappingType
isTerraform
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApp.ResourceMappingProperty>
- Returns:
- a new instance of
CfnApp.ResourceMappingProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-