/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace IoT { namespace Model { class DescribeThingRegistrationTaskResult { public: AWS_IOT_API DescribeThingRegistrationTaskResult(); AWS_IOT_API DescribeThingRegistrationTaskResult(const Aws::AmazonWebServiceResult& result); AWS_IOT_API DescribeThingRegistrationTaskResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The task ID.

*/ inline const Aws::String& GetTaskId() const{ return m_taskId; } /** *

The task ID.

*/ inline void SetTaskId(const Aws::String& value) { m_taskId = value; } /** *

The task ID.

*/ inline void SetTaskId(Aws::String&& value) { m_taskId = std::move(value); } /** *

The task ID.

*/ inline void SetTaskId(const char* value) { m_taskId.assign(value); } /** *

The task ID.

*/ inline DescribeThingRegistrationTaskResult& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;} /** *

The task ID.

*/ inline DescribeThingRegistrationTaskResult& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;} /** *

The task ID.

*/ inline DescribeThingRegistrationTaskResult& WithTaskId(const char* value) { SetTaskId(value); return *this;} /** *

The task creation date.

*/ inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; } /** *

The task creation date.

*/ inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDate = value; } /** *

The task creation date.

*/ inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDate = std::move(value); } /** *

The task creation date.

*/ inline DescribeThingRegistrationTaskResult& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;} /** *

The task creation date.

*/ inline DescribeThingRegistrationTaskResult& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;} /** *

The date when the task was last modified.

*/ inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; } /** *

The date when the task was last modified.

*/ inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDate = value; } /** *

The date when the task was last modified.

*/ inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDate = std::move(value); } /** *

The date when the task was last modified.

*/ inline DescribeThingRegistrationTaskResult& WithLastModifiedDate(const Aws::Utils::DateTime& value) { SetLastModifiedDate(value); return *this;} /** *

The date when the task was last modified.

*/ inline DescribeThingRegistrationTaskResult& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;} /** *

The task's template.

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

The task's template.

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

The task's template.

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

The task's template.

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

The task's template.

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

The task's template.

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

The task's template.

*/ inline DescribeThingRegistrationTaskResult& 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 void SetInputFileBucket(const Aws::String& value) { m_inputFileBucket = value; } /** *

The S3 bucket that contains the input file.

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

The S3 bucket that contains the input file.

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

The S3 bucket that contains the input file.

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

The S3 bucket that contains the input file.

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

The S3 bucket that contains the input file.

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

The input file key.

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

The input file key.

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

The input file key.

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

The input file key.

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

The input file key.

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

The input file key.

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

The input file key.

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

The role ARN that grants access to the input file bucket.

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

The role ARN that grants access to the input file bucket.

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

The role ARN that grants access to the input file bucket.

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

The role ARN that grants access to the input file bucket.

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

The role ARN that grants access to the input file bucket.

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

The role ARN that grants access to the input file bucket.

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

The role ARN that grants access to the input file bucket.

*/ inline DescribeThingRegistrationTaskResult& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

The status of the bulk thing provisioning task.

*/ inline const Status& GetStatus() const{ return m_status; } /** *

The status of the bulk thing provisioning task.

*/ inline void SetStatus(const Status& value) { m_status = value; } /** *

The status of the bulk thing provisioning task.

*/ inline void SetStatus(Status&& value) { m_status = std::move(value); } /** *

The status of the bulk thing provisioning task.

*/ inline DescribeThingRegistrationTaskResult& WithStatus(const Status& value) { SetStatus(value); return *this;} /** *

The status of the bulk thing provisioning task.

*/ inline DescribeThingRegistrationTaskResult& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;} /** *

The message.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

The message.

*/ inline void SetMessage(const Aws::String& value) { m_message = value; } /** *

The message.

*/ inline void SetMessage(Aws::String&& value) { m_message = std::move(value); } /** *

The message.

*/ inline void SetMessage(const char* value) { m_message.assign(value); } /** *

The message.

*/ inline DescribeThingRegistrationTaskResult& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

The message.

*/ inline DescribeThingRegistrationTaskResult& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

The message.

*/ inline DescribeThingRegistrationTaskResult& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

The number of things successfully provisioned.

*/ inline int GetSuccessCount() const{ return m_successCount; } /** *

The number of things successfully provisioned.

*/ inline void SetSuccessCount(int value) { m_successCount = value; } /** *

The number of things successfully provisioned.

*/ inline DescribeThingRegistrationTaskResult& WithSuccessCount(int value) { SetSuccessCount(value); return *this;} /** *

The number of things that failed to be provisioned.

*/ inline int GetFailureCount() const{ return m_failureCount; } /** *

The number of things that failed to be provisioned.

*/ inline void SetFailureCount(int value) { m_failureCount = value; } /** *

The number of things that failed to be provisioned.

*/ inline DescribeThingRegistrationTaskResult& WithFailureCount(int value) { SetFailureCount(value); return *this;} /** *

The progress of the bulk provisioning task expressed as a percentage.

*/ inline int GetPercentageProgress() const{ return m_percentageProgress; } /** *

The progress of the bulk provisioning task expressed as a percentage.

*/ inline void SetPercentageProgress(int value) { m_percentageProgress = value; } /** *

The progress of the bulk provisioning task expressed as a percentage.

*/ inline DescribeThingRegistrationTaskResult& WithPercentageProgress(int value) { SetPercentageProgress(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeThingRegistrationTaskResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeThingRegistrationTaskResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeThingRegistrationTaskResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_taskId; Aws::Utils::DateTime m_creationDate; Aws::Utils::DateTime m_lastModifiedDate; Aws::String m_templateBody; Aws::String m_inputFileBucket; Aws::String m_inputFileKey; Aws::String m_roleArn; Status m_status; Aws::String m_message; int m_successCount; int m_failureCount; int m_percentageProgress; Aws::String m_requestId; }; } // namespace Model } // namespace IoT } // namespace Aws