AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateTrafficPolicyRequest.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/mailmanager/model/AcceptAction.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/mailmanager/model/PolicyStatement.h>
13#include <aws/mailmanager/model/Tag.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace MailManager
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_MAILMANAGER_API CreateTrafficPolicyRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateTrafficPolicy"; }
36
37 AWS_MAILMANAGER_API Aws::String SerializePayload() const override;
38
39 AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
47 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
48 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
49 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
50 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
51 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
52 inline CreateTrafficPolicyRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
53 inline CreateTrafficPolicyRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
54 inline CreateTrafficPolicyRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
56
58
63 inline const AcceptAction& GetDefaultAction() const{ return m_defaultAction; }
64 inline bool DefaultActionHasBeenSet() const { return m_defaultActionHasBeenSet; }
65 inline void SetDefaultAction(const AcceptAction& value) { m_defaultActionHasBeenSet = true; m_defaultAction = value; }
66 inline void SetDefaultAction(AcceptAction&& value) { m_defaultActionHasBeenSet = true; m_defaultAction = std::move(value); }
67 inline CreateTrafficPolicyRequest& WithDefaultAction(const AcceptAction& value) { SetDefaultAction(value); return *this;}
68 inline CreateTrafficPolicyRequest& WithDefaultAction(AcceptAction&& value) { SetDefaultAction(std::move(value)); return *this;}
70
72
76 inline int GetMaxMessageSizeBytes() const{ return m_maxMessageSizeBytes; }
77 inline bool MaxMessageSizeBytesHasBeenSet() const { return m_maxMessageSizeBytesHasBeenSet; }
78 inline void SetMaxMessageSizeBytes(int value) { m_maxMessageSizeBytesHasBeenSet = true; m_maxMessageSizeBytes = value; }
81
83
86 inline const Aws::Vector<PolicyStatement>& GetPolicyStatements() const{ return m_policyStatements; }
87 inline bool PolicyStatementsHasBeenSet() const { return m_policyStatementsHasBeenSet; }
88 inline void SetPolicyStatements(const Aws::Vector<PolicyStatement>& value) { m_policyStatementsHasBeenSet = true; m_policyStatements = value; }
89 inline void SetPolicyStatements(Aws::Vector<PolicyStatement>&& value) { m_policyStatementsHasBeenSet = true; m_policyStatements = std::move(value); }
92 inline CreateTrafficPolicyRequest& AddPolicyStatements(const PolicyStatement& value) { m_policyStatementsHasBeenSet = true; m_policyStatements.push_back(value); return *this; }
93 inline CreateTrafficPolicyRequest& AddPolicyStatements(PolicyStatement&& value) { m_policyStatementsHasBeenSet = true; m_policyStatements.push_back(std::move(value)); return *this; }
95
97
101 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
102 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
103 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
104 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
105 inline CreateTrafficPolicyRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
106 inline CreateTrafficPolicyRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
107 inline CreateTrafficPolicyRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
108 inline CreateTrafficPolicyRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
110
112
115 inline const Aws::String& GetTrafficPolicyName() const{ return m_trafficPolicyName; }
116 inline bool TrafficPolicyNameHasBeenSet() const { return m_trafficPolicyNameHasBeenSet; }
117 inline void SetTrafficPolicyName(const Aws::String& value) { m_trafficPolicyNameHasBeenSet = true; m_trafficPolicyName = value; }
118 inline void SetTrafficPolicyName(Aws::String&& value) { m_trafficPolicyNameHasBeenSet = true; m_trafficPolicyName = std::move(value); }
119 inline void SetTrafficPolicyName(const char* value) { m_trafficPolicyNameHasBeenSet = true; m_trafficPolicyName.assign(value); }
121 inline CreateTrafficPolicyRequest& WithTrafficPolicyName(Aws::String&& value) { SetTrafficPolicyName(std::move(value)); return *this;}
122 inline CreateTrafficPolicyRequest& WithTrafficPolicyName(const char* value) { SetTrafficPolicyName(value); return *this;}
124 private:
125
126 Aws::String m_clientToken;
127 bool m_clientTokenHasBeenSet = false;
128
129 AcceptAction m_defaultAction;
130 bool m_defaultActionHasBeenSet = false;
131
132 int m_maxMessageSizeBytes;
133 bool m_maxMessageSizeBytesHasBeenSet = false;
134
135 Aws::Vector<PolicyStatement> m_policyStatements;
136 bool m_policyStatementsHasBeenSet = false;
137
138 Aws::Vector<Tag> m_tags;
139 bool m_tagsHasBeenSet = false;
140
141 Aws::String m_trafficPolicyName;
142 bool m_trafficPolicyNameHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace MailManager
147} // namespace Aws
CreateTrafficPolicyRequest & WithPolicyStatements(Aws::Vector< PolicyStatement > &&value)
void SetPolicyStatements(const Aws::Vector< PolicyStatement > &value)
CreateTrafficPolicyRequest & AddPolicyStatements(PolicyStatement &&value)
CreateTrafficPolicyRequest & WithTrafficPolicyName(const char *value)
void SetPolicyStatements(Aws::Vector< PolicyStatement > &&value)
CreateTrafficPolicyRequest & WithMaxMessageSizeBytes(int value)
AWS_MAILMANAGER_API Aws::String SerializePayload() const override
CreateTrafficPolicyRequest & AddPolicyStatements(const PolicyStatement &value)
AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateTrafficPolicyRequest & WithTags(Aws::Vector< Tag > &&value)
CreateTrafficPolicyRequest & WithTrafficPolicyName(Aws::String &&value)
CreateTrafficPolicyRequest & WithTrafficPolicyName(const Aws::String &value)
CreateTrafficPolicyRequest & WithClientToken(const Aws::String &value)
CreateTrafficPolicyRequest & WithClientToken(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateTrafficPolicyRequest & WithDefaultAction(const AcceptAction &value)
CreateTrafficPolicyRequest & WithPolicyStatements(const Aws::Vector< PolicyStatement > &value)
CreateTrafficPolicyRequest & WithClientToken(const char *value)
const Aws::Vector< PolicyStatement > & GetPolicyStatements() const
CreateTrafficPolicyRequest & WithTags(const Aws::Vector< Tag > &value)
CreateTrafficPolicyRequest & WithDefaultAction(AcceptAction &&value)
CreateTrafficPolicyRequest & AddTags(const Tag &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