Class CfnDeviceDefinitionMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeviceDefinitionMixinProps>
- Enclosing interface:
CfnDeviceDefinitionMixinProps
CfnDeviceDefinitionMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnDeviceDefinitionMixinProps.getInitialVersion()initialVersion(IResolvable initialVersion) Sets the value ofCfnDeviceDefinitionMixinProps.getInitialVersion()Sets the value ofCfnDeviceDefinitionMixinProps.getName()Sets the value ofCfnDeviceDefinitionMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
initialVersion
@Stability(Stable) public CfnDeviceDefinitionMixinProps.Builder initialVersion(IResolvable initialVersion) Sets the value ofCfnDeviceDefinitionMixinProps.getInitialVersion()- Parameters:
initialVersion- The device definition version to include when the device definition is created. A device definition version contains a list ofdeviceproperty types.To associate a device definition version after the device definition is created, create an
AWS::Greengrass::DeviceDefinitionVersionresource and specify the ID of this device definition.- Returns:
this
-
initialVersion
@Stability(Stable) public CfnDeviceDefinitionMixinProps.Builder initialVersion(CfnDeviceDefinitionPropsMixin.DeviceDefinitionVersionProperty initialVersion) Sets the value ofCfnDeviceDefinitionMixinProps.getInitialVersion()- Parameters:
initialVersion- The device definition version to include when the device definition is created. A device definition version contains a list ofdeviceproperty types.To associate a device definition version after the device definition is created, create an
AWS::Greengrass::DeviceDefinitionVersionresource and specify the ID of this device definition.- Returns:
this
-
name
Sets the value ofCfnDeviceDefinitionMixinProps.getName()- Parameters:
name- The name of the device definition.- Returns:
this
-
tags
Sets the value ofCfnDeviceDefinitionMixinProps.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
Jsonproperty type is processed as a map of key-value pairs. It uses the following format, which is different from mostTagsimplementations in CloudFormation templates."Tags": { "KeyName0": "value", "KeyName1": "value", "KeyName2": "value" }- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDeviceDefinitionMixinProps>- Returns:
- a new instance of
CfnDeviceDefinitionMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-