/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace QuickSight { namespace Model { /** */ class DeleteAnalysisRequest : public QuickSightRequest { public: AWS_QUICKSIGHT_API DeleteAnalysisRequest(); // 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 "DeleteAnalysis"; } AWS_QUICKSIGHT_API Aws::String SerializePayload() const override; AWS_QUICKSIGHT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The ID of the Amazon Web Services account where you want to delete an * analysis.

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

The ID of the Amazon Web Services account where you want to delete an * analysis.

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

The ID of the Amazon Web Services account where you want to delete an * analysis.

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

The ID of the Amazon Web Services account where you want to delete an * analysis.

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

The ID of the Amazon Web Services account where you want to delete an * analysis.

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

The ID of the Amazon Web Services account where you want to delete an * analysis.

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

The ID of the Amazon Web Services account where you want to delete an * analysis.

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

The ID of the Amazon Web Services account where you want to delete an * analysis.

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

The ID of the analysis that you're deleting.

*/ inline const Aws::String& GetAnalysisId() const{ return m_analysisId; } /** *

The ID of the analysis that you're deleting.

*/ inline bool AnalysisIdHasBeenSet() const { return m_analysisIdHasBeenSet; } /** *

The ID of the analysis that you're deleting.

*/ inline void SetAnalysisId(const Aws::String& value) { m_analysisIdHasBeenSet = true; m_analysisId = value; } /** *

The ID of the analysis that you're deleting.

*/ inline void SetAnalysisId(Aws::String&& value) { m_analysisIdHasBeenSet = true; m_analysisId = std::move(value); } /** *

The ID of the analysis that you're deleting.

*/ inline void SetAnalysisId(const char* value) { m_analysisIdHasBeenSet = true; m_analysisId.assign(value); } /** *

The ID of the analysis that you're deleting.

*/ inline DeleteAnalysisRequest& WithAnalysisId(const Aws::String& value) { SetAnalysisId(value); return *this;} /** *

The ID of the analysis that you're deleting.

*/ inline DeleteAnalysisRequest& WithAnalysisId(Aws::String&& value) { SetAnalysisId(std::move(value)); return *this;} /** *

The ID of the analysis that you're deleting.

*/ inline DeleteAnalysisRequest& WithAnalysisId(const char* value) { SetAnalysisId(value); return *this;} /** *

A value that specifies the number of days that Amazon QuickSight waits before * it deletes the analysis. You can't use this parameter with the * ForceDeleteWithoutRecovery option in the same API call. The default * value is 30.

*/ inline long long GetRecoveryWindowInDays() const{ return m_recoveryWindowInDays; } /** *

A value that specifies the number of days that Amazon QuickSight waits before * it deletes the analysis. You can't use this parameter with the * ForceDeleteWithoutRecovery option in the same API call. The default * value is 30.

*/ inline bool RecoveryWindowInDaysHasBeenSet() const { return m_recoveryWindowInDaysHasBeenSet; } /** *

A value that specifies the number of days that Amazon QuickSight waits before * it deletes the analysis. You can't use this parameter with the * ForceDeleteWithoutRecovery option in the same API call. The default * value is 30.

*/ inline void SetRecoveryWindowInDays(long long value) { m_recoveryWindowInDaysHasBeenSet = true; m_recoveryWindowInDays = value; } /** *

A value that specifies the number of days that Amazon QuickSight waits before * it deletes the analysis. You can't use this parameter with the * ForceDeleteWithoutRecovery option in the same API call. The default * value is 30.

*/ inline DeleteAnalysisRequest& WithRecoveryWindowInDays(long long value) { SetRecoveryWindowInDays(value); return *this;} /** *

This option defaults to the value NoForceDeleteWithoutRecovery. * To immediately delete the analysis, add the * ForceDeleteWithoutRecovery option. You can't restore an analysis * after it's deleted.

*/ inline bool GetForceDeleteWithoutRecovery() const{ return m_forceDeleteWithoutRecovery; } /** *

This option defaults to the value NoForceDeleteWithoutRecovery. * To immediately delete the analysis, add the * ForceDeleteWithoutRecovery option. You can't restore an analysis * after it's deleted.

*/ inline bool ForceDeleteWithoutRecoveryHasBeenSet() const { return m_forceDeleteWithoutRecoveryHasBeenSet; } /** *

This option defaults to the value NoForceDeleteWithoutRecovery. * To immediately delete the analysis, add the * ForceDeleteWithoutRecovery option. You can't restore an analysis * after it's deleted.

*/ inline void SetForceDeleteWithoutRecovery(bool value) { m_forceDeleteWithoutRecoveryHasBeenSet = true; m_forceDeleteWithoutRecovery = value; } /** *

This option defaults to the value NoForceDeleteWithoutRecovery. * To immediately delete the analysis, add the * ForceDeleteWithoutRecovery option. You can't restore an analysis * after it's deleted.

*/ inline DeleteAnalysisRequest& WithForceDeleteWithoutRecovery(bool value) { SetForceDeleteWithoutRecovery(value); return *this;} private: Aws::String m_awsAccountId; bool m_awsAccountIdHasBeenSet = false; Aws::String m_analysisId; bool m_analysisIdHasBeenSet = false; long long m_recoveryWindowInDays; bool m_recoveryWindowInDaysHasBeenSet = false; bool m_forceDeleteWithoutRecovery; bool m_forceDeleteWithoutRecoveryHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws