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 SummaryConstructors
- 
Method SummaryModifier 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- 
Builderpublic Builder()
 
- 
- 
Method Details- 
idSets 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
 
- 
nameSets 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, or- SecretsManagerSecretResourceData.- Only one resource type can be defined for a - ResourceDataContainerinstance.
- 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, or- SecretsManagerSecretResourceData.- Only one resource type can be defined for a - ResourceDataContainerinstance.
- Returns:
- this
 
- 
buildBuilds the configured instance.- Specified by:
- buildin interface- software.amazon.jsii.Builder<CfnResourceDefinition.ResourceInstanceProperty>
- Returns:
- a new instance of CfnResourceDefinition.ResourceInstanceProperty
- Throws:
- NullPointerException- if any required attribute was not provided
 
 
-