AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
47 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
48 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
49 inline CreateWorkGroupRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
50 inline CreateWorkGroupRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
51 inline CreateWorkGroupRequest& WithName(const char* value) { SetName(value); return *this;}
53
55
66 inline const WorkGroupConfiguration& GetConfiguration() const{ return m_configuration; }
67 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
68 inline void SetConfiguration(const WorkGroupConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; }
69 inline void SetConfiguration(WorkGroupConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
71 inline CreateWorkGroupRequest& WithConfiguration(WorkGroupConfiguration&& value) { SetConfiguration(std::move(value)); return *this;}
73
75
78 inline const Aws::String& GetDescription() const{ return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
81 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
82 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
83 inline CreateWorkGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
84 inline CreateWorkGroupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
85 inline CreateWorkGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
87
89
92 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
93 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
94 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
95 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
96 inline CreateWorkGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
97 inline CreateWorkGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
98 inline CreateWorkGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
99 inline CreateWorkGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
101 private:
102
103 Aws::String m_name;
104 bool m_nameHasBeenSet = false;
105
106 WorkGroupConfiguration m_configuration;
107 bool m_configurationHasBeenSet = false;
108
109 Aws::String m_description;
110 bool m_descriptionHasBeenSet = false;
111
112 Aws::Vector<Tag> m_tags;
113 bool m_tagsHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace Athena
118} // namespace Aws
CreateWorkGroupRequest & WithTags(Aws::Vector< Tag > &&value)
CreateWorkGroupRequest & WithDescription(const char *value)
CreateWorkGroupRequest & WithName(const char *value)
CreateWorkGroupRequest & WithConfiguration(const WorkGroupConfiguration &value)
void SetConfiguration(WorkGroupConfiguration &&value)
const Aws::Vector< Tag > & GetTags() const
CreateWorkGroupRequest & AddTags(Tag &&value)
CreateWorkGroupRequest & WithDescription(const Aws::String &value)
CreateWorkGroupRequest & WithName(const Aws::String &value)
CreateWorkGroupRequest & WithName(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
void SetConfiguration(const WorkGroupConfiguration &value)
CreateWorkGroupRequest & WithConfiguration(WorkGroupConfiguration &&value)
AWS_ATHENA_API Aws::String SerializePayload() const override
CreateWorkGroupRequest & WithTags(const Aws::Vector< Tag > &value)
CreateWorkGroupRequest & AddTags(const Tag &value)
virtual const char * GetServiceRequestName() const override
const WorkGroupConfiguration & GetConfiguration() const
CreateWorkGroupRequest & WithDescription(Aws::String &&value)
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