AWS SDK for C++

AWS SDK for C++ Version 1.11.690

Loading...
Searching...
No Matches
UpdateWorkGroupRequest.h
1
6#pragma once
7#include <aws/athena/AthenaRequest.h>
8#include <aws/athena/Athena_EXPORTS.h>
9#include <aws/athena/model/WorkGroupConfigurationUpdates.h>
10#include <aws/athena/model/WorkGroupState.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Athena {
17namespace Model {
18
22 public:
23 AWS_ATHENA_API UpdateWorkGroupRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateWorkGroup"; }
30
31 AWS_ATHENA_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetWorkGroup() const { return m_workGroup; }
40 inline bool WorkGroupHasBeenSet() const { return m_workGroupHasBeenSet; }
41 template <typename WorkGroupT = Aws::String>
42 void SetWorkGroup(WorkGroupT&& value) {
43 m_workGroupHasBeenSet = true;
44 m_workGroup = std::forward<WorkGroupT>(value);
45 }
46 template <typename WorkGroupT = Aws::String>
48 SetWorkGroup(std::forward<WorkGroupT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
65 UpdateWorkGroupRequest& WithDescription(DescriptionT&& value) {
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
75 inline const WorkGroupConfigurationUpdates& GetConfigurationUpdates() const { return m_configurationUpdates; }
76 inline bool ConfigurationUpdatesHasBeenSet() const { return m_configurationUpdatesHasBeenSet; }
77 template <typename ConfigurationUpdatesT = WorkGroupConfigurationUpdates>
78 void SetConfigurationUpdates(ConfigurationUpdatesT&& value) {
79 m_configurationUpdatesHasBeenSet = true;
80 m_configurationUpdates = std::forward<ConfigurationUpdatesT>(value);
81 }
82 template <typename ConfigurationUpdatesT = WorkGroupConfigurationUpdates>
83 UpdateWorkGroupRequest& WithConfigurationUpdates(ConfigurationUpdatesT&& value) {
84 SetConfigurationUpdates(std::forward<ConfigurationUpdatesT>(value));
85 return *this;
86 }
88
90
93 inline WorkGroupState GetState() const { return m_state; }
94 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
95 inline void SetState(WorkGroupState value) {
96 m_stateHasBeenSet = true;
97 m_state = value;
98 }
100 SetState(value);
101 return *this;
102 }
104 private:
105 Aws::String m_workGroup;
106 bool m_workGroupHasBeenSet = false;
107
108 Aws::String m_description;
109 bool m_descriptionHasBeenSet = false;
110
111 WorkGroupConfigurationUpdates m_configurationUpdates;
112 bool m_configurationUpdatesHasBeenSet = false;
113
115 bool m_stateHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace Athena
120} // namespace Aws
const WorkGroupConfigurationUpdates & GetConfigurationUpdates() const
virtual const char * GetServiceRequestName() const override
AWS_ATHENA_API Aws::String SerializePayload() const override
AWS_ATHENA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateWorkGroupRequest & WithDescription(DescriptionT &&value)
void SetConfigurationUpdates(ConfigurationUpdatesT &&value)
UpdateWorkGroupRequest & WithConfigurationUpdates(ConfigurationUpdatesT &&value)
AWS_ATHENA_API UpdateWorkGroupRequest()=default
UpdateWorkGroupRequest & WithWorkGroup(WorkGroupT &&value)
UpdateWorkGroupRequest & WithState(WorkGroupState value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String