Package software.amazon.awscdk.core
Class CfnResourceProps.Builder
java.lang.Object
software.amazon.awscdk.core.CfnResourceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourceProps>
- Enclosing interface:
- CfnResourceProps
@Stability(Stable)
public static final class CfnResourceProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResourceProps>
A builder for
CfnResourceProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.properties(Map<String, ? extends Object> properties) Sets the value ofCfnResourceProps.getProperties()Sets the value ofCfnResourceProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnResourceProps.getType()- Parameters:
type- CloudFormation resource type (e.g.AWS::S3::Bucket). This parameter is required.- Returns:
this
-
properties
@Stability(Stable) public CfnResourceProps.Builder properties(Map<String, ? extends Object> properties) Sets the value ofCfnResourceProps.getProperties()- Parameters:
properties- Resource properties.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnResourceProps>- Returns:
- a new instance of
CfnResourceProps - Throws:
NullPointerException- if any required attribute was not provided
-