AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateEmailIdentityPolicyRequest.h
1
6#pragma once
7#include <aws/sesv2/SESV2_EXPORTS.h>
8#include <aws/sesv2/SESV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace SESV2
15{
16namespace Model
17{
18
29 {
30 public:
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 "CreateEmailIdentityPolicy"; }
38
39 AWS_SESV2_API Aws::String SerializePayload() const override;
40
41
43
46 inline const Aws::String& GetEmailIdentity() const{ return m_emailIdentity; }
47 inline bool EmailIdentityHasBeenSet() const { return m_emailIdentityHasBeenSet; }
48 inline void SetEmailIdentity(const Aws::String& value) { m_emailIdentityHasBeenSet = true; m_emailIdentity = value; }
49 inline void SetEmailIdentity(Aws::String&& value) { m_emailIdentityHasBeenSet = true; m_emailIdentity = std::move(value); }
50 inline void SetEmailIdentity(const char* value) { m_emailIdentityHasBeenSet = true; m_emailIdentity.assign(value); }
52 inline CreateEmailIdentityPolicyRequest& WithEmailIdentity(Aws::String&& value) { SetEmailIdentity(std::move(value)); return *this;}
53 inline CreateEmailIdentityPolicyRequest& WithEmailIdentity(const char* value) { SetEmailIdentity(value); return *this;}
55
57
61 inline const Aws::String& GetPolicyName() const{ return m_policyName; }
62 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
63 inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
64 inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
65 inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
66 inline CreateEmailIdentityPolicyRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
67 inline CreateEmailIdentityPolicyRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
68 inline CreateEmailIdentityPolicyRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
70
72
79 inline const Aws::String& GetPolicy() const{ return m_policy; }
80 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
81 inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
82 inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
83 inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
84 inline CreateEmailIdentityPolicyRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
85 inline CreateEmailIdentityPolicyRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
86 inline CreateEmailIdentityPolicyRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
88 private:
89
90 Aws::String m_emailIdentity;
91 bool m_emailIdentityHasBeenSet = false;
92
93 Aws::String m_policyName;
94 bool m_policyNameHasBeenSet = false;
95
96 Aws::String m_policy;
97 bool m_policyHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace SESV2
102} // namespace Aws
CreateEmailIdentityPolicyRequest & WithPolicyName(const Aws::String &value)
CreateEmailIdentityPolicyRequest & WithEmailIdentity(const Aws::String &value)
CreateEmailIdentityPolicyRequest & WithPolicyName(const char *value)
AWS_SESV2_API Aws::String SerializePayload() const override
CreateEmailIdentityPolicyRequest & WithEmailIdentity(const char *value)
CreateEmailIdentityPolicyRequest & WithPolicy(Aws::String &&value)
CreateEmailIdentityPolicyRequest & WithPolicyName(Aws::String &&value)
CreateEmailIdentityPolicyRequest & WithEmailIdentity(Aws::String &&value)
CreateEmailIdentityPolicyRequest & WithPolicy(const Aws::String &value)
CreateEmailIdentityPolicyRequest & WithPolicy(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String