AWS SDK for C++  1.9.20
AWS SDK for C++
CreateWorkGroupRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <aws/athena/model/Tag.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Athena
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreateWorkGroup"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
43  inline const Aws::String& GetName() const{ return m_name; }
44 
48  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 
53  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54 
58  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
59 
63  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 
68  inline CreateWorkGroupRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
69 
73  inline CreateWorkGroupRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
74 
78  inline CreateWorkGroupRequest& WithName(const char* value) { SetName(value); return *this;}
79 
80 
91  inline const WorkGroupConfiguration& GetConfiguration() const{ return m_configuration; }
92 
103  inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
104 
115  inline void SetConfiguration(const WorkGroupConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; }
116 
127  inline void SetConfiguration(WorkGroupConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
128 
139  inline CreateWorkGroupRequest& WithConfiguration(const WorkGroupConfiguration& value) { SetConfiguration(value); return *this;}
140 
151  inline CreateWorkGroupRequest& WithConfiguration(WorkGroupConfiguration&& value) { SetConfiguration(std::move(value)); return *this;}
152 
153 
157  inline const Aws::String& GetDescription() const{ return m_description; }
158 
162  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
163 
167  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
168 
172  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
173 
177  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
178 
182  inline CreateWorkGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
183 
187  inline CreateWorkGroupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
188 
192  inline CreateWorkGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
193 
194 
198  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
199 
203  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
204 
208  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
209 
213  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
214 
218  inline CreateWorkGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
219 
223  inline CreateWorkGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
224 
228  inline CreateWorkGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
229 
233  inline CreateWorkGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
234 
235  private:
236 
237  Aws::String m_name;
238  bool m_nameHasBeenSet;
239 
240  WorkGroupConfiguration m_configuration;
241  bool m_configurationHasBeenSet;
242 
243  Aws::String m_description;
244  bool m_descriptionHasBeenSet;
245 
246  Aws::Vector<Tag> m_tags;
247  bool m_tagsHasBeenSet;
248  };
249 
250 } // namespace Model
251 } // namespace Athena
252 } // namespace Aws
Aws::Athena::Model::CreateWorkGroupRequest::SetConfiguration
void SetConfiguration(WorkGroupConfiguration &&value)
Definition: CreateWorkGroupRequest.h:127
Aws::Athena::Model::CreateWorkGroupRequest::SetConfiguration
void SetConfiguration(const WorkGroupConfiguration &value)
Definition: CreateWorkGroupRequest.h:115
Aws::Athena::Model::CreateWorkGroupRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateWorkGroupRequest.h:162
Tag.h
Aws::Athena::Model::CreateWorkGroupRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateWorkGroupRequest.h:172
Aws::Athena::Model::CreateWorkGroupRequest::GetConfiguration
const WorkGroupConfiguration & GetConfiguration() const
Definition: CreateWorkGroupRequest.h:91
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Athena::Model::CreateWorkGroupRequest::WithDescription
CreateWorkGroupRequest & WithDescription(Aws::String &&value)
Definition: CreateWorkGroupRequest.h:187
Aws::Athena::Model::CreateWorkGroupRequest::AddTags
CreateWorkGroupRequest & AddTags(Tag &&value)
Definition: CreateWorkGroupRequest.h:233
AWS_ATHENA_API
#define AWS_ATHENA_API
Definition: Athena_EXPORTS.h:28
Aws::Athena::Model::CreateWorkGroupRequest::AddTags
CreateWorkGroupRequest & AddTags(const Tag &value)
Definition: CreateWorkGroupRequest.h:228
Aws::Athena::AthenaRequest
Definition: AthenaRequest.h:17
Aws::Athena::Model::CreateWorkGroupRequest::GetName
const Aws::String & GetName() const
Definition: CreateWorkGroupRequest.h:43
Aws::Athena::Model::CreateWorkGroupRequest::ConfigurationHasBeenSet
bool ConfigurationHasBeenSet() const
Definition: CreateWorkGroupRequest.h:103
Aws::Athena::Model::CreateWorkGroupRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateWorkGroupRequest.h:203
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Athena::Model::CreateWorkGroupRequest::WithConfiguration
CreateWorkGroupRequest & WithConfiguration(const WorkGroupConfiguration &value)
Definition: CreateWorkGroupRequest.h:139
AWSVector.h
Aws::Athena::Model::CreateWorkGroupRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateWorkGroupRequest.h:157
WorkGroupConfiguration.h
Aws::Athena::Model::CreateWorkGroupRequest::WithTags
CreateWorkGroupRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateWorkGroupRequest.h:218
Aws::Athena::Model::CreateWorkGroupRequest::WithDescription
CreateWorkGroupRequest & WithDescription(const char *value)
Definition: CreateWorkGroupRequest.h:192
Aws::Athena::Model::CreateWorkGroupRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateWorkGroupRequest.h:53
Aws::Athena::Model::CreateWorkGroupRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Athena::Model::CreateWorkGroupRequest::CreateWorkGroupRequest
CreateWorkGroupRequest()
Aws::Athena::Model::CreateWorkGroupRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateWorkGroupRequest.h:177
Aws::Athena::Model::CreateWorkGroupRequest
Definition: CreateWorkGroupRequest.h:25
Aws::Athena::Model::CreateWorkGroupRequest::WithName
CreateWorkGroupRequest & WithName(Aws::String &&value)
Definition: CreateWorkGroupRequest.h:73
AWSString.h
Athena_EXPORTS.h
Aws::Athena::Model::CreateWorkGroupRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateWorkGroupRequest.h:48
Aws::Athena::Model::CreateWorkGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateWorkGroupRequest.h:33
Aws::Athena::Model::CreateWorkGroupRequest::WithName
CreateWorkGroupRequest & WithName(const char *value)
Definition: CreateWorkGroupRequest.h:78
Aws::Athena::Model::Tag
Definition: Tag.h:44
Aws::Athena::Model::CreateWorkGroupRequest::WithConfiguration
CreateWorkGroupRequest & WithConfiguration(WorkGroupConfiguration &&value)
Definition: CreateWorkGroupRequest.h:151
Aws
Definition: AccessManagementClient.h:15
Aws::Athena::Model::CreateWorkGroupRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateWorkGroupRequest.h:198
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Athena::Model::CreateWorkGroupRequest::SetName
void SetName(const char *value)
Definition: CreateWorkGroupRequest.h:63
Aws::Athena::Model::CreateWorkGroupRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateWorkGroupRequest.h:208
Aws::Athena::Model::CreateWorkGroupRequest::WithTags
CreateWorkGroupRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateWorkGroupRequest.h:223
Aws::Athena::Model::CreateWorkGroupRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateWorkGroupRequest.h:58
Aws::Athena::Model::CreateWorkGroupRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateWorkGroupRequest.h:167
AthenaRequest.h
Aws::Athena::Model::CreateWorkGroupRequest::WithName
CreateWorkGroupRequest & WithName(const Aws::String &value)
Definition: CreateWorkGroupRequest.h:68
Aws::Athena::Model::CreateWorkGroupRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateWorkGroupRequest.h:213
Aws::Athena::Model::WorkGroupConfiguration
Definition: WorkGroupConfiguration.h:41
Aws::Athena::Model::CreateWorkGroupRequest::WithDescription
CreateWorkGroupRequest & WithDescription(const Aws::String &value)
Definition: CreateWorkGroupRequest.h:182
Aws::Athena::Model::CreateWorkGroupRequest::SerializePayload
Aws::String SerializePayload() const override