/** * 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 Athena { namespace Model { /** */ class CreateWorkGroupRequest : public AthenaRequest { public: AWS_ATHENA_API CreateWorkGroupRequest(); // 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 "CreateWorkGroup"; } AWS_ATHENA_API Aws::String SerializePayload() const override; AWS_ATHENA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The workgroup name.

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

The workgroup name.

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

The workgroup name.

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

The workgroup name.

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

The workgroup name.

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

The workgroup name.

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

The workgroup name.

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

The workgroup name.

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

Contains configuration information for creating an Athena SQL workgroup or * Spark enabled Athena workgroup. Athena SQL workgroup configuration includes the * location in Amazon S3 where query and calculation results are stored, the * encryption configuration, if any, used for encrypting query results, whether the * Amazon CloudWatch Metrics are enabled for the workgroup, the limit for the * amount of bytes scanned (cutoff) per query, if it is specified, and whether * workgroup's settings (specified with EnforceWorkGroupConfiguration) * in the WorkGroupConfiguration override client-side settings. See * WorkGroupConfiguration$EnforceWorkGroupConfiguration.

*/ inline const WorkGroupConfiguration& GetConfiguration() const{ return m_configuration; } /** *

Contains configuration information for creating an Athena SQL workgroup or * Spark enabled Athena workgroup. Athena SQL workgroup configuration includes the * location in Amazon S3 where query and calculation results are stored, the * encryption configuration, if any, used for encrypting query results, whether the * Amazon CloudWatch Metrics are enabled for the workgroup, the limit for the * amount of bytes scanned (cutoff) per query, if it is specified, and whether * workgroup's settings (specified with EnforceWorkGroupConfiguration) * in the WorkGroupConfiguration override client-side settings. See * WorkGroupConfiguration$EnforceWorkGroupConfiguration.

*/ inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; } /** *

Contains configuration information for creating an Athena SQL workgroup or * Spark enabled Athena workgroup. Athena SQL workgroup configuration includes the * location in Amazon S3 where query and calculation results are stored, the * encryption configuration, if any, used for encrypting query results, whether the * Amazon CloudWatch Metrics are enabled for the workgroup, the limit for the * amount of bytes scanned (cutoff) per query, if it is specified, and whether * workgroup's settings (specified with EnforceWorkGroupConfiguration) * in the WorkGroupConfiguration override client-side settings. See * WorkGroupConfiguration$EnforceWorkGroupConfiguration.

*/ inline void SetConfiguration(const WorkGroupConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; } /** *

Contains configuration information for creating an Athena SQL workgroup or * Spark enabled Athena workgroup. Athena SQL workgroup configuration includes the * location in Amazon S3 where query and calculation results are stored, the * encryption configuration, if any, used for encrypting query results, whether the * Amazon CloudWatch Metrics are enabled for the workgroup, the limit for the * amount of bytes scanned (cutoff) per query, if it is specified, and whether * workgroup's settings (specified with EnforceWorkGroupConfiguration) * in the WorkGroupConfiguration override client-side settings. See * WorkGroupConfiguration$EnforceWorkGroupConfiguration.

*/ inline void SetConfiguration(WorkGroupConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); } /** *

Contains configuration information for creating an Athena SQL workgroup or * Spark enabled Athena workgroup. Athena SQL workgroup configuration includes the * location in Amazon S3 where query and calculation results are stored, the * encryption configuration, if any, used for encrypting query results, whether the * Amazon CloudWatch Metrics are enabled for the workgroup, the limit for the * amount of bytes scanned (cutoff) per query, if it is specified, and whether * workgroup's settings (specified with EnforceWorkGroupConfiguration) * in the WorkGroupConfiguration override client-side settings. See * WorkGroupConfiguration$EnforceWorkGroupConfiguration.

*/ inline CreateWorkGroupRequest& WithConfiguration(const WorkGroupConfiguration& value) { SetConfiguration(value); return *this;} /** *

Contains configuration information for creating an Athena SQL workgroup or * Spark enabled Athena workgroup. Athena SQL workgroup configuration includes the * location in Amazon S3 where query and calculation results are stored, the * encryption configuration, if any, used for encrypting query results, whether the * Amazon CloudWatch Metrics are enabled for the workgroup, the limit for the * amount of bytes scanned (cutoff) per query, if it is specified, and whether * workgroup's settings (specified with EnforceWorkGroupConfiguration) * in the WorkGroupConfiguration override client-side settings. See * WorkGroupConfiguration$EnforceWorkGroupConfiguration.

*/ inline CreateWorkGroupRequest& WithConfiguration(WorkGroupConfiguration&& value) { SetConfiguration(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 CreateWorkGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The workgroup description.

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

The workgroup description.

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

A list of comma separated tags to add to the workgroup that is created.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A list of comma separated tags to add to the workgroup that is created.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of comma separated tags to add to the workgroup that is created.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of comma separated tags to add to the workgroup that is created.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of comma separated tags to add to the workgroup that is created.

*/ inline CreateWorkGroupRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of comma separated tags to add to the workgroup that is created.

*/ inline CreateWorkGroupRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A list of comma separated tags to add to the workgroup that is created.

*/ inline CreateWorkGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of comma separated tags to add to the workgroup that is created.

*/ inline CreateWorkGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; WorkGroupConfiguration m_configuration; bool m_configurationHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Athena } // namespace Aws