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

The Amazon Resource Name (ARN) for the snapshot job. The job ARN is generated * when you start a new job with a StartDashboardSnapshotJob API * call.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) for the snapshot job. The job ARN is generated * when you start a new job with a StartDashboardSnapshotJob API * call.

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

The Amazon Resource Name (ARN) for the snapshot job. The job ARN is generated * when you start a new job with a StartDashboardSnapshotJob API * call.

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

The Amazon Resource Name (ARN) for the snapshot job. The job ARN is generated * when you start a new job with a StartDashboardSnapshotJob API * call.

*/ inline void SetArn(const char* value) { m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) for the snapshot job. The job ARN is generated * when you start a new job with a StartDashboardSnapshotJob API * call.

*/ inline DescribeDashboardSnapshotJobResultResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) for the snapshot job. The job ARN is generated * when you start a new job with a StartDashboardSnapshotJob API * call.

*/ inline DescribeDashboardSnapshotJobResultResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) for the snapshot job. The job ARN is generated * when you start a new job with a StartDashboardSnapshotJob API * call.

*/ inline DescribeDashboardSnapshotJobResultResult& WithArn(const char* value) { SetArn(value); return *this;} /** *

Indicates the status of a job after it has reached a terminal state. A * finished snapshot job will retuen a COMPLETED or * FAILED status.

*/ inline const SnapshotJobStatus& GetJobStatus() const{ return m_jobStatus; } /** *

Indicates the status of a job after it has reached a terminal state. A * finished snapshot job will retuen a COMPLETED or * FAILED status.

*/ inline void SetJobStatus(const SnapshotJobStatus& value) { m_jobStatus = value; } /** *

Indicates the status of a job after it has reached a terminal state. A * finished snapshot job will retuen a COMPLETED or * FAILED status.

*/ inline void SetJobStatus(SnapshotJobStatus&& value) { m_jobStatus = std::move(value); } /** *

Indicates the status of a job after it has reached a terminal state. A * finished snapshot job will retuen a COMPLETED or * FAILED status.

*/ inline DescribeDashboardSnapshotJobResultResult& WithJobStatus(const SnapshotJobStatus& value) { SetJobStatus(value); return *this;} /** *

Indicates the status of a job after it has reached a terminal state. A * finished snapshot job will retuen a COMPLETED or * FAILED status.

*/ inline DescribeDashboardSnapshotJobResultResult& WithJobStatus(SnapshotJobStatus&& value) { SetJobStatus(std::move(value)); return *this;} /** *

The time that a snapshot job was created.

*/ inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; } /** *

The time that a snapshot job was created.

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

The time that a snapshot job was created.

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

The time that a snapshot job was created.

*/ inline DescribeDashboardSnapshotJobResultResult& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;} /** *

The time that a snapshot job was created.

*/ inline DescribeDashboardSnapshotJobResultResult& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;} /** *

The time that a snapshot job status was last updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; } /** *

The time that a snapshot job status was last updated.

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

The time that a snapshot job status was last updated.

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

The time that a snapshot job status was last updated.

*/ inline DescribeDashboardSnapshotJobResultResult& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;} /** *

The time that a snapshot job status was last updated.

*/ inline DescribeDashboardSnapshotJobResultResult& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;} /** *

The result of the snapshot job. Jobs that have successfully completed will * return the S3Uri where they are located. Jobs that have failedwill return * information on the error that caused the job to fail.

*/ inline const SnapshotJobResult& GetResult() const{ return m_result; } /** *

The result of the snapshot job. Jobs that have successfully completed will * return the S3Uri where they are located. Jobs that have failedwill return * information on the error that caused the job to fail.

*/ inline void SetResult(const SnapshotJobResult& value) { m_result = value; } /** *

The result of the snapshot job. Jobs that have successfully completed will * return the S3Uri where they are located. Jobs that have failedwill return * information on the error that caused the job to fail.

*/ inline void SetResult(SnapshotJobResult&& value) { m_result = std::move(value); } /** *

The result of the snapshot job. Jobs that have successfully completed will * return the S3Uri where they are located. Jobs that have failedwill return * information on the error that caused the job to fail.

*/ inline DescribeDashboardSnapshotJobResultResult& WithResult(const SnapshotJobResult& value) { SetResult(value); return *this;} /** *

The result of the snapshot job. Jobs that have successfully completed will * return the S3Uri where they are located. Jobs that have failedwill return * information on the error that caused the job to fail.

*/ inline DescribeDashboardSnapshotJobResultResult& WithResult(SnapshotJobResult&& value) { SetResult(std::move(value)); return *this;} /** *

Displays information for the error that caused a job to fail.

*/ inline const SnapshotJobErrorInfo& GetErrorInfo() const{ return m_errorInfo; } /** *

Displays information for the error that caused a job to fail.

*/ inline void SetErrorInfo(const SnapshotJobErrorInfo& value) { m_errorInfo = value; } /** *

Displays information for the error that caused a job to fail.

*/ inline void SetErrorInfo(SnapshotJobErrorInfo&& value) { m_errorInfo = std::move(value); } /** *

Displays information for the error that caused a job to fail.

*/ inline DescribeDashboardSnapshotJobResultResult& WithErrorInfo(const SnapshotJobErrorInfo& value) { SetErrorInfo(value); return *this;} /** *

Displays information for the error that caused a job to fail.

*/ inline DescribeDashboardSnapshotJobResultResult& WithErrorInfo(SnapshotJobErrorInfo&& value) { SetErrorInfo(std::move(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 DescribeDashboardSnapshotJobResultResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeDashboardSnapshotJobResultResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeDashboardSnapshotJobResultResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} /** *

The HTTP status of the request

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

The HTTP status of the request

*/ inline void SetStatus(int value) { m_status = value; } /** *

The HTTP status of the request

*/ inline DescribeDashboardSnapshotJobResultResult& WithStatus(int value) { SetStatus(value); return *this;} private: Aws::String m_arn; SnapshotJobStatus m_jobStatus; Aws::Utils::DateTime m_createdTime; Aws::Utils::DateTime m_lastUpdatedTime; SnapshotJobResult m_result; SnapshotJobErrorInfo m_errorInfo; Aws::String m_requestId; int m_status; }; } // namespace Model } // namespace QuickSight } // namespace Aws