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

The specified workgroup that will be updated.

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

The specified workgroup that will be updated.

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

The specified workgroup that will be updated.

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

The specified workgroup that will be updated.

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

The specified workgroup that will be updated.

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

The specified workgroup that will be updated.

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

The specified workgroup that will be updated.

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

The specified workgroup that will be updated.

*/ inline UpdateWorkGroupRequest& WithWorkGroup(const char* value) { SetWorkGroup(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 UpdateWorkGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The workgroup description.

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

The workgroup description.

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

Contains configuration updates for an Athena SQL workgroup.

*/ inline const WorkGroupConfigurationUpdates& GetConfigurationUpdates() const{ return m_configurationUpdates; } /** *

Contains configuration updates for an Athena SQL workgroup.

*/ inline bool ConfigurationUpdatesHasBeenSet() const { return m_configurationUpdatesHasBeenSet; } /** *

Contains configuration updates for an Athena SQL workgroup.

*/ inline void SetConfigurationUpdates(const WorkGroupConfigurationUpdates& value) { m_configurationUpdatesHasBeenSet = true; m_configurationUpdates = value; } /** *

Contains configuration updates for an Athena SQL workgroup.

*/ inline void SetConfigurationUpdates(WorkGroupConfigurationUpdates&& value) { m_configurationUpdatesHasBeenSet = true; m_configurationUpdates = std::move(value); } /** *

Contains configuration updates for an Athena SQL workgroup.

*/ inline UpdateWorkGroupRequest& WithConfigurationUpdates(const WorkGroupConfigurationUpdates& value) { SetConfigurationUpdates(value); return *this;} /** *

Contains configuration updates for an Athena SQL workgroup.

*/ inline UpdateWorkGroupRequest& WithConfigurationUpdates(WorkGroupConfigurationUpdates&& value) { SetConfigurationUpdates(std::move(value)); return *this;} /** *

The workgroup state that will be updated for the given workgroup.

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

The workgroup state that will be updated for the given workgroup.

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

The workgroup state that will be updated for the given workgroup.

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

The workgroup state that will be updated for the given workgroup.

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

The workgroup state that will be updated for the given workgroup.

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

The workgroup state that will be updated for the given workgroup.

*/ inline UpdateWorkGroupRequest& WithState(WorkGroupState&& value) { SetState(std::move(value)); return *this;} private: Aws::String m_workGroup; bool m_workGroupHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; WorkGroupConfigurationUpdates m_configurationUpdates; bool m_configurationUpdatesHasBeenSet = false; WorkGroupState m_state; bool m_stateHasBeenSet = false; }; } // namespace Model } // namespace Athena } // namespace Aws