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

Indicates the status of a job through its queuing and execution.

Poll * the DescribeAssetBundleImport API until JobStatus * returns one of the following values:

  • SUCCESSFUL *

  • FAILED

  • * FAILED_ROLLBACK_COMPLETED

  • * FAILED_ROLLBACK_ERROR

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

Indicates the status of a job through its queuing and execution.

Poll * the DescribeAssetBundleImport API until JobStatus * returns one of the following values:

  • SUCCESSFUL *

  • FAILED

  • * FAILED_ROLLBACK_COMPLETED

  • * FAILED_ROLLBACK_ERROR

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

Indicates the status of a job through its queuing and execution.

Poll * the DescribeAssetBundleImport API until JobStatus * returns one of the following values:

  • SUCCESSFUL *

  • FAILED

  • * FAILED_ROLLBACK_COMPLETED

  • * FAILED_ROLLBACK_ERROR

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

Indicates the status of a job through its queuing and execution.

Poll * the DescribeAssetBundleImport API until JobStatus * returns one of the following values:

  • SUCCESSFUL *

  • FAILED

  • * FAILED_ROLLBACK_COMPLETED

  • * FAILED_ROLLBACK_ERROR

*/ inline DescribeAssetBundleImportJobResult& WithJobStatus(const AssetBundleImportJobStatus& value) { SetJobStatus(value); return *this;} /** *

Indicates the status of a job through its queuing and execution.

Poll * the DescribeAssetBundleImport API until JobStatus * returns one of the following values:

  • SUCCESSFUL *

  • FAILED

  • * FAILED_ROLLBACK_COMPLETED

  • * FAILED_ROLLBACK_ERROR

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

An array of error records that describes any failures that occurred during * the export job processing.

Error records accumulate while the job is * still running. The complete set of error records is available after the job has * completed and failed.

*/ inline const Aws::Vector& GetErrors() const{ return m_errors; } /** *

An array of error records that describes any failures that occurred during * the export job processing.

Error records accumulate while the job is * still running. The complete set of error records is available after the job has * completed and failed.

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

An array of error records that describes any failures that occurred during * the export job processing.

Error records accumulate while the job is * still running. The complete set of error records is available after the job has * completed and failed.

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

An array of error records that describes any failures that occurred during * the export job processing.

Error records accumulate while the job is * still running. The complete set of error records is available after the job has * completed and failed.

*/ inline DescribeAssetBundleImportJobResult& WithErrors(const Aws::Vector& value) { SetErrors(value); return *this;} /** *

An array of error records that describes any failures that occurred during * the export job processing.

Error records accumulate while the job is * still running. The complete set of error records is available after the job has * completed and failed.

*/ inline DescribeAssetBundleImportJobResult& WithErrors(Aws::Vector&& value) { SetErrors(std::move(value)); return *this;} /** *

An array of error records that describes any failures that occurred during * the export job processing.

Error records accumulate while the job is * still running. The complete set of error records is available after the job has * completed and failed.

*/ inline DescribeAssetBundleImportJobResult& AddErrors(const AssetBundleImportJobError& value) { m_errors.push_back(value); return *this; } /** *

An array of error records that describes any failures that occurred during * the export job processing.

Error records accumulate while the job is * still running. The complete set of error records is available after the job has * completed and failed.

*/ inline DescribeAssetBundleImportJobResult& AddErrors(AssetBundleImportJobError&& value) { m_errors.push_back(std::move(value)); return *this; } /** *

An array of error records that describes any failures that occurred while an * import job was attempting a rollback.

Error records accumulate while the * job is still running. The complete set of error records is available after the * job has completed and failed.

*/ inline const Aws::Vector& GetRollbackErrors() const{ return m_rollbackErrors; } /** *

An array of error records that describes any failures that occurred while an * import job was attempting a rollback.

Error records accumulate while the * job is still running. The complete set of error records is available after the * job has completed and failed.

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

An array of error records that describes any failures that occurred while an * import job was attempting a rollback.

Error records accumulate while the * job is still running. The complete set of error records is available after the * job has completed and failed.

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

An array of error records that describes any failures that occurred while an * import job was attempting a rollback.

Error records accumulate while the * job is still running. The complete set of error records is available after the * job has completed and failed.

*/ inline DescribeAssetBundleImportJobResult& WithRollbackErrors(const Aws::Vector& value) { SetRollbackErrors(value); return *this;} /** *

An array of error records that describes any failures that occurred while an * import job was attempting a rollback.

Error records accumulate while the * job is still running. The complete set of error records is available after the * job has completed and failed.

*/ inline DescribeAssetBundleImportJobResult& WithRollbackErrors(Aws::Vector&& value) { SetRollbackErrors(std::move(value)); return *this;} /** *

An array of error records that describes any failures that occurred while an * import job was attempting a rollback.

Error records accumulate while the * job is still running. The complete set of error records is available after the * job has completed and failed.

*/ inline DescribeAssetBundleImportJobResult& AddRollbackErrors(const AssetBundleImportJobError& value) { m_rollbackErrors.push_back(value); return *this; } /** *

An array of error records that describes any failures that occurred while an * import job was attempting a rollback.

Error records accumulate while the * job is still running. The complete set of error records is available after the * job has completed and failed.

*/ inline DescribeAssetBundleImportJobResult& AddRollbackErrors(AssetBundleImportJobError&& value) { m_rollbackErrors.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Name (ARN) for the import job.

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

The Amazon Resource Name (ARN) for the import job.

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

The Amazon Resource Name (ARN) for the import job.

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

The Amazon Resource Name (ARN) for the import job.

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

The Amazon Resource Name (ARN) for the import job.

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

The Amazon Resource Name (ARN) for the import job.

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

The Amazon Resource Name (ARN) for the import job.

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

The time that the import job was created.

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

The time that the import job was created.

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

The time that the import job was created.

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

The time that the import job was created.

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

The time that the import job was created.

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

The ID of the job. The job ID is set when you start a new job with a * StartAssetBundleImportJob API call.

*/ inline const Aws::String& GetAssetBundleImportJobId() const{ return m_assetBundleImportJobId; } /** *

The ID of the job. The job ID is set when you start a new job with a * StartAssetBundleImportJob API call.

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

The ID of the job. The job ID is set when you start a new job with a * StartAssetBundleImportJob API call.

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

The ID of the job. The job ID is set when you start a new job with a * StartAssetBundleImportJob API call.

*/ inline void SetAssetBundleImportJobId(const char* value) { m_assetBundleImportJobId.assign(value); } /** *

The ID of the job. The job ID is set when you start a new job with a * StartAssetBundleImportJob API call.

*/ inline DescribeAssetBundleImportJobResult& WithAssetBundleImportJobId(const Aws::String& value) { SetAssetBundleImportJobId(value); return *this;} /** *

The ID of the job. The job ID is set when you start a new job with a * StartAssetBundleImportJob API call.

*/ inline DescribeAssetBundleImportJobResult& WithAssetBundleImportJobId(Aws::String&& value) { SetAssetBundleImportJobId(std::move(value)); return *this;} /** *

The ID of the job. The job ID is set when you start a new job with a * StartAssetBundleImportJob API call.

*/ inline DescribeAssetBundleImportJobResult& WithAssetBundleImportJobId(const char* value) { SetAssetBundleImportJobId(value); return *this;} /** *

The ID of the Amazon Web Services account the import job was executed in. *

*/ inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; } /** *

The ID of the Amazon Web Services account the import job was executed in. *

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

The ID of the Amazon Web Services account the import job was executed in. *

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

The ID of the Amazon Web Services account the import job was executed in. *

*/ inline void SetAwsAccountId(const char* value) { m_awsAccountId.assign(value); } /** *

The ID of the Amazon Web Services account the import job was executed in. *

*/ inline DescribeAssetBundleImportJobResult& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;} /** *

The ID of the Amazon Web Services account the import job was executed in. *

*/ inline DescribeAssetBundleImportJobResult& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;} /** *

The ID of the Amazon Web Services account the import job was executed in. *

*/ inline DescribeAssetBundleImportJobResult& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;} /** *

The source of the asset bundle zip file that contains the data that is * imported by the job.

*/ inline const AssetBundleImportSourceDescription& GetAssetBundleImportSource() const{ return m_assetBundleImportSource; } /** *

The source of the asset bundle zip file that contains the data that is * imported by the job.

*/ inline void SetAssetBundleImportSource(const AssetBundleImportSourceDescription& value) { m_assetBundleImportSource = value; } /** *

The source of the asset bundle zip file that contains the data that is * imported by the job.

*/ inline void SetAssetBundleImportSource(AssetBundleImportSourceDescription&& value) { m_assetBundleImportSource = std::move(value); } /** *

The source of the asset bundle zip file that contains the data that is * imported by the job.

*/ inline DescribeAssetBundleImportJobResult& WithAssetBundleImportSource(const AssetBundleImportSourceDescription& value) { SetAssetBundleImportSource(value); return *this;} /** *

The source of the asset bundle zip file that contains the data that is * imported by the job.

*/ inline DescribeAssetBundleImportJobResult& WithAssetBundleImportSource(AssetBundleImportSourceDescription&& value) { SetAssetBundleImportSource(std::move(value)); return *this;} /** *

Optional overrides to be applied to the resource configuration before * import.

*/ inline const AssetBundleImportJobOverrideParameters& GetOverrideParameters() const{ return m_overrideParameters; } /** *

Optional overrides to be applied to the resource configuration before * import.

*/ inline void SetOverrideParameters(const AssetBundleImportJobOverrideParameters& value) { m_overrideParameters = value; } /** *

Optional overrides to be applied to the resource configuration before * import.

*/ inline void SetOverrideParameters(AssetBundleImportJobOverrideParameters&& value) { m_overrideParameters = std::move(value); } /** *

Optional overrides to be applied to the resource configuration before * import.

*/ inline DescribeAssetBundleImportJobResult& WithOverrideParameters(const AssetBundleImportJobOverrideParameters& value) { SetOverrideParameters(value); return *this;} /** *

Optional overrides to be applied to the resource configuration before * import.

*/ inline DescribeAssetBundleImportJobResult& WithOverrideParameters(AssetBundleImportJobOverrideParameters&& value) { SetOverrideParameters(std::move(value)); return *this;} /** *

The failure action for the import job.

*/ inline const AssetBundleImportFailureAction& GetFailureAction() const{ return m_failureAction; } /** *

The failure action for the import job.

*/ inline void SetFailureAction(const AssetBundleImportFailureAction& value) { m_failureAction = value; } /** *

The failure action for the import job.

*/ inline void SetFailureAction(AssetBundleImportFailureAction&& value) { m_failureAction = std::move(value); } /** *

The failure action for the import job.

*/ inline DescribeAssetBundleImportJobResult& WithFailureAction(const AssetBundleImportFailureAction& value) { SetFailureAction(value); return *this;} /** *

The failure action for the import job.

*/ inline DescribeAssetBundleImportJobResult& WithFailureAction(AssetBundleImportFailureAction&& value) { SetFailureAction(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 DescribeAssetBundleImportJobResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeAssetBundleImportJobResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeAssetBundleImportJobResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} /** *

The HTTP status of the response.

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

The HTTP status of the response.

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

The HTTP status of the response.

*/ inline DescribeAssetBundleImportJobResult& WithStatus(int value) { SetStatus(value); return *this;} private: AssetBundleImportJobStatus m_jobStatus; Aws::Vector m_errors; Aws::Vector m_rollbackErrors; Aws::String m_arn; Aws::Utils::DateTime m_createdTime; Aws::String m_assetBundleImportJobId; Aws::String m_awsAccountId; AssetBundleImportSourceDescription m_assetBundleImportSource; AssetBundleImportJobOverrideParameters m_overrideParameters; AssetBundleImportFailureAction m_failureAction; Aws::String m_requestId; int m_status; }; } // namespace Model } // namespace QuickSight } // namespace Aws