AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
PutIdentityPolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/email/SESRequest.h>
9#include <aws/email/SES_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace SES {
15namespace Model {
16
27 public:
28 AWS_SES_API PutIdentityPolicyRequest() = default;
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 "PutIdentityPolicy"; }
35
36 AWS_SES_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_SES_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
40
41 public:
43
50 inline const Aws::String& GetIdentity() const { return m_identity; }
51 inline bool IdentityHasBeenSet() const { return m_identityHasBeenSet; }
52 template <typename IdentityT = Aws::String>
53 void SetIdentity(IdentityT&& value) {
54 m_identityHasBeenSet = true;
55 m_identity = std::forward<IdentityT>(value);
56 }
57 template <typename IdentityT = Aws::String>
59 SetIdentity(std::forward<IdentityT>(value));
60 return *this;
61 }
63
65
69 inline const Aws::String& GetPolicyName() const { return m_policyName; }
70 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
71 template <typename PolicyNameT = Aws::String>
72 void SetPolicyName(PolicyNameT&& value) {
73 m_policyNameHasBeenSet = true;
74 m_policyName = std::forward<PolicyNameT>(value);
75 }
76 template <typename PolicyNameT = Aws::String>
78 SetPolicyName(std::forward<PolicyNameT>(value));
79 return *this;
80 }
82
84
91 inline const Aws::String& GetPolicy() const { return m_policy; }
92 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
93 template <typename PolicyT = Aws::String>
94 void SetPolicy(PolicyT&& value) {
95 m_policyHasBeenSet = true;
96 m_policy = std::forward<PolicyT>(value);
97 }
98 template <typename PolicyT = Aws::String>
100 SetPolicy(std::forward<PolicyT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_identity;
106
107 Aws::String m_policyName;
108
109 Aws::String m_policy;
110 bool m_identityHasBeenSet = false;
111 bool m_policyNameHasBeenSet = false;
112 bool m_policyHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace SES
117} // 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