AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
CreateWorkGroupRequest.h
1
6#pragma once
7#include <aws/athena/AthenaRequest.h>
8#include <aws/athena/Athena_EXPORTS.h>
9#include <aws/athena/model/Tag.h>
10#include <aws/athena/model/WorkGroupConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Athena {
18namespace Model {
19
23 public:
24 AWS_ATHENA_API CreateWorkGroupRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateWorkGroup"; }
31
32 AWS_ATHENA_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
66 inline const WorkGroupConfiguration& GetConfiguration() const { return m_configuration; }
67 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
68 template <typename ConfigurationT = WorkGroupConfiguration>
69 void SetConfiguration(ConfigurationT&& value) {
70 m_configurationHasBeenSet = true;
71 m_configuration = std::forward<ConfigurationT>(value);
72 }
73 template <typename ConfigurationT = WorkGroupConfiguration>
74 CreateWorkGroupRequest& WithConfiguration(ConfigurationT&& value) {
75 SetConfiguration(std::forward<ConfigurationT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetDescription() const { return m_description; }
85 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 template <typename DescriptionT = Aws::String>
87 void SetDescription(DescriptionT&& value) {
88 m_descriptionHasBeenSet = true;
89 m_description = std::forward<DescriptionT>(value);
90 }
91 template <typename DescriptionT = Aws::String>
92 CreateWorkGroupRequest& WithDescription(DescriptionT&& value) {
93 SetDescription(std::forward<DescriptionT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
103 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
104 template <typename TagsT = Aws::Vector<Tag>>
105 void SetTags(TagsT&& value) {
106 m_tagsHasBeenSet = true;
107 m_tags = std::forward<TagsT>(value);
108 }
109 template <typename TagsT = Aws::Vector<Tag>>
111 SetTags(std::forward<TagsT>(value));
112 return *this;
113 }
114 template <typename TagsT = Tag>
116 m_tagsHasBeenSet = true;
117 m_tags.emplace_back(std::forward<TagsT>(value));
118 return *this;
119 }
121 private:
122 Aws::String m_name;
123 bool m_nameHasBeenSet = false;
124
125 WorkGroupConfiguration m_configuration;
126 bool m_configurationHasBeenSet = false;
127
128 Aws::String m_description;
129 bool m_descriptionHasBeenSet = false;
130
131 Aws::Vector<Tag> m_tags;
132 bool m_tagsHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace Athena
137} // namespace Aws
CreateWorkGroupRequest & AddTags(TagsT &&value)
CreateWorkGroupRequest & WithConfiguration(ConfigurationT &&value)
const Aws::Vector< Tag > & GetTags() const
CreateWorkGroupRequest & WithDescription(DescriptionT &&value)
CreateWorkGroupRequest & WithName(NameT &&value)
CreateWorkGroupRequest & WithTags(TagsT &&value)
AWS_ATHENA_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
const WorkGroupConfiguration & GetConfiguration() const
AWS_ATHENA_API CreateWorkGroupRequest()=default
AWS_ATHENA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector