/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace IoT { namespace Model { /** */ class UpdateProvisioningTemplateRequest : public IoTRequest { public: AWS_IOT_API UpdateProvisioningTemplateRequest(); // 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 "UpdateProvisioningTemplate"; } 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 UpdateProvisioningTemplateRequest& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;} /** *

The name of the provisioning template.

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

The name of the provisioning template.

*/ inline UpdateProvisioningTemplateRequest& 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 UpdateProvisioningTemplateRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the provisioning template.

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

The description of the provisioning template.

*/ inline UpdateProvisioningTemplateRequest& WithDescription(const char* value) { SetDescription(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 UpdateProvisioningTemplateRequest& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *

The ID of the default provisioning template version.

*/ inline int GetDefaultVersionId() const{ return m_defaultVersionId; } /** *

The ID of the default provisioning template version.

*/ inline bool DefaultVersionIdHasBeenSet() const { return m_defaultVersionIdHasBeenSet; } /** *

The ID of the default provisioning template version.

*/ inline void SetDefaultVersionId(int value) { m_defaultVersionIdHasBeenSet = true; m_defaultVersionId = value; } /** *

The ID of the default provisioning template version.

*/ inline UpdateProvisioningTemplateRequest& WithDefaultVersionId(int value) { SetDefaultVersionId(value); return *this;} /** *

The ARN of 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 ARN of the role associated with the provisioning template. This IoT role * grants permission to provision a device.

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

The ARN of 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 ARN of 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 ARN of 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 ARN of the role associated with the provisioning template. This IoT role * grants permission to provision a device.

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

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

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

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

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

Updates the 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; } /** *

Updates the 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; } /** *

Updates the 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; } /** *

Updates the 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); } /** *

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

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

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

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

Removes pre-provisioning hook template.

*/ inline bool GetRemovePreProvisioningHook() const{ return m_removePreProvisioningHook; } /** *

Removes pre-provisioning hook template.

*/ inline bool RemovePreProvisioningHookHasBeenSet() const { return m_removePreProvisioningHookHasBeenSet; } /** *

Removes pre-provisioning hook template.

*/ inline void SetRemovePreProvisioningHook(bool value) { m_removePreProvisioningHookHasBeenSet = true; m_removePreProvisioningHook = value; } /** *

Removes pre-provisioning hook template.

*/ inline UpdateProvisioningTemplateRequest& WithRemovePreProvisioningHook(bool value) { SetRemovePreProvisioningHook(value); return *this;} private: Aws::String m_templateName; bool m_templateNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; bool m_enabled; bool m_enabledHasBeenSet = false; int m_defaultVersionId; bool m_defaultVersionIdHasBeenSet = false; Aws::String m_provisioningRoleArn; bool m_provisioningRoleArnHasBeenSet = false; ProvisioningHook m_preProvisioningHook; bool m_preProvisioningHookHasBeenSet = false; bool m_removePreProvisioningHook; bool m_removePreProvisioningHookHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws