/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace QuickSight { namespace Model { /** *

Parameters for Amazon Athena.

See Also:

AWS * API Reference

*/ class AthenaParameters { public: AWS_QUICKSIGHT_API AthenaParameters(); AWS_QUICKSIGHT_API AthenaParameters(Aws::Utils::Json::JsonView jsonValue); AWS_QUICKSIGHT_API AthenaParameters& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The workgroup that Amazon Athena uses.

*/ inline const Aws::String& GetWorkGroup() const{ return m_workGroup; } /** *

The workgroup that Amazon Athena uses.

*/ inline bool WorkGroupHasBeenSet() const { return m_workGroupHasBeenSet; } /** *

The workgroup that Amazon Athena uses.

*/ inline void SetWorkGroup(const Aws::String& value) { m_workGroupHasBeenSet = true; m_workGroup = value; } /** *

The workgroup that Amazon Athena uses.

*/ inline void SetWorkGroup(Aws::String&& value) { m_workGroupHasBeenSet = true; m_workGroup = std::move(value); } /** *

The workgroup that Amazon Athena uses.

*/ inline void SetWorkGroup(const char* value) { m_workGroupHasBeenSet = true; m_workGroup.assign(value); } /** *

The workgroup that Amazon Athena uses.

*/ inline AthenaParameters& WithWorkGroup(const Aws::String& value) { SetWorkGroup(value); return *this;} /** *

The workgroup that Amazon Athena uses.

*/ inline AthenaParameters& WithWorkGroup(Aws::String&& value) { SetWorkGroup(std::move(value)); return *this;} /** *

The workgroup that Amazon Athena uses.

*/ inline AthenaParameters& WithWorkGroup(const char* value) { SetWorkGroup(value); return *this;} /** *

Use the RoleArn structure to override an account-wide role for a * specific Athena data source. For example, say an account administrator has * turned off all Athena access with an account-wide role. The administrator can * then use RoleArn to bypass the account-wide role and allow Athena * access for the single Athena data source that is specified in the structure, * even if the account-wide role forbidding Athena access is still active.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

Use the RoleArn structure to override an account-wide role for a * specific Athena data source. For example, say an account administrator has * turned off all Athena access with an account-wide role. The administrator can * then use RoleArn to bypass the account-wide role and allow Athena * access for the single Athena data source that is specified in the structure, * even if the account-wide role forbidding Athena access is still active.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

Use the RoleArn structure to override an account-wide role for a * specific Athena data source. For example, say an account administrator has * turned off all Athena access with an account-wide role. The administrator can * then use RoleArn to bypass the account-wide role and allow Athena * access for the single Athena data source that is specified in the structure, * even if the account-wide role forbidding Athena access is still active.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

Use the RoleArn structure to override an account-wide role for a * specific Athena data source. For example, say an account administrator has * turned off all Athena access with an account-wide role. The administrator can * then use RoleArn to bypass the account-wide role and allow Athena * access for the single Athena data source that is specified in the structure, * even if the account-wide role forbidding Athena access is still active.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

Use the RoleArn structure to override an account-wide role for a * specific Athena data source. For example, say an account administrator has * turned off all Athena access with an account-wide role. The administrator can * then use RoleArn to bypass the account-wide role and allow Athena * access for the single Athena data source that is specified in the structure, * even if the account-wide role forbidding Athena access is still active.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

Use the RoleArn structure to override an account-wide role for a * specific Athena data source. For example, say an account administrator has * turned off all Athena access with an account-wide role. The administrator can * then use RoleArn to bypass the account-wide role and allow Athena * access for the single Athena data source that is specified in the structure, * even if the account-wide role forbidding Athena access is still active.

*/ inline AthenaParameters& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

Use the RoleArn structure to override an account-wide role for a * specific Athena data source. For example, say an account administrator has * turned off all Athena access with an account-wide role. The administrator can * then use RoleArn to bypass the account-wide role and allow Athena * access for the single Athena data source that is specified in the structure, * even if the account-wide role forbidding Athena access is still active.

*/ inline AthenaParameters& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

Use the RoleArn structure to override an account-wide role for a * specific Athena data source. For example, say an account administrator has * turned off all Athena access with an account-wide role. The administrator can * then use RoleArn to bypass the account-wide role and allow Athena * access for the single Athena data source that is specified in the structure, * even if the account-wide role forbidding Athena access is still active.

*/ inline AthenaParameters& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} private: Aws::String m_workGroup; bool m_workGroupHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws