AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateTrafficPolicyRequest.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/mailmanager/MailManagerRequest.h>
9#include <aws/mailmanager/model/AcceptAction.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/mailmanager/model/PolicyStatement.h>
13#include <utility>
14
15namespace Aws
16{
17namespace MailManager
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_MAILMANAGER_API UpdateTrafficPolicyRequest();
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 "UpdateTrafficPolicy"; }
34
35 AWS_MAILMANAGER_API Aws::String SerializePayload() const override;
36
37 AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
46 inline const AcceptAction& GetDefaultAction() const{ return m_defaultAction; }
47 inline bool DefaultActionHasBeenSet() const { return m_defaultActionHasBeenSet; }
48 inline void SetDefaultAction(const AcceptAction& value) { m_defaultActionHasBeenSet = true; m_defaultAction = value; }
49 inline void SetDefaultAction(AcceptAction&& value) { m_defaultActionHasBeenSet = true; m_defaultAction = std::move(value); }
50 inline UpdateTrafficPolicyRequest& WithDefaultAction(const AcceptAction& value) { SetDefaultAction(value); return *this;}
51 inline UpdateTrafficPolicyRequest& WithDefaultAction(AcceptAction&& value) { SetDefaultAction(std::move(value)); return *this;}
53
55
59 inline int GetMaxMessageSizeBytes() const{ return m_maxMessageSizeBytes; }
60 inline bool MaxMessageSizeBytesHasBeenSet() const { return m_maxMessageSizeBytesHasBeenSet; }
61 inline void SetMaxMessageSizeBytes(int value) { m_maxMessageSizeBytesHasBeenSet = true; m_maxMessageSizeBytes = value; }
64
66
69 inline const Aws::Vector<PolicyStatement>& GetPolicyStatements() const{ return m_policyStatements; }
70 inline bool PolicyStatementsHasBeenSet() const { return m_policyStatementsHasBeenSet; }
71 inline void SetPolicyStatements(const Aws::Vector<PolicyStatement>& value) { m_policyStatementsHasBeenSet = true; m_policyStatements = value; }
72 inline void SetPolicyStatements(Aws::Vector<PolicyStatement>&& value) { m_policyStatementsHasBeenSet = true; m_policyStatements = std::move(value); }
75 inline UpdateTrafficPolicyRequest& AddPolicyStatements(const PolicyStatement& value) { m_policyStatementsHasBeenSet = true; m_policyStatements.push_back(value); return *this; }
76 inline UpdateTrafficPolicyRequest& AddPolicyStatements(PolicyStatement&& value) { m_policyStatementsHasBeenSet = true; m_policyStatements.push_back(std::move(value)); return *this; }
78
80
83 inline const Aws::String& GetTrafficPolicyId() const{ return m_trafficPolicyId; }
84 inline bool TrafficPolicyIdHasBeenSet() const { return m_trafficPolicyIdHasBeenSet; }
85 inline void SetTrafficPolicyId(const Aws::String& value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId = value; }
86 inline void SetTrafficPolicyId(Aws::String&& value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId = std::move(value); }
87 inline void SetTrafficPolicyId(const char* value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId.assign(value); }
89 inline UpdateTrafficPolicyRequest& WithTrafficPolicyId(Aws::String&& value) { SetTrafficPolicyId(std::move(value)); return *this;}
90 inline UpdateTrafficPolicyRequest& WithTrafficPolicyId(const char* value) { SetTrafficPolicyId(value); return *this;}
92
94
97 inline const Aws::String& GetTrafficPolicyName() const{ return m_trafficPolicyName; }
98 inline bool TrafficPolicyNameHasBeenSet() const { return m_trafficPolicyNameHasBeenSet; }
99 inline void SetTrafficPolicyName(const Aws::String& value) { m_trafficPolicyNameHasBeenSet = true; m_trafficPolicyName = value; }
100 inline void SetTrafficPolicyName(Aws::String&& value) { m_trafficPolicyNameHasBeenSet = true; m_trafficPolicyName = std::move(value); }
101 inline void SetTrafficPolicyName(const char* value) { m_trafficPolicyNameHasBeenSet = true; m_trafficPolicyName.assign(value); }
103 inline UpdateTrafficPolicyRequest& WithTrafficPolicyName(Aws::String&& value) { SetTrafficPolicyName(std::move(value)); return *this;}
104 inline UpdateTrafficPolicyRequest& WithTrafficPolicyName(const char* value) { SetTrafficPolicyName(value); return *this;}
106 private:
107
108 AcceptAction m_defaultAction;
109 bool m_defaultActionHasBeenSet = false;
110
111 int m_maxMessageSizeBytes;
112 bool m_maxMessageSizeBytesHasBeenSet = false;
113
114 Aws::Vector<PolicyStatement> m_policyStatements;
115 bool m_policyStatementsHasBeenSet = false;
116
117 Aws::String m_trafficPolicyId;
118 bool m_trafficPolicyIdHasBeenSet = false;
119
120 Aws::String m_trafficPolicyName;
121 bool m_trafficPolicyNameHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace MailManager
126} // namespace Aws
UpdateTrafficPolicyRequest & WithPolicyStatements(const Aws::Vector< PolicyStatement > &value)
UpdateTrafficPolicyRequest & WithTrafficPolicyName(Aws::String &&value)
UpdateTrafficPolicyRequest & WithTrafficPolicyId(Aws::String &&value)
UpdateTrafficPolicyRequest & AddPolicyStatements(PolicyStatement &&value)
UpdateTrafficPolicyRequest & WithTrafficPolicyName(const char *value)
AWS_MAILMANAGER_API Aws::String SerializePayload() const override
UpdateTrafficPolicyRequest & WithDefaultAction(AcceptAction &&value)
void SetPolicyStatements(const Aws::Vector< PolicyStatement > &value)
const Aws::Vector< PolicyStatement > & GetPolicyStatements() const
UpdateTrafficPolicyRequest & WithTrafficPolicyId(const Aws::String &value)
UpdateTrafficPolicyRequest & WithPolicyStatements(Aws::Vector< PolicyStatement > &&value)
UpdateTrafficPolicyRequest & WithDefaultAction(const AcceptAction &value)
UpdateTrafficPolicyRequest & AddPolicyStatements(const PolicyStatement &value)
UpdateTrafficPolicyRequest & WithTrafficPolicyName(const Aws::String &value)
UpdateTrafficPolicyRequest & WithMaxMessageSizeBytes(int value)
void SetPolicyStatements(Aws::Vector< PolicyStatement > &&value)
AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateTrafficPolicyRequest & WithTrafficPolicyId(const char *value)
virtual const char * GetServiceRequestName() const override
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