/** * 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 namespace Aws { namespace IoT { namespace Model { /** */ class AWS_IOT_API CreateProvisioningTemplateRequest : public IoTRequest { public: 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::String SerializePayload() const override; /** *

The name of the fleet provisioning template.

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

The name of the fleet provisioning template.

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

The name of the fleet provisioning template.

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

The name of the fleet provisioning template.

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

The name of the fleet provisioning template.

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

The name of the fleet provisioning template.

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

The name of the fleet provisioning template.

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

The name of the fleet provisioning template.

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

The description of the fleet provisioning template.

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

The description of the fleet provisioning template.

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

The description of the fleet provisioning template.

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

The description of the fleet provisioning template.

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

The description of the fleet provisioning template.

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

The description of the fleet provisioning template.

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

The description of the fleet provisioning template.

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

The description of the fleet provisioning template.

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

The JSON formatted contents of the fleet provisioning template.

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

The JSON formatted contents of the fleet provisioning template.

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

The JSON formatted contents of the fleet provisioning template.

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

The JSON formatted contents of the fleet provisioning template.

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

The JSON formatted contents of the fleet provisioning template.

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

The JSON formatted contents of the fleet provisioning template.

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

The JSON formatted contents of the fleet provisioning template.

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

The JSON formatted contents of the fleet provisioning template.

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

True to enable the fleet provisioning template, otherwise false.

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

True to enable the fleet provisioning template, otherwise false.

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

True to enable the fleet provisioning template, otherwise false.

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

True to enable the fleet provisioning template, otherwise false.

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

The role ARN for the role associated with the fleet 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 fleet 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 fleet 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 fleet 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 fleet 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 fleet 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 fleet 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 fleet 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.

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

Creates a pre-provisioning hook template.

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

Creates a pre-provisioning hook template.

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

Creates a pre-provisioning hook template.

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

Creates a pre-provisioning hook template.

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

Creates a pre-provisioning hook template.

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

Metadata which can be used to manage the fleet 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 fleet 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 fleet 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 fleet 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 fleet 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 fleet 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 fleet 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 fleet 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; } private: Aws::String m_templateName; bool m_templateNameHasBeenSet; Aws::String m_description; bool m_descriptionHasBeenSet; Aws::String m_templateBody; bool m_templateBodyHasBeenSet; bool m_enabled; bool m_enabledHasBeenSet; Aws::String m_provisioningRoleArn; bool m_provisioningRoleArnHasBeenSet; ProvisioningHook m_preProvisioningHook; bool m_preProvisioningHookHasBeenSet; Aws::Vector m_tags; bool m_tagsHasBeenSet; }; } // namespace Model } // namespace IoT } // namespace Aws