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

The summary information for the workgroup, which includes its name, state, * description, and the date and time it was created.

See Also:

AWS * API Reference

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

The name of the workgroup.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the workgroup.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the workgroup.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the workgroup.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the workgroup.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the workgroup.

*/ inline WorkGroupSummary& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the workgroup.

*/ inline WorkGroupSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the workgroup.

*/ inline WorkGroupSummary& WithName(const char* value) { SetName(value); return *this;} /** *

The state of the workgroup.

*/ inline const WorkGroupState& GetState() const{ return m_state; } /** *

The state of the workgroup.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The state of the workgroup.

*/ inline void SetState(const WorkGroupState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The state of the workgroup.

*/ inline void SetState(WorkGroupState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The state of the workgroup.

*/ inline WorkGroupSummary& WithState(const WorkGroupState& value) { SetState(value); return *this;} /** *

The state of the workgroup.

*/ inline WorkGroupSummary& WithState(WorkGroupState&& value) { SetState(std::move(value)); return *this;} /** *

The workgroup description.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The workgroup description.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The workgroup description.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The workgroup description.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The workgroup description.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The workgroup description.

*/ inline WorkGroupSummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The workgroup description.

*/ inline WorkGroupSummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The workgroup description.

*/ inline WorkGroupSummary& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The workgroup creation date and time.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

The workgroup creation date and time.

*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

The workgroup creation date and time.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *

The workgroup creation date and time.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *

The workgroup creation date and time.

*/ inline WorkGroupSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

The workgroup creation date and time.

*/ inline WorkGroupSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *

The engine version setting for all queries on the workgroup. Queries on the * AmazonAthenaPreviewFunctionality workgroup run on the preview * engine regardless of this setting.

*/ inline const EngineVersion& GetEngineVersion() const{ return m_engineVersion; } /** *

The engine version setting for all queries on the workgroup. Queries on the * AmazonAthenaPreviewFunctionality workgroup run on the preview * engine regardless of this setting.

*/ inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; } /** *

The engine version setting for all queries on the workgroup. Queries on the * AmazonAthenaPreviewFunctionality workgroup run on the preview * engine regardless of this setting.

*/ inline void SetEngineVersion(const EngineVersion& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; } /** *

The engine version setting for all queries on the workgroup. Queries on the * AmazonAthenaPreviewFunctionality workgroup run on the preview * engine regardless of this setting.

*/ inline void SetEngineVersion(EngineVersion&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); } /** *

The engine version setting for all queries on the workgroup. Queries on the * AmazonAthenaPreviewFunctionality workgroup run on the preview * engine regardless of this setting.

*/ inline WorkGroupSummary& WithEngineVersion(const EngineVersion& value) { SetEngineVersion(value); return *this;} /** *

The engine version setting for all queries on the workgroup. Queries on the * AmazonAthenaPreviewFunctionality workgroup run on the preview * engine regardless of this setting.

*/ inline WorkGroupSummary& WithEngineVersion(EngineVersion&& value) { SetEngineVersion(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; WorkGroupState m_state; bool m_stateHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; EngineVersion m_engineVersion; bool m_engineVersionHasBeenSet = false; }; } // namespace Model } // namespace Athena } // namespace Aws