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/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();
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 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
49 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
50 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
51 inline CreateRuleSetRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
52 inline CreateRuleSetRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
53 inline CreateRuleSetRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
55
57
60 inline const Aws::String& GetRuleSetName() const{ return m_ruleSetName; }
61 inline bool RuleSetNameHasBeenSet() const { return m_ruleSetNameHasBeenSet; }
62 inline void SetRuleSetName(const Aws::String& value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName = value; }
63 inline void SetRuleSetName(Aws::String&& value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName = std::move(value); }
64 inline void SetRuleSetName(const char* value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName.assign(value); }
65 inline CreateRuleSetRequest& WithRuleSetName(const Aws::String& value) { SetRuleSetName(value); return *this;}
66 inline CreateRuleSetRequest& WithRuleSetName(Aws::String&& value) { SetRuleSetName(std::move(value)); return *this;}
67 inline CreateRuleSetRequest& WithRuleSetName(const char* value) { SetRuleSetName(value); return *this;}
69
71
74 inline const Aws::Vector<Rule>& GetRules() const{ return m_rules; }
75 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
76 inline void SetRules(const Aws::Vector<Rule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
77 inline void SetRules(Aws::Vector<Rule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
78 inline CreateRuleSetRequest& WithRules(const Aws::Vector<Rule>& value) { SetRules(value); return *this;}
79 inline CreateRuleSetRequest& WithRules(Aws::Vector<Rule>&& value) { SetRules(std::move(value)); return *this;}
80 inline CreateRuleSetRequest& AddRules(const Rule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
81 inline CreateRuleSetRequest& AddRules(Rule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
83
85
89 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
90 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
91 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
92 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
93 inline CreateRuleSetRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
94 inline CreateRuleSetRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
95 inline CreateRuleSetRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
96 inline CreateRuleSetRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
98 private:
99
100 Aws::String m_clientToken;
101 bool m_clientTokenHasBeenSet = false;
102
103 Aws::String m_ruleSetName;
104 bool m_ruleSetNameHasBeenSet = false;
105
106 Aws::Vector<Rule> m_rules;
107 bool m_rulesHasBeenSet = false;
108
109 Aws::Vector<Tag> m_tags;
110 bool m_tagsHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace MailManager
115} // namespace Aws
AWS_MAILMANAGER_API Aws::String SerializePayload() const override
CreateRuleSetRequest & AddRules(const Rule &value)
CreateRuleSetRequest & AddTags(Tag &&value)
CreateRuleSetRequest & WithClientToken(const char *value)
CreateRuleSetRequest & WithTags(const Aws::Vector< Tag > &value)
CreateRuleSetRequest & WithRules(Aws::Vector< Rule > &&value)
CreateRuleSetRequest & WithRuleSetName(Aws::String &&value)
CreateRuleSetRequest & WithClientToken(Aws::String &&value)
CreateRuleSetRequest & AddTags(const Tag &value)
void SetTags(const Aws::Vector< Tag > &value)
CreateRuleSetRequest & WithTags(Aws::Vector< Tag > &&value)
CreateRuleSetRequest & WithClientToken(const Aws::String &value)
AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateRuleSetRequest & AddRules(Rule &&value)
const Aws::Vector< Tag > & GetTags() const
const Aws::Vector< Rule > & GetRules() const
void SetRules(const Aws::Vector< Rule > &value)
CreateRuleSetRequest & WithRuleSetName(const Aws::String &value)
CreateRuleSetRequest & WithRuleSetName(const char *value)
virtual const char * GetServiceRequestName() const override
CreateRuleSetRequest & WithRules(const Aws::Vector< Rule > &value)
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