AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRulesetRequest.h
1
6#pragma once
7#include <aws/databrew/GlueDataBrew_EXPORTS.h>
8#include <aws/databrew/GlueDataBrewRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/databrew/model/Rule.h>
13#include <utility>
14
15namespace Aws
16{
17namespace GlueDataBrew
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_GLUEDATABREW_API CreateRulesetRequest();
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 "CreateRuleset"; }
34
35 AWS_GLUEDATABREW_API Aws::String SerializePayload() const override;
36
37
39
43 inline const Aws::String& GetName() const{ return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
46 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
47 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
48 inline CreateRulesetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
49 inline CreateRulesetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
50 inline CreateRulesetRequest& WithName(const char* value) { SetName(value); return *this;}
52
54
57 inline const Aws::String& GetDescription() const{ return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
60 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
61 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
62 inline CreateRulesetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
63 inline CreateRulesetRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
64 inline CreateRulesetRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
66
68
72 inline const Aws::String& GetTargetArn() const{ return m_targetArn; }
73 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
74 inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
75 inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); }
76 inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); }
77 inline CreateRulesetRequest& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
78 inline CreateRulesetRequest& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;}
79 inline CreateRulesetRequest& WithTargetArn(const char* value) { SetTargetArn(value); return *this;}
81
83
87 inline const Aws::Vector<Rule>& GetRules() const{ return m_rules; }
88 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
89 inline void SetRules(const Aws::Vector<Rule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
90 inline void SetRules(Aws::Vector<Rule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
91 inline CreateRulesetRequest& WithRules(const Aws::Vector<Rule>& value) { SetRules(value); return *this;}
92 inline CreateRulesetRequest& WithRules(Aws::Vector<Rule>&& value) { SetRules(std::move(value)); return *this;}
93 inline CreateRulesetRequest& AddRules(const Rule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
94 inline CreateRulesetRequest& AddRules(Rule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
96
98
101 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
102 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
103 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
104 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
105 inline CreateRulesetRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
106 inline CreateRulesetRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
107 inline CreateRulesetRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
108 inline CreateRulesetRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
109 inline CreateRulesetRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
110 inline CreateRulesetRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
111 inline CreateRulesetRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
112 inline CreateRulesetRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
113 inline CreateRulesetRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
115 private:
116
117 Aws::String m_name;
118 bool m_nameHasBeenSet = false;
119
120 Aws::String m_description;
121 bool m_descriptionHasBeenSet = false;
122
123 Aws::String m_targetArn;
124 bool m_targetArnHasBeenSet = false;
125
126 Aws::Vector<Rule> m_rules;
127 bool m_rulesHasBeenSet = false;
128
130 bool m_tagsHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace GlueDataBrew
135} // namespace Aws
CreateRulesetRequest & WithName(Aws::String &&value)
CreateRulesetRequest & WithDescription(const Aws::String &value)
CreateRulesetRequest & WithTargetArn(const Aws::String &value)
CreateRulesetRequest & WithRules(Aws::Vector< Rule > &&value)
CreateRulesetRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateRulesetRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateRulesetRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateRulesetRequest & AddTags(const char *key, const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_GLUEDATABREW_API Aws::String SerializePayload() const override
CreateRulesetRequest & WithRules(const Aws::Vector< Rule > &value)
virtual const char * GetServiceRequestName() const override
CreateRulesetRequest & WithTargetArn(Aws::String &&value)
CreateRulesetRequest & AddRules(Rule &&value)
CreateRulesetRequest & AddRules(const Rule &value)
CreateRulesetRequest & AddTags(Aws::String &&key, const char *value)
CreateRulesetRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateRulesetRequest & AddTags(const char *key, Aws::String &&value)
CreateRulesetRequest & WithDescription(Aws::String &&value)
void SetRules(const Aws::Vector< Rule > &value)
CreateRulesetRequest & WithName(const char *value)
CreateRulesetRequest & WithTargetArn(const char *value)
CreateRulesetRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateRulesetRequest & WithName(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateRulesetRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Vector< Rule > & GetRules() const
CreateRulesetRequest & WithDescription(const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&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