/** * 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 IoT { namespace Model { /** */ class CreateProvisioningTemplateRequest : public IoTRequest { public: AWS_IOT_API CreateProvisioningTemplateRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateProvisioningTemplate"; } AWS_IOT_API Aws::String SerializePayload() const override; /** *

The name of the provisioning template.

*/ inline const Aws::String& GetTemplateName() const{ return m_templateName; } /** *

The name of the provisioning template.

*/ inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; } /** *

The name of the provisioning template.

*/ inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; } /** *

The name of the provisioning template.

*/ inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); } /** *

The name of the provisioning template.

*/ inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); } /** *

The name of the provisioning template.

*/ inline CreateProvisioningTemplateRequest& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;} /** *

The name of the provisioning template.

*/ inline CreateProvisioningTemplateRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;} /** *

The name of the provisioning template.

*/ inline CreateProvisioningTemplateRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;} /** *

The description of the provisioning template.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the provisioning template.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the provisioning template.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the provisioning template.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the provisioning template.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the provisioning template.

*/ inline CreateProvisioningTemplateRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the provisioning template.

*/ inline CreateProvisioningTemplateRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the provisioning template.

*/ inline CreateProvisioningTemplateRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The JSON formatted contents of the provisioning template.

*/ inline const Aws::String& GetTemplateBody() const{ return m_templateBody; } /** *

The JSON formatted contents of the provisioning template.

*/ inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; } /** *

The JSON formatted contents of the provisioning template.

*/ inline void SetTemplateBody(const Aws::String& value) { m_templateBodyHasBeenSet = true; m_templateBody = value; } /** *

The JSON formatted contents of the provisioning template.

*/ inline void SetTemplateBody(Aws::String&& value) { m_templateBodyHasBeenSet = true; m_templateBody = std::move(value); } /** *

The JSON formatted contents of the provisioning template.

*/ inline void SetTemplateBody(const char* value) { m_templateBodyHasBeenSet = true; m_templateBody.assign(value); } /** *

The JSON formatted contents of the provisioning template.

*/ inline CreateProvisioningTemplateRequest& WithTemplateBody(const Aws::String& value) { SetTemplateBody(value); return *this;} /** *

The JSON formatted contents of the provisioning template.

*/ inline CreateProvisioningTemplateRequest& WithTemplateBody(Aws::String&& value) { SetTemplateBody(std::move(value)); return *this;} /** *

The JSON formatted contents of the provisioning template.

*/ inline CreateProvisioningTemplateRequest& WithTemplateBody(const char* value) { SetTemplateBody(value); return *this;} /** *

True to enable the provisioning template, otherwise false.

*/ inline bool GetEnabled() const{ return m_enabled; } /** *

True to enable the provisioning template, otherwise false.

*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *

True to enable the provisioning template, otherwise false.

*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *

True to enable the provisioning template, otherwise false.

*/ inline CreateProvisioningTemplateRequest& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *

The role ARN for the role associated with the provisioning template. This IoT * role grants permission to provision a device.

*/ inline const Aws::String& GetProvisioningRoleArn() const{ return m_provisioningRoleArn; } /** *

The role ARN for the role associated with the provisioning template. This IoT * role grants permission to provision a device.

*/ inline bool ProvisioningRoleArnHasBeenSet() const { return m_provisioningRoleArnHasBeenSet; } /** *

The role ARN for the role associated with the provisioning template. This IoT * role grants permission to provision a device.

*/ inline void SetProvisioningRoleArn(const Aws::String& value) { m_provisioningRoleArnHasBeenSet = true; m_provisioningRoleArn = value; } /** *

The role ARN for the role associated with the provisioning template. This IoT * role grants permission to provision a device.

*/ inline void SetProvisioningRoleArn(Aws::String&& value) { m_provisioningRoleArnHasBeenSet = true; m_provisioningRoleArn = std::move(value); } /** *

The role ARN for the role associated with the provisioning template. This IoT * role grants permission to provision a device.

*/ inline void SetProvisioningRoleArn(const char* value) { m_provisioningRoleArnHasBeenSet = true; m_provisioningRoleArn.assign(value); } /** *

The role ARN for the role associated with the provisioning template. This IoT * role grants permission to provision a device.

*/ inline CreateProvisioningTemplateRequest& WithProvisioningRoleArn(const Aws::String& value) { SetProvisioningRoleArn(value); return *this;} /** *

The role ARN for the role associated with the provisioning template. This IoT * role grants permission to provision a device.

*/ inline CreateProvisioningTemplateRequest& WithProvisioningRoleArn(Aws::String&& value) { SetProvisioningRoleArn(std::move(value)); return *this;} /** *

The role ARN for the role associated with the provisioning template. This IoT * role grants permission to provision a device.

*/ inline CreateProvisioningTemplateRequest& WithProvisioningRoleArn(const char* value) { SetProvisioningRoleArn(value); return *this;} /** *

Creates a pre-provisioning hook template. Only supports template of type * FLEET_PROVISIONING. For more information about provisioning * template types, see type.

*/ inline const ProvisioningHook& GetPreProvisioningHook() const{ return m_preProvisioningHook; } /** *

Creates a pre-provisioning hook template. Only supports template of type * FLEET_PROVISIONING. For more information about provisioning * template types, see type.

*/ inline bool PreProvisioningHookHasBeenSet() const { return m_preProvisioningHookHasBeenSet; } /** *

Creates a pre-provisioning hook template. Only supports template of type * FLEET_PROVISIONING. For more information about provisioning * template types, see type.

*/ inline void SetPreProvisioningHook(const ProvisioningHook& value) { m_preProvisioningHookHasBeenSet = true; m_preProvisioningHook = value; } /** *

Creates a pre-provisioning hook template. Only supports template of type * FLEET_PROVISIONING. For more information about provisioning * template types, see type.

*/ inline void SetPreProvisioningHook(ProvisioningHook&& value) { m_preProvisioningHookHasBeenSet = true; m_preProvisioningHook = std::move(value); } /** *

Creates a pre-provisioning hook template. Only supports template of type * FLEET_PROVISIONING. For more information about provisioning * template types, see type.

*/ inline CreateProvisioningTemplateRequest& WithPreProvisioningHook(const ProvisioningHook& value) { SetPreProvisioningHook(value); return *this;} /** *

Creates a pre-provisioning hook template. Only supports template of type * FLEET_PROVISIONING. For more information about provisioning * template types, see type.

*/ inline CreateProvisioningTemplateRequest& WithPreProvisioningHook(ProvisioningHook&& value) { SetPreProvisioningHook(std::move(value)); return *this;} /** *

Metadata which can be used to manage the provisioning template.

*

For URI Request parameters use format: ...key1=value1&key2=value2...

*

For the CLI command-line parameter use format: &&tags * "key1=value1&key2=value2..."

For the cli-input-json file use format: * "tags": "key1=value1&key2=value2..."

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

Metadata which can be used to manage the provisioning template.

*

For URI Request parameters use format: ...key1=value1&key2=value2...

*

For the CLI command-line parameter use format: &&tags * "key1=value1&key2=value2..."

For the cli-input-json file use format: * "tags": "key1=value1&key2=value2..."

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

Metadata which can be used to manage the provisioning template.

*

For URI Request parameters use format: ...key1=value1&key2=value2...

*

For the CLI command-line parameter use format: &&tags * "key1=value1&key2=value2..."

For the cli-input-json file use format: * "tags": "key1=value1&key2=value2..."

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

Metadata which can be used to manage the provisioning template.

*

For URI Request parameters use format: ...key1=value1&key2=value2...

*

For the CLI command-line parameter use format: &&tags * "key1=value1&key2=value2..."

For the cli-input-json file use format: * "tags": "key1=value1&key2=value2..."

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

Metadata which can be used to manage the provisioning template.

*

For URI Request parameters use format: ...key1=value1&key2=value2...

*

For the CLI command-line parameter use format: &&tags * "key1=value1&key2=value2..."

For the cli-input-json file use format: * "tags": "key1=value1&key2=value2..."

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

Metadata which can be used to manage the provisioning template.

*

For URI Request parameters use format: ...key1=value1&key2=value2...

*

For the CLI command-line parameter use format: &&tags * "key1=value1&key2=value2..."

For the cli-input-json file use format: * "tags": "key1=value1&key2=value2..."

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

Metadata which can be used to manage the provisioning template.

*

For URI Request parameters use format: ...key1=value1&key2=value2...

*

For the CLI command-line parameter use format: &&tags * "key1=value1&key2=value2..."

For the cli-input-json file use format: * "tags": "key1=value1&key2=value2..."

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

Metadata which can be used to manage the provisioning template.

*

For URI Request parameters use format: ...key1=value1&key2=value2...

*

For the CLI command-line parameter use format: &&tags * "key1=value1&key2=value2..."

For the cli-input-json file use format: * "tags": "key1=value1&key2=value2..."

*/ inline CreateProvisioningTemplateRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

The type you define in a provisioning template. You can create a template * with only one type. You can't change the template type after its creation. The * default value is FLEET_PROVISIONING. For more information about * provisioning template, see: Provisioning * template.

*/ inline const TemplateType& GetType() const{ return m_type; } /** *

The type you define in a provisioning template. You can create a template * with only one type. You can't change the template type after its creation. The * default value is FLEET_PROVISIONING. For more information about * provisioning template, see: Provisioning * template.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type you define in a provisioning template. You can create a template * with only one type. You can't change the template type after its creation. The * default value is FLEET_PROVISIONING. For more information about * provisioning template, see: Provisioning * template.

*/ inline void SetType(const TemplateType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type you define in a provisioning template. You can create a template * with only one type. You can't change the template type after its creation. The * default value is FLEET_PROVISIONING. For more information about * provisioning template, see: Provisioning * template.

*/ inline void SetType(TemplateType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type you define in a provisioning template. You can create a template * with only one type. You can't change the template type after its creation. The * default value is FLEET_PROVISIONING. For more information about * provisioning template, see: Provisioning * template.

*/ inline CreateProvisioningTemplateRequest& WithType(const TemplateType& value) { SetType(value); return *this;} /** *

The type you define in a provisioning template. You can create a template * with only one type. You can't change the template type after its creation. The * default value is FLEET_PROVISIONING. For more information about * provisioning template, see: Provisioning * template.

*/ inline CreateProvisioningTemplateRequest& WithType(TemplateType&& value) { SetType(std::move(value)); return *this;} private: Aws::String m_templateName; bool m_templateNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_templateBody; bool m_templateBodyHasBeenSet = false; bool m_enabled; bool m_enabledHasBeenSet = false; Aws::String m_provisioningRoleArn; bool m_provisioningRoleArnHasBeenSet = false; ProvisioningHook m_preProvisioningHook; bool m_preProvisioningHookHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; TemplateType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws