AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutIdentityPolicyRequest.h
1
6#pragma once
7#include <aws/email/SES_EXPORTS.h>
8#include <aws/email/SESRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace SES
15{
16namespace Model
17{
18
29 {
30 public:
31 AWS_SES_API PutIdentityPolicyRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "PutIdentityPolicy"; }
38
39 AWS_SES_API Aws::String SerializePayload() const override;
40
41 protected:
42 AWS_SES_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
43
44 public:
45
47
54 inline const Aws::String& GetIdentity() const { return m_identity; }
55 inline bool IdentityHasBeenSet() const { return m_identityHasBeenSet; }
56 template<typename IdentityT = Aws::String>
57 void SetIdentity(IdentityT&& value) { m_identityHasBeenSet = true; m_identity = std::forward<IdentityT>(value); }
58 template<typename IdentityT = Aws::String>
59 PutIdentityPolicyRequest& WithIdentity(IdentityT&& value) { SetIdentity(std::forward<IdentityT>(value)); return *this;}
61
63
67 inline const Aws::String& GetPolicyName() const { return m_policyName; }
68 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
69 template<typename PolicyNameT = Aws::String>
70 void SetPolicyName(PolicyNameT&& value) { m_policyNameHasBeenSet = true; m_policyName = std::forward<PolicyNameT>(value); }
71 template<typename PolicyNameT = Aws::String>
72 PutIdentityPolicyRequest& WithPolicyName(PolicyNameT&& value) { SetPolicyName(std::forward<PolicyNameT>(value)); return *this;}
74
76
83 inline const Aws::String& GetPolicy() const { return m_policy; }
84 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
85 template<typename PolicyT = Aws::String>
86 void SetPolicy(PolicyT&& value) { m_policyHasBeenSet = true; m_policy = std::forward<PolicyT>(value); }
87 template<typename PolicyT = Aws::String>
88 PutIdentityPolicyRequest& WithPolicy(PolicyT&& value) { SetPolicy(std::forward<PolicyT>(value)); return *this;}
90 private:
91
92 Aws::String m_identity;
93 bool m_identityHasBeenSet = false;
94
95 Aws::String m_policyName;
96 bool m_policyNameHasBeenSet = false;
97
98 Aws::String m_policy;
99 bool m_policyHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace SES
104} // namespace Aws
PutIdentityPolicyRequest & WithPolicyName(PolicyNameT &&value)
AWS_SES_API PutIdentityPolicyRequest()=default
AWS_SES_API Aws::String SerializePayload() const override
PutIdentityPolicyRequest & WithPolicy(PolicyT &&value)
PutIdentityPolicyRequest & WithIdentity(IdentityT &&value)
AWS_SES_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String