AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateWorkGroupRequest.h
1
6#pragma once
7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/athena/AthenaRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/athena/model/WorkGroupConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/athena/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Athena
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_ATHENA_API CreateWorkGroupRequest() = default;
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_ATHENA_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template<typename NameT = Aws::String>
47 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
48 template<typename NameT = Aws::String>
49 CreateWorkGroupRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
51
53
64 inline const WorkGroupConfiguration& GetConfiguration() const { return m_configuration; }
65 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
66 template<typename ConfigurationT = WorkGroupConfiguration>
67 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
68 template<typename ConfigurationT = WorkGroupConfiguration>
69 CreateWorkGroupRequest& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template<typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
80 template<typename DescriptionT = Aws::String>
81 CreateWorkGroupRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
83
85
88 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
89 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
90 template<typename TagsT = Aws::Vector<Tag>>
91 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
92 template<typename TagsT = Aws::Vector<Tag>>
93 CreateWorkGroupRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
94 template<typename TagsT = Tag>
95 CreateWorkGroupRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
97 private:
98
99 Aws::String m_name;
100 bool m_nameHasBeenSet = false;
101
102 WorkGroupConfiguration m_configuration;
103 bool m_configurationHasBeenSet = false;
104
105 Aws::String m_description;
106 bool m_descriptionHasBeenSet = false;
107
108 Aws::Vector<Tag> m_tags;
109 bool m_tagsHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace Athena
114} // 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