AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
UpdateEmailIdentityPolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sesv2/SESV2Request.h>
9#include <aws/sesv2/SESV2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace SESV2 {
15namespace Model {
16
27 public:
28 AWS_SESV2_API UpdateEmailIdentityPolicyRequest() = 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 "UpdateEmailIdentityPolicy"; }
35
36 AWS_SESV2_API Aws::String SerializePayload() const override;
37
39
42 inline const Aws::String& GetEmailIdentity() const { return m_emailIdentity; }
43 inline bool EmailIdentityHasBeenSet() const { return m_emailIdentityHasBeenSet; }
44 template <typename EmailIdentityT = Aws::String>
45 void SetEmailIdentity(EmailIdentityT&& value) {
46 m_emailIdentityHasBeenSet = true;
47 m_emailIdentity = std::forward<EmailIdentityT>(value);
48 }
49 template <typename EmailIdentityT = Aws::String>
51 SetEmailIdentity(std::forward<EmailIdentityT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetPolicyName() const { return m_policyName; }
62 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
63 template <typename PolicyNameT = Aws::String>
64 void SetPolicyName(PolicyNameT&& value) {
65 m_policyNameHasBeenSet = true;
66 m_policyName = std::forward<PolicyNameT>(value);
67 }
68 template <typename PolicyNameT = Aws::String>
70 SetPolicyName(std::forward<PolicyNameT>(value));
71 return *this;
72 }
74
76
82 inline const Aws::String& GetPolicy() const { return m_policy; }
83 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
84 template <typename PolicyT = Aws::String>
85 void SetPolicy(PolicyT&& value) {
86 m_policyHasBeenSet = true;
87 m_policy = std::forward<PolicyT>(value);
88 }
89 template <typename PolicyT = Aws::String>
91 SetPolicy(std::forward<PolicyT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_emailIdentity;
97
98 Aws::String m_policyName;
99
100 Aws::String m_policy;
101 bool m_emailIdentityHasBeenSet = false;
102 bool m_policyNameHasBeenSet = false;
103 bool m_policyHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace SESV2
108} // namespace Aws
UpdateEmailIdentityPolicyRequest & WithPolicyName(PolicyNameT &&value)
UpdateEmailIdentityPolicyRequest & WithEmailIdentity(EmailIdentityT &&value)
AWS_SESV2_API Aws::String SerializePayload() const override
UpdateEmailIdentityPolicyRequest & WithPolicy(PolicyT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String