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

The provisioning template.

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

The provisioning template.

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

The provisioning template.

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

The provisioning template.

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

The provisioning template.

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

The provisioning template.

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

The provisioning template.

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

The provisioning template.

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

The S3 bucket that contains the input file.

*/ inline const Aws::String& GetInputFileBucket() const{ return m_inputFileBucket; } /** *

The S3 bucket that contains the input file.

*/ inline bool InputFileBucketHasBeenSet() const { return m_inputFileBucketHasBeenSet; } /** *

The S3 bucket that contains the input file.

*/ inline void SetInputFileBucket(const Aws::String& value) { m_inputFileBucketHasBeenSet = true; m_inputFileBucket = value; } /** *

The S3 bucket that contains the input file.

*/ inline void SetInputFileBucket(Aws::String&& value) { m_inputFileBucketHasBeenSet = true; m_inputFileBucket = std::move(value); } /** *

The S3 bucket that contains the input file.

*/ inline void SetInputFileBucket(const char* value) { m_inputFileBucketHasBeenSet = true; m_inputFileBucket.assign(value); } /** *

The S3 bucket that contains the input file.

*/ inline StartThingRegistrationTaskRequest& WithInputFileBucket(const Aws::String& value) { SetInputFileBucket(value); return *this;} /** *

The S3 bucket that contains the input file.

*/ inline StartThingRegistrationTaskRequest& WithInputFileBucket(Aws::String&& value) { SetInputFileBucket(std::move(value)); return *this;} /** *

The S3 bucket that contains the input file.

*/ inline StartThingRegistrationTaskRequest& WithInputFileBucket(const char* value) { SetInputFileBucket(value); return *this;} /** *

The name of input file within the S3 bucket. This file contains a newline * delimited JSON file. Each line contains the parameter values to provision one * device (thing).

*/ inline const Aws::String& GetInputFileKey() const{ return m_inputFileKey; } /** *

The name of input file within the S3 bucket. This file contains a newline * delimited JSON file. Each line contains the parameter values to provision one * device (thing).

*/ inline bool InputFileKeyHasBeenSet() const { return m_inputFileKeyHasBeenSet; } /** *

The name of input file within the S3 bucket. This file contains a newline * delimited JSON file. Each line contains the parameter values to provision one * device (thing).

*/ inline void SetInputFileKey(const Aws::String& value) { m_inputFileKeyHasBeenSet = true; m_inputFileKey = value; } /** *

The name of input file within the S3 bucket. This file contains a newline * delimited JSON file. Each line contains the parameter values to provision one * device (thing).

*/ inline void SetInputFileKey(Aws::String&& value) { m_inputFileKeyHasBeenSet = true; m_inputFileKey = std::move(value); } /** *

The name of input file within the S3 bucket. This file contains a newline * delimited JSON file. Each line contains the parameter values to provision one * device (thing).

*/ inline void SetInputFileKey(const char* value) { m_inputFileKeyHasBeenSet = true; m_inputFileKey.assign(value); } /** *

The name of input file within the S3 bucket. This file contains a newline * delimited JSON file. Each line contains the parameter values to provision one * device (thing).

*/ inline StartThingRegistrationTaskRequest& WithInputFileKey(const Aws::String& value) { SetInputFileKey(value); return *this;} /** *

The name of input file within the S3 bucket. This file contains a newline * delimited JSON file. Each line contains the parameter values to provision one * device (thing).

*/ inline StartThingRegistrationTaskRequest& WithInputFileKey(Aws::String&& value) { SetInputFileKey(std::move(value)); return *this;} /** *

The name of input file within the S3 bucket. This file contains a newline * delimited JSON file. Each line contains the parameter values to provision one * device (thing).

*/ inline StartThingRegistrationTaskRequest& WithInputFileKey(const char* value) { SetInputFileKey(value); return *this;} /** *

The IAM role ARN that grants permission the input file.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The IAM role ARN that grants permission the input file.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The IAM role ARN that grants permission the input file.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The IAM role ARN that grants permission the input file.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The IAM role ARN that grants permission the input file.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The IAM role ARN that grants permission the input file.

*/ inline StartThingRegistrationTaskRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The IAM role ARN that grants permission the input file.

*/ inline StartThingRegistrationTaskRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The IAM role ARN that grants permission the input file.

*/ inline StartThingRegistrationTaskRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} private: Aws::String m_templateBody; bool m_templateBodyHasBeenSet = false; Aws::String m_inputFileBucket; bool m_inputFileBucketHasBeenSet = false; Aws::String m_inputFileKey; bool m_inputFileKeyHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws