Class CfnResourceDefinition.ResourceInstanceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.greengrass.CfnResourceDefinition.ResourceInstanceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourceDefinition.ResourceInstanceProperty>
- Enclosing interface:
CfnResourceDefinition.ResourceInstanceProperty
@Stability(Stable)
public static final class CfnResourceDefinition.ResourceInstanceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResourceDefinition.ResourceInstanceProperty>
A builder for
CfnResourceDefinition.ResourceInstanceProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnResourceDefinition.ResourceInstanceProperty.getId()
Sets the value ofCfnResourceDefinition.ResourceInstanceProperty.getName()
resourceDataContainer
(IResolvable resourceDataContainer) resourceDataContainer
(CfnResourceDefinition.ResourceDataContainerProperty resourceDataContainer)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Sets the value ofCfnResourceDefinition.ResourceInstanceProperty.getId()
- Parameters:
id
- A descriptive or arbitrary ID for the resource. This parameter is required. This value must be unique within the resource definition version. Maximum length is 128 characters with pattern[a-zA-Z0-9:_-]+
.- Returns:
this
-
name
Sets the value ofCfnResourceDefinition.ResourceInstanceProperty.getName()
- Parameters:
name
- The descriptive resource name, which is displayed on the AWS IoT Greengrass console. This parameter is required. Maximum length 128 characters with pattern [a-zA-Z0-9:_-]+. This must be unique within a Greengrass group.- Returns:
this
-
resourceDataContainer
@Stability(Stable) public CfnResourceDefinition.ResourceInstanceProperty.Builder resourceDataContainer(IResolvable resourceDataContainer) - Parameters:
resourceDataContainer
- A container for resource data. This parameter is required. The container takes only one of the following supported resource data types:LocalDeviceResourceData
,LocalVolumeResourceData
,SageMakerMachineLearningModelResourceData
,S3MachineLearningModelResourceData
, orSecretsManagerSecretResourceData
.Only one resource type can be defined for a
ResourceDataContainer
instance.- Returns:
this
-
resourceDataContainer
@Stability(Stable) public CfnResourceDefinition.ResourceInstanceProperty.Builder resourceDataContainer(CfnResourceDefinition.ResourceDataContainerProperty resourceDataContainer) - Parameters:
resourceDataContainer
- A container for resource data. This parameter is required. The container takes only one of the following supported resource data types:LocalDeviceResourceData
,LocalVolumeResourceData
,SageMakerMachineLearningModelResourceData
,S3MachineLearningModelResourceData
, orSecretsManagerSecretResourceData
.Only one resource type can be defined for a
ResourceDataContainer
instance.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnResourceDefinition.ResourceInstanceProperty>
- Returns:
- a new instance of
CfnResourceDefinition.ResourceInstanceProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-