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>
15#include <aws/core/utils/UUID.h>
51 inline void SetClientToken(
const char* value) { m_clientTokenHasBeenSet =
true; m_clientToken.assign(value); }
78 inline void SetMaxMessageSizeBytes(
int value) { m_maxMessageSizeBytesHasBeenSet =
true; m_maxMessageSizeBytes = value; }
119 inline void SetTrafficPolicyName(
const char* value) { m_trafficPolicyNameHasBeenSet =
true; m_trafficPolicyName.assign(value); }
127 bool m_clientTokenHasBeenSet =
false;
130 bool m_defaultActionHasBeenSet =
false;
132 int m_maxMessageSizeBytes;
133 bool m_maxMessageSizeBytesHasBeenSet =
false;
136 bool m_policyStatementsHasBeenSet =
false;
139 bool m_tagsHasBeenSet =
false;
142 bool m_trafficPolicyNameHasBeenSet =
false;
CreateTrafficPolicyRequest & WithPolicyStatements(Aws::Vector< PolicyStatement > &&value)
bool TagsHasBeenSet() const
bool MaxMessageSizeBytesHasBeenSet() const
void SetTrafficPolicyName(const char *value)
void SetTags(Aws::Vector< Tag > &&value)
const Aws::Vector< Tag > & GetTags() const
void SetClientToken(const Aws::String &value)
AWS_MAILMANAGER_API CreateTrafficPolicyRequest()
void SetPolicyStatements(const Aws::Vector< PolicyStatement > &value)
CreateTrafficPolicyRequest & AddPolicyStatements(PolicyStatement &&value)
CreateTrafficPolicyRequest & WithTrafficPolicyName(const char *value)
void SetPolicyStatements(Aws::Vector< PolicyStatement > &&value)
void SetTrafficPolicyName(Aws::String &&value)
CreateTrafficPolicyRequest & WithMaxMessageSizeBytes(int value)
void SetClientToken(Aws::String &&value)
AWS_MAILMANAGER_API Aws::String SerializePayload() const override
bool DefaultActionHasBeenSet() const
CreateTrafficPolicyRequest & AddPolicyStatements(const PolicyStatement &value)
bool ClientTokenHasBeenSet() const
AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateTrafficPolicyRequest & WithTags(Aws::Vector< Tag > &&value)
const Aws::String & GetClientToken() const
void SetClientToken(const char *value)
CreateTrafficPolicyRequest & WithTrafficPolicyName(Aws::String &&value)
void SetMaxMessageSizeBytes(int value)
CreateTrafficPolicyRequest & WithTrafficPolicyName(const Aws::String &value)
CreateTrafficPolicyRequest & WithClientToken(const Aws::String &value)
void SetDefaultAction(AcceptAction &&value)
const Aws::String & GetTrafficPolicyName() const
CreateTrafficPolicyRequest & WithClientToken(Aws::String &&value)
void SetDefaultAction(const AcceptAction &value)
bool PolicyStatementsHasBeenSet() const
virtual const char * GetServiceRequestName() const override
CreateTrafficPolicyRequest & WithDefaultAction(const AcceptAction &value)
const AcceptAction & GetDefaultAction() const
CreateTrafficPolicyRequest & WithPolicyStatements(const Aws::Vector< PolicyStatement > &value)
void SetTrafficPolicyName(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
CreateTrafficPolicyRequest & WithClientToken(const char *value)
const Aws::Vector< PolicyStatement > & GetPolicyStatements() const
CreateTrafficPolicyRequest & AddTags(Tag &&value)
int GetMaxMessageSizeBytes() const
CreateTrafficPolicyRequest & WithTags(const Aws::Vector< Tag > &value)
CreateTrafficPolicyRequest & WithDefaultAction(AcceptAction &&value)
bool TrafficPolicyNameHasBeenSet() const
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