/** * 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 { namespace QuickSight { namespace Model { /** */ class StartAssetBundleImportJobRequest : public QuickSightRequest { public: AWS_QUICKSIGHT_API StartAssetBundleImportJobRequest(); // 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 "StartAssetBundleImportJob"; } AWS_QUICKSIGHT_API Aws::String SerializePayload() const override; /** *

The ID of the Amazon Web Services account to import assets into.

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

The ID of the Amazon Web Services account to import assets into.

*/ inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; } /** *

The ID of the Amazon Web Services account to import assets into.

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

The ID of the Amazon Web Services account to import assets into.

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

The ID of the Amazon Web Services account to import assets into.

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

The ID of the Amazon Web Services account to import assets into.

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

The ID of the Amazon Web Services account to import assets into.

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

The ID of the Amazon Web Services account to import assets into.

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

The ID of the job. This ID is unique while the job is running. After the job * is completed, you can reuse this ID for another job.

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

The ID of the job. This ID is unique while the job is running. After the job * is completed, you can reuse this ID for another job.

*/ inline bool AssetBundleImportJobIdHasBeenSet() const { return m_assetBundleImportJobIdHasBeenSet; } /** *

The ID of the job. This ID is unique while the job is running. After the job * is completed, you can reuse this ID for another job.

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

The ID of the job. This ID is unique while the job is running. After the job * is completed, you can reuse this ID for another job.

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

The ID of the job. This ID is unique while the job is running. After the job * is completed, you can reuse this ID for another job.

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

The ID of the job. This ID is unique while the job is running. After the job * is completed, you can reuse this ID for another job.

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

The ID of the job. This ID is unique while the job is running. After the job * is completed, you can reuse this ID for another job.

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

The ID of the job. This ID is unique while the job is running. After the job * is completed, you can reuse this ID for another job.

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

The source of the asset bundle zip file that contains the data that you want * to import. The file must be in QUICKSIGHT_JSON format.

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

The source of the asset bundle zip file that contains the data that you want * to import. The file must be in QUICKSIGHT_JSON format.

*/ inline bool AssetBundleImportSourceHasBeenSet() const { return m_assetBundleImportSourceHasBeenSet; } /** *

The source of the asset bundle zip file that contains the data that you want * to import. The file must be in QUICKSIGHT_JSON format.

*/ inline void SetAssetBundleImportSource(const AssetBundleImportSource& value) { m_assetBundleImportSourceHasBeenSet = true; m_assetBundleImportSource = value; } /** *

The source of the asset bundle zip file that contains the data that you want * to import. The file must be in QUICKSIGHT_JSON format.

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

The source of the asset bundle zip file that contains the data that you want * to import. The file must be in QUICKSIGHT_JSON format.

*/ inline StartAssetBundleImportJobRequest& WithAssetBundleImportSource(const AssetBundleImportSource& value) { SetAssetBundleImportSource(value); return *this;} /** *

The source of the asset bundle zip file that contains the data that you want * to import. The file must be in QUICKSIGHT_JSON format.

*/ inline StartAssetBundleImportJobRequest& WithAssetBundleImportSource(AssetBundleImportSource&& 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 bool OverrideParametersHasBeenSet() const { return m_overrideParametersHasBeenSet; } /** *

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

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

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

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

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

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

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

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

The failure action for the import job.

If you choose * ROLLBACK, failed import jobs will attempt to undo any asset changes * caused by the failed job.

If you choose DO_NOTHING, failed * import jobs will not attempt to roll back any asset changes caused by the failed * job, possibly keeping the Amazon QuickSight account in an inconsistent * state.

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

The failure action for the import job.

If you choose * ROLLBACK, failed import jobs will attempt to undo any asset changes * caused by the failed job.

If you choose DO_NOTHING, failed * import jobs will not attempt to roll back any asset changes caused by the failed * job, possibly keeping the Amazon QuickSight account in an inconsistent * state.

*/ inline bool FailureActionHasBeenSet() const { return m_failureActionHasBeenSet; } /** *

The failure action for the import job.

If you choose * ROLLBACK, failed import jobs will attempt to undo any asset changes * caused by the failed job.

If you choose DO_NOTHING, failed * import jobs will not attempt to roll back any asset changes caused by the failed * job, possibly keeping the Amazon QuickSight account in an inconsistent * state.

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

The failure action for the import job.

If you choose * ROLLBACK, failed import jobs will attempt to undo any asset changes * caused by the failed job.

If you choose DO_NOTHING, failed * import jobs will not attempt to roll back any asset changes caused by the failed * job, possibly keeping the Amazon QuickSight account in an inconsistent * state.

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

The failure action for the import job.

If you choose * ROLLBACK, failed import jobs will attempt to undo any asset changes * caused by the failed job.

If you choose DO_NOTHING, failed * import jobs will not attempt to roll back any asset changes caused by the failed * job, possibly keeping the Amazon QuickSight account in an inconsistent * state.

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

The failure action for the import job.

If you choose * ROLLBACK, failed import jobs will attempt to undo any asset changes * caused by the failed job.

If you choose DO_NOTHING, failed * import jobs will not attempt to roll back any asset changes caused by the failed * job, possibly keeping the Amazon QuickSight account in an inconsistent * state.

*/ inline StartAssetBundleImportJobRequest& WithFailureAction(AssetBundleImportFailureAction&& value) { SetFailureAction(std::move(value)); return *this;} private: Aws::String m_awsAccountId; bool m_awsAccountIdHasBeenSet = false; Aws::String m_assetBundleImportJobId; bool m_assetBundleImportJobIdHasBeenSet = false; AssetBundleImportSource m_assetBundleImportSource; bool m_assetBundleImportSourceHasBeenSet = false; AssetBundleImportJobOverrideParameters m_overrideParameters; bool m_overrideParametersHasBeenSet = false; AssetBundleImportFailureAction m_failureAction; bool m_failureActionHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws