/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace IoTThingsGraph { namespace Model { class AWS_IOTTHINGSGRAPH_API GetUploadStatusResult { public: GetUploadStatusResult(); GetUploadStatusResult(const Aws::AmazonWebServiceResult& result); GetUploadStatusResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ID of the upload.

*/ inline const Aws::String& GetUploadId() const{ return m_uploadId; } /** *

The ID of the upload.

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

The ID of the upload.

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

The ID of the upload.

*/ inline void SetUploadId(const char* value) { m_uploadId.assign(value); } /** *

The ID of the upload.

*/ inline GetUploadStatusResult& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;} /** *

The ID of the upload.

*/ inline GetUploadStatusResult& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;} /** *

The ID of the upload.

*/ inline GetUploadStatusResult& WithUploadId(const char* value) { SetUploadId(value); return *this;} /** *

The status of the upload. The initial status is IN_PROGRESS. The * response show all validation failures if the upload fails.

*/ inline const UploadStatus& GetUploadStatus() const{ return m_uploadStatus; } /** *

The status of the upload. The initial status is IN_PROGRESS. The * response show all validation failures if the upload fails.

*/ inline void SetUploadStatus(const UploadStatus& value) { m_uploadStatus = value; } /** *

The status of the upload. The initial status is IN_PROGRESS. The * response show all validation failures if the upload fails.

*/ inline void SetUploadStatus(UploadStatus&& value) { m_uploadStatus = std::move(value); } /** *

The status of the upload. The initial status is IN_PROGRESS. The * response show all validation failures if the upload fails.

*/ inline GetUploadStatusResult& WithUploadStatus(const UploadStatus& value) { SetUploadStatus(value); return *this;} /** *

The status of the upload. The initial status is IN_PROGRESS. The * response show all validation failures if the upload fails.

*/ inline GetUploadStatusResult& WithUploadStatus(UploadStatus&& value) { SetUploadStatus(std::move(value)); return *this;} /** *

The ARN of the upload.

*/ inline const Aws::String& GetNamespaceArn() const{ return m_namespaceArn; } /** *

The ARN of the upload.

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

The ARN of the upload.

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

The ARN of the upload.

*/ inline void SetNamespaceArn(const char* value) { m_namespaceArn.assign(value); } /** *

The ARN of the upload.

*/ inline GetUploadStatusResult& WithNamespaceArn(const Aws::String& value) { SetNamespaceArn(value); return *this;} /** *

The ARN of the upload.

*/ inline GetUploadStatusResult& WithNamespaceArn(Aws::String&& value) { SetNamespaceArn(std::move(value)); return *this;} /** *

The ARN of the upload.

*/ inline GetUploadStatusResult& WithNamespaceArn(const char* value) { SetNamespaceArn(value); return *this;} /** *

The name of the upload's namespace.

*/ inline const Aws::String& GetNamespaceName() const{ return m_namespaceName; } /** *

The name of the upload's namespace.

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

The name of the upload's namespace.

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

The name of the upload's namespace.

*/ inline void SetNamespaceName(const char* value) { m_namespaceName.assign(value); } /** *

The name of the upload's namespace.

*/ inline GetUploadStatusResult& WithNamespaceName(const Aws::String& value) { SetNamespaceName(value); return *this;} /** *

The name of the upload's namespace.

*/ inline GetUploadStatusResult& WithNamespaceName(Aws::String&& value) { SetNamespaceName(std::move(value)); return *this;} /** *

The name of the upload's namespace.

*/ inline GetUploadStatusResult& WithNamespaceName(const char* value) { SetNamespaceName(value); return *this;} /** *

The version of the user's namespace. Defaults to the latest version of the * user's namespace.

*/ inline long long GetNamespaceVersion() const{ return m_namespaceVersion; } /** *

The version of the user's namespace. Defaults to the latest version of the * user's namespace.

*/ inline void SetNamespaceVersion(long long value) { m_namespaceVersion = value; } /** *

The version of the user's namespace. Defaults to the latest version of the * user's namespace.

*/ inline GetUploadStatusResult& WithNamespaceVersion(long long value) { SetNamespaceVersion(value); return *this;} /** *

The reason for an upload failure.

*/ inline const Aws::Vector& GetFailureReason() const{ return m_failureReason; } /** *

The reason for an upload failure.

*/ inline void SetFailureReason(const Aws::Vector& value) { m_failureReason = value; } /** *

The reason for an upload failure.

*/ inline void SetFailureReason(Aws::Vector&& value) { m_failureReason = std::move(value); } /** *

The reason for an upload failure.

*/ inline GetUploadStatusResult& WithFailureReason(const Aws::Vector& value) { SetFailureReason(value); return *this;} /** *

The reason for an upload failure.

*/ inline GetUploadStatusResult& WithFailureReason(Aws::Vector&& value) { SetFailureReason(std::move(value)); return *this;} /** *

The reason for an upload failure.

*/ inline GetUploadStatusResult& AddFailureReason(const Aws::String& value) { m_failureReason.push_back(value); return *this; } /** *

The reason for an upload failure.

*/ inline GetUploadStatusResult& AddFailureReason(Aws::String&& value) { m_failureReason.push_back(std::move(value)); return *this; } /** *

The reason for an upload failure.

*/ inline GetUploadStatusResult& AddFailureReason(const char* value) { m_failureReason.push_back(value); return *this; } /** *

The date at which the upload was created.

*/ inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; } /** *

The date at which the upload was created.

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

The date at which the upload was created.

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

The date at which the upload was created.

*/ inline GetUploadStatusResult& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;} /** *

The date at which the upload was created.

*/ inline GetUploadStatusResult& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;} private: Aws::String m_uploadId; UploadStatus m_uploadStatus; Aws::String m_namespaceArn; Aws::String m_namespaceName; long long m_namespaceVersion; Aws::Vector m_failureReason; Aws::Utils::DateTime m_createdDate; }; } // namespace Model } // namespace IoTThingsGraph } // namespace Aws