Class CfnDeviceDefinitionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeviceDefinitionProps>
- Enclosing interface:
CfnDeviceDefinitionProps
CfnDeviceDefinitionProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.initialVersion
(IResolvable initialVersion) Sets the value ofCfnDeviceDefinitionProps.getInitialVersion()
initialVersion
(CfnDeviceDefinition.DeviceDefinitionVersionProperty initialVersion) Sets the value ofCfnDeviceDefinitionProps.getInitialVersion()
Sets the value ofCfnDeviceDefinitionProps.getName()
Sets the value ofCfnDeviceDefinitionProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnDeviceDefinitionProps.getName()
- Parameters:
name
- The name of the device definition. This parameter is required.- Returns:
this
-
initialVersion
@Stability(Stable) public CfnDeviceDefinitionProps.Builder initialVersion(IResolvable initialVersion) Sets the value ofCfnDeviceDefinitionProps.getInitialVersion()
- Parameters:
initialVersion
- The device definition version to include when the device definition is created. A device definition version contains a list ofdevice
property types.To associate a device definition version after the device definition is created, create an
AWS::Greengrass::DeviceDefinitionVersion
resource and specify the ID of this device definition.- Returns:
this
-
initialVersion
@Stability(Stable) public CfnDeviceDefinitionProps.Builder initialVersion(CfnDeviceDefinition.DeviceDefinitionVersionProperty initialVersion) Sets the value ofCfnDeviceDefinitionProps.getInitialVersion()
- Parameters:
initialVersion
- The device definition version to include when the device definition is created. A device definition version contains a list ofdevice
property types.To associate a device definition version after the device definition is created, create an
AWS::Greengrass::DeviceDefinitionVersion
resource and specify the ID of this device definition.- Returns:
this
-
tags
Sets the value ofCfnDeviceDefinitionProps.getTags()
- Parameters:
tags
- Application-specific metadata to attach to the device definition. You can use tags in IAM policies to control access to AWS IoT Greengrass resources. You can also use tags to categorize your resources. For more information, see Tagging Your AWS IoT Greengrass Resources in the Developer Guide .This
Json
property type is processed as a map of key-value pairs. It uses the following format, which is different from mostTags
implementations in AWS CloudFormation templates."Tags": { "KeyName0": "value", "KeyName1": "value", "KeyName2": "value" }
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDeviceDefinitionProps>
- Returns:
- a new instance of
CfnDeviceDefinitionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-