AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateRuleSetRequest.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/mailmanager/MailManagerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/mailmanager/model/Rule.h>
12#include <aws/mailmanager/model/Tag.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace MailManager
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_MAILMANAGER_API CreateRuleSetRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateRuleSet"; }
35
36 AWS_MAILMANAGER_API Aws::String SerializePayload() const override;
37
38 AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
46 inline const Aws::String& GetClientToken() const { return m_clientToken; }
47 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
48 template<typename ClientTokenT = Aws::String>
49 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
50 template<typename ClientTokenT = Aws::String>
51 CreateRuleSetRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
53
55
58 inline const Aws::String& GetRuleSetName() const { return m_ruleSetName; }
59 inline bool RuleSetNameHasBeenSet() const { return m_ruleSetNameHasBeenSet; }
60 template<typename RuleSetNameT = Aws::String>
61 void SetRuleSetName(RuleSetNameT&& value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName = std::forward<RuleSetNameT>(value); }
62 template<typename RuleSetNameT = Aws::String>
63 CreateRuleSetRequest& WithRuleSetName(RuleSetNameT&& value) { SetRuleSetName(std::forward<RuleSetNameT>(value)); return *this;}
65
67
70 inline const Aws::Vector<Rule>& GetRules() const { return m_rules; }
71 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
72 template<typename RulesT = Aws::Vector<Rule>>
73 void SetRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules = std::forward<RulesT>(value); }
74 template<typename RulesT = Aws::Vector<Rule>>
75 CreateRuleSetRequest& WithRules(RulesT&& value) { SetRules(std::forward<RulesT>(value)); return *this;}
76 template<typename RulesT = Rule>
77 CreateRuleSetRequest& AddRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules.emplace_back(std::forward<RulesT>(value)); return *this; }
79
81
85 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
86 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
87 template<typename TagsT = Aws::Vector<Tag>>
88 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
89 template<typename TagsT = Aws::Vector<Tag>>
90 CreateRuleSetRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
91 template<typename TagsT = Tag>
92 CreateRuleSetRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
94 private:
95
97 bool m_clientTokenHasBeenSet = true;
98
99 Aws::String m_ruleSetName;
100 bool m_ruleSetNameHasBeenSet = false;
101
102 Aws::Vector<Rule> m_rules;
103 bool m_rulesHasBeenSet = false;
104
105 Aws::Vector<Tag> m_tags;
106 bool m_tagsHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace MailManager
111} // namespace Aws
AWS_MAILMANAGER_API Aws::String SerializePayload() const override
CreateRuleSetRequest & WithTags(TagsT &&value)
AWS_MAILMANAGER_API CreateRuleSetRequest()=default
CreateRuleSetRequest & WithRules(RulesT &&value)
CreateRuleSetRequest & AddRules(RulesT &&value)
CreateRuleSetRequest & WithClientToken(ClientTokenT &&value)
CreateRuleSetRequest & AddTags(TagsT &&value)
AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Tag > & GetTags() const
const Aws::Vector< Rule > & GetRules() const
CreateRuleSetRequest & WithRuleSetName(RuleSetNameT &&value)
virtual const char * GetServiceRequestName() const override
static Aws::Utils::UUID PseudoRandomUUID()
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