Class CfnResourceDefinitionVersion.ResourceInstanceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.greengrass.CfnResourceDefinitionVersion.ResourceInstanceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourceDefinitionVersion.ResourceInstanceProperty>
- Enclosing interface:
- CfnResourceDefinitionVersion.ResourceInstanceProperty
@Stability(Stable)
public static final class CfnResourceDefinitionVersion.ResourceInstanceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResourceDefinitionVersion.ResourceInstanceProperty>
A builder for
CfnResourceDefinitionVersion.ResourceInstanceProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnResourceDefinitionVersion.ResourceInstanceProperty.getId()Sets the value ofCfnResourceDefinitionVersion.ResourceInstanceProperty.getName()resourceDataContainer(IResolvable resourceDataContainer) resourceDataContainer(CfnResourceDefinitionVersion.ResourceDataContainerProperty resourceDataContainer)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
@Stability(Stable) public CfnResourceDefinitionVersion.ResourceInstanceProperty.Builder id(String id) Sets the value ofCfnResourceDefinitionVersion.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
@Stability(Stable) public CfnResourceDefinitionVersion.ResourceInstanceProperty.Builder name(String name) Sets the value ofCfnResourceDefinitionVersion.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 CfnResourceDefinitionVersion.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
ResourceDataContainerinstance.- Returns:
this
-
resourceDataContainer
@Stability(Stable) public CfnResourceDefinitionVersion.ResourceInstanceProperty.Builder resourceDataContainer(CfnResourceDefinitionVersion.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
ResourceDataContainerinstance.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnResourceDefinitionVersion.ResourceInstanceProperty>- Returns:
- a new instance of
CfnResourceDefinitionVersion.ResourceInstanceProperty - Throws:
NullPointerException- if any required attribute was not provided
-