/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace LookoutforVision { namespace Model { /** *

Configuration information for the AWS IoT Greengrass component created in a * model packaging job. For more information, see StartModelPackagingJob. *

You can't specify a component with the same * ComponentName and Componentversion as an existing * component with the same component name and component version.

*

See Also:

AWS * API Reference

*/ class GreengrassConfiguration { public: AWS_LOOKOUTFORVISION_API GreengrassConfiguration(); AWS_LOOKOUTFORVISION_API GreengrassConfiguration(Aws::Utils::Json::JsonView jsonValue); AWS_LOOKOUTFORVISION_API GreengrassConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_LOOKOUTFORVISION_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Additional compiler options for the Greengrass component. Currently, only * NVIDIA Graphics Processing Units (GPU) and CPU accelerators are supported. If * you specify TargetDevice, don't specify * CompilerOptions.

For more information, see Compiler * options in the Amazon Lookout for Vision Developer Guide.

*/ inline const Aws::String& GetCompilerOptions() const{ return m_compilerOptions; } /** *

Additional compiler options for the Greengrass component. Currently, only * NVIDIA Graphics Processing Units (GPU) and CPU accelerators are supported. If * you specify TargetDevice, don't specify * CompilerOptions.

For more information, see Compiler * options in the Amazon Lookout for Vision Developer Guide.

*/ inline bool CompilerOptionsHasBeenSet() const { return m_compilerOptionsHasBeenSet; } /** *

Additional compiler options for the Greengrass component. Currently, only * NVIDIA Graphics Processing Units (GPU) and CPU accelerators are supported. If * you specify TargetDevice, don't specify * CompilerOptions.

For more information, see Compiler * options in the Amazon Lookout for Vision Developer Guide.

*/ inline void SetCompilerOptions(const Aws::String& value) { m_compilerOptionsHasBeenSet = true; m_compilerOptions = value; } /** *

Additional compiler options for the Greengrass component. Currently, only * NVIDIA Graphics Processing Units (GPU) and CPU accelerators are supported. If * you specify TargetDevice, don't specify * CompilerOptions.

For more information, see Compiler * options in the Amazon Lookout for Vision Developer Guide.

*/ inline void SetCompilerOptions(Aws::String&& value) { m_compilerOptionsHasBeenSet = true; m_compilerOptions = std::move(value); } /** *

Additional compiler options for the Greengrass component. Currently, only * NVIDIA Graphics Processing Units (GPU) and CPU accelerators are supported. If * you specify TargetDevice, don't specify * CompilerOptions.

For more information, see Compiler * options in the Amazon Lookout for Vision Developer Guide.

*/ inline void SetCompilerOptions(const char* value) { m_compilerOptionsHasBeenSet = true; m_compilerOptions.assign(value); } /** *

Additional compiler options for the Greengrass component. Currently, only * NVIDIA Graphics Processing Units (GPU) and CPU accelerators are supported. If * you specify TargetDevice, don't specify * CompilerOptions.

For more information, see Compiler * options in the Amazon Lookout for Vision Developer Guide.

*/ inline GreengrassConfiguration& WithCompilerOptions(const Aws::String& value) { SetCompilerOptions(value); return *this;} /** *

Additional compiler options for the Greengrass component. Currently, only * NVIDIA Graphics Processing Units (GPU) and CPU accelerators are supported. If * you specify TargetDevice, don't specify * CompilerOptions.

For more information, see Compiler * options in the Amazon Lookout for Vision Developer Guide.

*/ inline GreengrassConfiguration& WithCompilerOptions(Aws::String&& value) { SetCompilerOptions(std::move(value)); return *this;} /** *

Additional compiler options for the Greengrass component. Currently, only * NVIDIA Graphics Processing Units (GPU) and CPU accelerators are supported. If * you specify TargetDevice, don't specify * CompilerOptions.

For more information, see Compiler * options in the Amazon Lookout for Vision Developer Guide.

*/ inline GreengrassConfiguration& WithCompilerOptions(const char* value) { SetCompilerOptions(value); return *this;} /** *

The target device for the model. Currently the only supported value is * jetson_xavier. If you specify TargetDevice, you can't * specify TargetPlatform.

*/ inline const TargetDevice& GetTargetDevice() const{ return m_targetDevice; } /** *

The target device for the model. Currently the only supported value is * jetson_xavier. If you specify TargetDevice, you can't * specify TargetPlatform.

*/ inline bool TargetDeviceHasBeenSet() const { return m_targetDeviceHasBeenSet; } /** *

The target device for the model. Currently the only supported value is * jetson_xavier. If you specify TargetDevice, you can't * specify TargetPlatform.

*/ inline void SetTargetDevice(const TargetDevice& value) { m_targetDeviceHasBeenSet = true; m_targetDevice = value; } /** *

The target device for the model. Currently the only supported value is * jetson_xavier. If you specify TargetDevice, you can't * specify TargetPlatform.

*/ inline void SetTargetDevice(TargetDevice&& value) { m_targetDeviceHasBeenSet = true; m_targetDevice = std::move(value); } /** *

The target device for the model. Currently the only supported value is * jetson_xavier. If you specify TargetDevice, you can't * specify TargetPlatform.

*/ inline GreengrassConfiguration& WithTargetDevice(const TargetDevice& value) { SetTargetDevice(value); return *this;} /** *

The target device for the model. Currently the only supported value is * jetson_xavier. If you specify TargetDevice, you can't * specify TargetPlatform.

*/ inline GreengrassConfiguration& WithTargetDevice(TargetDevice&& value) { SetTargetDevice(std::move(value)); return *this;} /** *

The target platform for the model. If you specify * TargetPlatform, you can't specify TargetDevice.

*/ inline const TargetPlatform& GetTargetPlatform() const{ return m_targetPlatform; } /** *

The target platform for the model. If you specify * TargetPlatform, you can't specify TargetDevice.

*/ inline bool TargetPlatformHasBeenSet() const { return m_targetPlatformHasBeenSet; } /** *

The target platform for the model. If you specify * TargetPlatform, you can't specify TargetDevice.

*/ inline void SetTargetPlatform(const TargetPlatform& value) { m_targetPlatformHasBeenSet = true; m_targetPlatform = value; } /** *

The target platform for the model. If you specify * TargetPlatform, you can't specify TargetDevice.

*/ inline void SetTargetPlatform(TargetPlatform&& value) { m_targetPlatformHasBeenSet = true; m_targetPlatform = std::move(value); } /** *

The target platform for the model. If you specify * TargetPlatform, you can't specify TargetDevice.

*/ inline GreengrassConfiguration& WithTargetPlatform(const TargetPlatform& value) { SetTargetPlatform(value); return *this;} /** *

The target platform for the model. If you specify * TargetPlatform, you can't specify TargetDevice.

*/ inline GreengrassConfiguration& WithTargetPlatform(TargetPlatform&& value) { SetTargetPlatform(std::move(value)); return *this;} /** *

An S3 location in which Lookout for Vision stores the component artifacts. *

*/ inline const S3Location& GetS3OutputLocation() const{ return m_s3OutputLocation; } /** *

An S3 location in which Lookout for Vision stores the component artifacts. *

*/ inline bool S3OutputLocationHasBeenSet() const { return m_s3OutputLocationHasBeenSet; } /** *

An S3 location in which Lookout for Vision stores the component artifacts. *

*/ inline void SetS3OutputLocation(const S3Location& value) { m_s3OutputLocationHasBeenSet = true; m_s3OutputLocation = value; } /** *

An S3 location in which Lookout for Vision stores the component artifacts. *

*/ inline void SetS3OutputLocation(S3Location&& value) { m_s3OutputLocationHasBeenSet = true; m_s3OutputLocation = std::move(value); } /** *

An S3 location in which Lookout for Vision stores the component artifacts. *

*/ inline GreengrassConfiguration& WithS3OutputLocation(const S3Location& value) { SetS3OutputLocation(value); return *this;} /** *

An S3 location in which Lookout for Vision stores the component artifacts. *

*/ inline GreengrassConfiguration& WithS3OutputLocation(S3Location&& value) { SetS3OutputLocation(std::move(value)); return *this;} /** *

A name for the AWS IoT Greengrass component.

*/ inline const Aws::String& GetComponentName() const{ return m_componentName; } /** *

A name for the AWS IoT Greengrass component.

*/ inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; } /** *

A name for the AWS IoT Greengrass component.

*/ inline void SetComponentName(const Aws::String& value) { m_componentNameHasBeenSet = true; m_componentName = value; } /** *

A name for the AWS IoT Greengrass component.

*/ inline void SetComponentName(Aws::String&& value) { m_componentNameHasBeenSet = true; m_componentName = std::move(value); } /** *

A name for the AWS IoT Greengrass component.

*/ inline void SetComponentName(const char* value) { m_componentNameHasBeenSet = true; m_componentName.assign(value); } /** *

A name for the AWS IoT Greengrass component.

*/ inline GreengrassConfiguration& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;} /** *

A name for the AWS IoT Greengrass component.

*/ inline GreengrassConfiguration& WithComponentName(Aws::String&& value) { SetComponentName(std::move(value)); return *this;} /** *

A name for the AWS IoT Greengrass component.

*/ inline GreengrassConfiguration& WithComponentName(const char* value) { SetComponentName(value); return *this;} /** *

A Version for the AWS IoT Greengrass component. If you don't provide a value, * a default value of Model Version.0.0 is used.

*/ inline const Aws::String& GetComponentVersion() const{ return m_componentVersion; } /** *

A Version for the AWS IoT Greengrass component. If you don't provide a value, * a default value of Model Version.0.0 is used.

*/ inline bool ComponentVersionHasBeenSet() const { return m_componentVersionHasBeenSet; } /** *

A Version for the AWS IoT Greengrass component. If you don't provide a value, * a default value of Model Version.0.0 is used.

*/ inline void SetComponentVersion(const Aws::String& value) { m_componentVersionHasBeenSet = true; m_componentVersion = value; } /** *

A Version for the AWS IoT Greengrass component. If you don't provide a value, * a default value of Model Version.0.0 is used.

*/ inline void SetComponentVersion(Aws::String&& value) { m_componentVersionHasBeenSet = true; m_componentVersion = std::move(value); } /** *

A Version for the AWS IoT Greengrass component. If you don't provide a value, * a default value of Model Version.0.0 is used.

*/ inline void SetComponentVersion(const char* value) { m_componentVersionHasBeenSet = true; m_componentVersion.assign(value); } /** *

A Version for the AWS IoT Greengrass component. If you don't provide a value, * a default value of Model Version.0.0 is used.

*/ inline GreengrassConfiguration& WithComponentVersion(const Aws::String& value) { SetComponentVersion(value); return *this;} /** *

A Version for the AWS IoT Greengrass component. If you don't provide a value, * a default value of Model Version.0.0 is used.

*/ inline GreengrassConfiguration& WithComponentVersion(Aws::String&& value) { SetComponentVersion(std::move(value)); return *this;} /** *

A Version for the AWS IoT Greengrass component. If you don't provide a value, * a default value of Model Version.0.0 is used.

*/ inline GreengrassConfiguration& WithComponentVersion(const char* value) { SetComponentVersion(value); return *this;} /** *

A description for the AWS IoT Greengrass component.

*/ inline const Aws::String& GetComponentDescription() const{ return m_componentDescription; } /** *

A description for the AWS IoT Greengrass component.

*/ inline bool ComponentDescriptionHasBeenSet() const { return m_componentDescriptionHasBeenSet; } /** *

A description for the AWS IoT Greengrass component.

*/ inline void SetComponentDescription(const Aws::String& value) { m_componentDescriptionHasBeenSet = true; m_componentDescription = value; } /** *

A description for the AWS IoT Greengrass component.

*/ inline void SetComponentDescription(Aws::String&& value) { m_componentDescriptionHasBeenSet = true; m_componentDescription = std::move(value); } /** *

A description for the AWS IoT Greengrass component.

*/ inline void SetComponentDescription(const char* value) { m_componentDescriptionHasBeenSet = true; m_componentDescription.assign(value); } /** *

A description for the AWS IoT Greengrass component.

*/ inline GreengrassConfiguration& WithComponentDescription(const Aws::String& value) { SetComponentDescription(value); return *this;} /** *

A description for the AWS IoT Greengrass component.

*/ inline GreengrassConfiguration& WithComponentDescription(Aws::String&& value) { SetComponentDescription(std::move(value)); return *this;} /** *

A description for the AWS IoT Greengrass component.

*/ inline GreengrassConfiguration& WithComponentDescription(const char* value) { SetComponentDescription(value); return *this;} /** *

A set of tags (key-value pairs) that you want to attach to the AWS IoT * Greengrass component.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A set of tags (key-value pairs) that you want to attach to the AWS IoT * Greengrass component.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A set of tags (key-value pairs) that you want to attach to the AWS IoT * Greengrass component.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A set of tags (key-value pairs) that you want to attach to the AWS IoT * Greengrass component.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A set of tags (key-value pairs) that you want to attach to the AWS IoT * Greengrass component.

*/ inline GreengrassConfiguration& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A set of tags (key-value pairs) that you want to attach to the AWS IoT * Greengrass component.

*/ inline GreengrassConfiguration& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A set of tags (key-value pairs) that you want to attach to the AWS IoT * Greengrass component.

*/ inline GreengrassConfiguration& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A set of tags (key-value pairs) that you want to attach to the AWS IoT * Greengrass component.

*/ inline GreengrassConfiguration& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_compilerOptions; bool m_compilerOptionsHasBeenSet = false; TargetDevice m_targetDevice; bool m_targetDeviceHasBeenSet = false; TargetPlatform m_targetPlatform; bool m_targetPlatformHasBeenSet = false; S3Location m_s3OutputLocation; bool m_s3OutputLocationHasBeenSet = false; Aws::String m_componentName; bool m_componentNameHasBeenSet = false; Aws::String m_componentVersion; bool m_componentVersionHasBeenSet = false; Aws::String m_componentDescription; bool m_componentDescriptionHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace LookoutforVision } // namespace Aws