AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetIdentity(const Aws::String& value) { m_identityHasBeenSet = true; m_identity = value; }
57 inline void SetIdentity(Aws::String&& value) { m_identityHasBeenSet = true; m_identity = std::move(value); }
58 inline void SetIdentity(const char* value) { m_identityHasBeenSet = true; m_identity.assign(value); }
59 inline PutIdentityPolicyRequest& WithIdentity(const Aws::String& value) { SetIdentity(value); return *this;}
60 inline PutIdentityPolicyRequest& WithIdentity(Aws::String&& value) { SetIdentity(std::move(value)); return *this;}
61 inline PutIdentityPolicyRequest& WithIdentity(const char* value) { SetIdentity(value); return *this;}
63
65
69 inline const Aws::String& GetPolicyName() const{ return m_policyName; }
70 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
71 inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
72 inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
73 inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
74 inline PutIdentityPolicyRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
75 inline PutIdentityPolicyRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
76 inline PutIdentityPolicyRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
78
80
87 inline const Aws::String& GetPolicy() const{ return m_policy; }
88 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
89 inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
90 inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
91 inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
92 inline PutIdentityPolicyRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
93 inline PutIdentityPolicyRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
94 inline PutIdentityPolicyRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
96 private:
97
98 Aws::String m_identity;
99 bool m_identityHasBeenSet = false;
100
101 Aws::String m_policyName;
102 bool m_policyNameHasBeenSet = false;
103
104 Aws::String m_policy;
105 bool m_policyHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace SES
110} // namespace Aws
PutIdentityPolicyRequest & WithPolicy(const Aws::String &value)
PutIdentityPolicyRequest & WithIdentity(const Aws::String &value)
PutIdentityPolicyRequest & WithIdentity(Aws::String &&value)
PutIdentityPolicyRequest & WithPolicyName(const char *value)
PutIdentityPolicyRequest & WithPolicy(const char *value)
PutIdentityPolicyRequest & WithPolicyName(const Aws::String &value)
PutIdentityPolicyRequest & WithIdentity(const char *value)
PutIdentityPolicyRequest & WithPolicy(Aws::String &&value)
PutIdentityPolicyRequest & WithPolicyName(Aws::String &&value)
AWS_SES_API Aws::String SerializePayload() const override
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