AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = 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 "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 template<typename NameT = Aws::String>
46 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
47 template<typename NameT = Aws::String>
48 CreateRulesetRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
50
52
55 inline const Aws::String& GetDescription() const { return m_description; }
56 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
57 template<typename DescriptionT = Aws::String>
58 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
59 template<typename DescriptionT = Aws::String>
60 CreateRulesetRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
62
64
68 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
69 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
70 template<typename TargetArnT = Aws::String>
71 void SetTargetArn(TargetArnT&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::forward<TargetArnT>(value); }
72 template<typename TargetArnT = Aws::String>
73 CreateRulesetRequest& WithTargetArn(TargetArnT&& value) { SetTargetArn(std::forward<TargetArnT>(value)); return *this;}
75
77
81 inline const Aws::Vector<Rule>& GetRules() const { return m_rules; }
82 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
83 template<typename RulesT = Aws::Vector<Rule>>
84 void SetRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules = std::forward<RulesT>(value); }
85 template<typename RulesT = Aws::Vector<Rule>>
86 CreateRulesetRequest& WithRules(RulesT&& value) { SetRules(std::forward<RulesT>(value)); return *this;}
87 template<typename RulesT = Rule>
88 CreateRulesetRequest& AddRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules.emplace_back(std::forward<RulesT>(value)); return *this; }
90
92
95 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
96 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
97 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
98 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
99 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
100 CreateRulesetRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
101 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
102 CreateRulesetRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
103 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
104 }
106 private:
107
108 Aws::String m_name;
109 bool m_nameHasBeenSet = false;
110
111 Aws::String m_description;
112 bool m_descriptionHasBeenSet = false;
113
114 Aws::String m_targetArn;
115 bool m_targetArnHasBeenSet = false;
116
117 Aws::Vector<Rule> m_rules;
118 bool m_rulesHasBeenSet = false;
119
121 bool m_tagsHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace GlueDataBrew
126} // 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