AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
CreateRulesetRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/databrew/GlueDataBrewRequest.h>
11#include <aws/databrew/GlueDataBrew_EXPORTS.h>
12#include <aws/databrew/model/Rule.h>
13
14#include <utility>
15
16namespace Aws {
17namespace GlueDataBrew {
18namespace Model {
19
23 public:
24 AWS_GLUEDATABREW_API CreateRulesetRequest() = 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 "CreateRuleset"; }
31
32 AWS_GLUEDATABREW_API Aws::String SerializePayload() const override;
33
35
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
65 CreateRulesetRequest& WithDescription(DescriptionT&& value) {
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
77 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
78 template <typename TargetArnT = Aws::String>
79 void SetTargetArn(TargetArnT&& value) {
80 m_targetArnHasBeenSet = true;
81 m_targetArn = std::forward<TargetArnT>(value);
82 }
83 template <typename TargetArnT = Aws::String>
84 CreateRulesetRequest& WithTargetArn(TargetArnT&& value) {
85 SetTargetArn(std::forward<TargetArnT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::Vector<Rule>& GetRules() const { return m_rules; }
96 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
97 template <typename RulesT = Aws::Vector<Rule>>
98 void SetRules(RulesT&& value) {
99 m_rulesHasBeenSet = true;
100 m_rules = std::forward<RulesT>(value);
101 }
102 template <typename RulesT = Aws::Vector<Rule>>
104 SetRules(std::forward<RulesT>(value));
105 return *this;
106 }
107 template <typename RulesT = Rule>
109 m_rulesHasBeenSet = true;
110 m_rules.emplace_back(std::forward<RulesT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
120 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
121 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
122 void SetTags(TagsT&& value) {
123 m_tagsHasBeenSet = true;
124 m_tags = std::forward<TagsT>(value);
125 }
126 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
128 SetTags(std::forward<TagsT>(value));
129 return *this;
130 }
131 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
132 CreateRulesetRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
133 m_tagsHasBeenSet = true;
134 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
135 return *this;
136 }
138 private:
139 Aws::String m_name;
140
141 Aws::String m_description;
142
143 Aws::String m_targetArn;
144
145 Aws::Vector<Rule> m_rules;
146
148 bool m_nameHasBeenSet = false;
149 bool m_descriptionHasBeenSet = false;
150 bool m_targetArnHasBeenSet = false;
151 bool m_rulesHasBeenSet = false;
152 bool m_tagsHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace GlueDataBrew
157} // namespace Aws
CreateRulesetRequest & WithRules(RulesT &&value)
CreateRulesetRequest & AddRules(RulesT &&value)
AWS_GLUEDATABREW_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateRulesetRequest & WithDescription(DescriptionT &&value)
CreateRulesetRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateRulesetRequest & WithTargetArn(TargetArnT &&value)
CreateRulesetRequest & WithName(NameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_GLUEDATABREW_API CreateRulesetRequest()=default
const Aws::Vector< Rule > & GetRules() const
CreateRulesetRequest & WithTags(TagsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector