AWS SDK for C++  1.9.16
AWS SDK for C++
UpdateWorkGroupRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Athena
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "UpdateWorkGroup"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetWorkGroup() const{ return m_workGroup; }
43 
47  inline bool WorkGroupHasBeenSet() const { return m_workGroupHasBeenSet; }
48 
52  inline void SetWorkGroup(const Aws::String& value) { m_workGroupHasBeenSet = true; m_workGroup = value; }
53 
57  inline void SetWorkGroup(Aws::String&& value) { m_workGroupHasBeenSet = true; m_workGroup = std::move(value); }
58 
62  inline void SetWorkGroup(const char* value) { m_workGroupHasBeenSet = true; m_workGroup.assign(value); }
63 
67  inline UpdateWorkGroupRequest& WithWorkGroup(const Aws::String& value) { SetWorkGroup(value); return *this;}
68 
72  inline UpdateWorkGroupRequest& WithWorkGroup(Aws::String&& value) { SetWorkGroup(std::move(value)); return *this;}
73 
77  inline UpdateWorkGroupRequest& WithWorkGroup(const char* value) { SetWorkGroup(value); return *this;}
78 
79 
83  inline const Aws::String& GetDescription() const{ return m_description; }
84 
88  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
89 
93  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
94 
98  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
99 
103  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
104 
108  inline UpdateWorkGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
109 
113  inline UpdateWorkGroupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
114 
118  inline UpdateWorkGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
119 
120 
124  inline const WorkGroupConfigurationUpdates& GetConfigurationUpdates() const{ return m_configurationUpdates; }
125 
129  inline bool ConfigurationUpdatesHasBeenSet() const { return m_configurationUpdatesHasBeenSet; }
130 
134  inline void SetConfigurationUpdates(const WorkGroupConfigurationUpdates& value) { m_configurationUpdatesHasBeenSet = true; m_configurationUpdates = value; }
135 
139  inline void SetConfigurationUpdates(WorkGroupConfigurationUpdates&& value) { m_configurationUpdatesHasBeenSet = true; m_configurationUpdates = std::move(value); }
140 
144  inline UpdateWorkGroupRequest& WithConfigurationUpdates(const WorkGroupConfigurationUpdates& value) { SetConfigurationUpdates(value); return *this;}
145 
149  inline UpdateWorkGroupRequest& WithConfigurationUpdates(WorkGroupConfigurationUpdates&& value) { SetConfigurationUpdates(std::move(value)); return *this;}
150 
151 
155  inline const WorkGroupState& GetState() const{ return m_state; }
156 
160  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
161 
165  inline void SetState(const WorkGroupState& value) { m_stateHasBeenSet = true; m_state = value; }
166 
170  inline void SetState(WorkGroupState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
171 
175  inline UpdateWorkGroupRequest& WithState(const WorkGroupState& value) { SetState(value); return *this;}
176 
180  inline UpdateWorkGroupRequest& WithState(WorkGroupState&& value) { SetState(std::move(value)); return *this;}
181 
182  private:
183 
184  Aws::String m_workGroup;
185  bool m_workGroupHasBeenSet;
186 
187  Aws::String m_description;
188  bool m_descriptionHasBeenSet;
189 
190  WorkGroupConfigurationUpdates m_configurationUpdates;
191  bool m_configurationUpdatesHasBeenSet;
192 
193  WorkGroupState m_state;
194  bool m_stateHasBeenSet;
195  };
196 
197 } // namespace Model
198 } // namespace Athena
199 } // namespace Aws
Aws::Athena::Model::UpdateWorkGroupRequest::WithWorkGroup
UpdateWorkGroupRequest & WithWorkGroup(Aws::String &&value)
Definition: UpdateWorkGroupRequest.h:72
Aws::Athena::Model::UpdateWorkGroupRequest::UpdateWorkGroupRequest
UpdateWorkGroupRequest()
Aws::Athena::Model::UpdateWorkGroupRequest::WorkGroupHasBeenSet
bool WorkGroupHasBeenSet() const
Definition: UpdateWorkGroupRequest.h:47
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Athena::Model::UpdateWorkGroupRequest::SetWorkGroup
void SetWorkGroup(const char *value)
Definition: UpdateWorkGroupRequest.h:62
Aws::Athena::Model::UpdateWorkGroupRequest
Definition: UpdateWorkGroupRequest.h:24
AWS_ATHENA_API
#define AWS_ATHENA_API
Definition: Athena_EXPORTS.h:28
Aws::Athena::AthenaRequest
Definition: AthenaRequest.h:17
Aws::Athena::Model::UpdateWorkGroupRequest::WithState
UpdateWorkGroupRequest & WithState(const WorkGroupState &value)
Definition: UpdateWorkGroupRequest.h:175
Aws::Athena::Model::UpdateWorkGroupRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: UpdateWorkGroupRequest.h:93
Aws::Athena::Model::UpdateWorkGroupRequest::WithWorkGroup
UpdateWorkGroupRequest & WithWorkGroup(const char *value)
Definition: UpdateWorkGroupRequest.h:77
Aws::Athena::Model::UpdateWorkGroupRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: UpdateWorkGroupRequest.h:98
Aws::Athena::Model::UpdateWorkGroupRequest::GetState
const WorkGroupState & GetState() const
Definition: UpdateWorkGroupRequest.h:155
Aws::Athena::Model::UpdateWorkGroupRequest::WithDescription
UpdateWorkGroupRequest & WithDescription(Aws::String &&value)
Definition: UpdateWorkGroupRequest.h:113
Aws::Athena::Model::UpdateWorkGroupRequest::GetWorkGroup
const Aws::String & GetWorkGroup() const
Definition: UpdateWorkGroupRequest.h:42
Aws::Athena::Model::UpdateWorkGroupRequest::SetState
void SetState(const WorkGroupState &value)
Definition: UpdateWorkGroupRequest.h:165
Aws::Athena::Model::UpdateWorkGroupRequest::ConfigurationUpdatesHasBeenSet
bool ConfigurationUpdatesHasBeenSet() const
Definition: UpdateWorkGroupRequest.h:129
Aws::Athena::Model::UpdateWorkGroupRequest::SerializePayload
Aws::String SerializePayload() const override
WorkGroupConfigurationUpdates.h
Aws::Athena::Model::UpdateWorkGroupRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: UpdateWorkGroupRequest.h:88
Aws::Athena::Model::UpdateWorkGroupRequest::SetDescription
void SetDescription(const char *value)
Definition: UpdateWorkGroupRequest.h:103
Aws::Athena::Model::UpdateWorkGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateWorkGroupRequest.h:32
Aws::Athena::Model::WorkGroupConfigurationUpdates
Definition: WorkGroupConfigurationUpdates.h:38
WorkGroupState.h
Aws::Athena::Model::UpdateWorkGroupRequest::StateHasBeenSet
bool StateHasBeenSet() const
Definition: UpdateWorkGroupRequest.h:160
AWSString.h
Athena_EXPORTS.h
Aws::Athena::Model::UpdateWorkGroupRequest::WithWorkGroup
UpdateWorkGroupRequest & WithWorkGroup(const Aws::String &value)
Definition: UpdateWorkGroupRequest.h:67
Aws::Athena::Model::UpdateWorkGroupRequest::WithDescription
UpdateWorkGroupRequest & WithDescription(const Aws::String &value)
Definition: UpdateWorkGroupRequest.h:108
Aws::Athena::Model::UpdateWorkGroupRequest::SetConfigurationUpdates
void SetConfigurationUpdates(const WorkGroupConfigurationUpdates &value)
Definition: UpdateWorkGroupRequest.h:134
Aws::Athena::Model::UpdateWorkGroupRequest::WithConfigurationUpdates
UpdateWorkGroupRequest & WithConfigurationUpdates(WorkGroupConfigurationUpdates &&value)
Definition: UpdateWorkGroupRequest.h:149
Aws::Athena::Model::WorkGroupState
WorkGroupState
Definition: WorkGroupState.h:17
Aws::Athena::Model::UpdateWorkGroupRequest::SetWorkGroup
void SetWorkGroup(const Aws::String &value)
Definition: UpdateWorkGroupRequest.h:52
Aws::Athena::Model::UpdateWorkGroupRequest::GetDescription
const Aws::String & GetDescription() const
Definition: UpdateWorkGroupRequest.h:83
Aws
Definition: AccessManagementClient.h:15
Aws::Athena::Model::UpdateWorkGroupRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Athena::Model::UpdateWorkGroupRequest::WithState
UpdateWorkGroupRequest & WithState(WorkGroupState &&value)
Definition: UpdateWorkGroupRequest.h:180
Aws::Athena::Model::UpdateWorkGroupRequest::WithConfigurationUpdates
UpdateWorkGroupRequest & WithConfigurationUpdates(const WorkGroupConfigurationUpdates &value)
Definition: UpdateWorkGroupRequest.h:144
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Athena::Model::UpdateWorkGroupRequest::GetConfigurationUpdates
const WorkGroupConfigurationUpdates & GetConfigurationUpdates() const
Definition: UpdateWorkGroupRequest.h:124
Aws::Athena::Model::UpdateWorkGroupRequest::SetConfigurationUpdates
void SetConfigurationUpdates(WorkGroupConfigurationUpdates &&value)
Definition: UpdateWorkGroupRequest.h:139
Aws::Athena::Model::UpdateWorkGroupRequest::WithDescription
UpdateWorkGroupRequest & WithDescription(const char *value)
Definition: UpdateWorkGroupRequest.h:118
AthenaRequest.h
Aws::Athena::Model::UpdateWorkGroupRequest::SetState
void SetState(WorkGroupState &&value)
Definition: UpdateWorkGroupRequest.h:170
Aws::Athena::Model::UpdateWorkGroupRequest::SetWorkGroup
void SetWorkGroup(Aws::String &&value)
Definition: UpdateWorkGroupRequest.h:57