Class CfnApp.PhysicalResourceIdProperty.Builder
java.lang.Object
software.amazon.awscdk.services.resiliencehub.CfnApp.PhysicalResourceIdProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApp.PhysicalResourceIdProperty>
- Enclosing interface:
CfnApp.PhysicalResourceIdProperty
@Stability(Stable)
public static final class CfnApp.PhysicalResourceIdProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApp.PhysicalResourceIdProperty>
A builder for
CfnApp.PhysicalResourceIdProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionawsAccountId
(String awsAccountId) Sets the value ofCfnApp.PhysicalResourceIdProperty.getAwsAccountId()
Sets the value ofCfnApp.PhysicalResourceIdProperty.getAwsRegion()
build()
Builds the configured instance.identifier
(String identifier) Sets the value ofCfnApp.PhysicalResourceIdProperty.getIdentifier()
Sets the value ofCfnApp.PhysicalResourceIdProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
identifier
Sets the value ofCfnApp.PhysicalResourceIdProperty.getIdentifier()
- Parameters:
identifier
- The identifier of the physical resource. This parameter is required.- Returns:
this
-
type
Sets the value ofCfnApp.PhysicalResourceIdProperty.getType()
- Parameters:
type
- Specifies the type of physical resource identifier. This parameter is required.- Arn - The resource identifier is an Amazon Resource Name (ARN) .
- Native - The resource identifier is an AWS Resilience Hub -native identifier.
- Returns:
this
-
awsAccountId
@Stability(Stable) public CfnApp.PhysicalResourceIdProperty.Builder awsAccountId(String awsAccountId) Sets the value ofCfnApp.PhysicalResourceIdProperty.getAwsAccountId()
- Parameters:
awsAccountId
- The AWS account that owns the physical resource.- Returns:
this
-
awsRegion
Sets the value ofCfnApp.PhysicalResourceIdProperty.getAwsRegion()
- Parameters:
awsRegion
- The AWS Region that the physical resource is located in.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApp.PhysicalResourceIdProperty>
- Returns:
- a new instance of
CfnApp.PhysicalResourceIdProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-