AWS SDK for C++

AWS SDK for C++ Version 1.11.766

Loading...
Searching...
No Matches
GetIdentityPoliciesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/email/SESRequest.h>
10#include <aws/email/SES_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SES {
16namespace Model {
17
28 public:
29 AWS_SES_API GetIdentityPoliciesRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "GetIdentityPolicies"; }
36
37 AWS_SES_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_SES_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
41
42 public:
44
51 inline const Aws::String& GetIdentity() const { return m_identity; }
52 inline bool IdentityHasBeenSet() const { return m_identityHasBeenSet; }
53 template <typename IdentityT = Aws::String>
54 void SetIdentity(IdentityT&& value) {
55 m_identityHasBeenSet = true;
56 m_identity = std::forward<IdentityT>(value);
57 }
58 template <typename IdentityT = Aws::String>
60 SetIdentity(std::forward<IdentityT>(value));
61 return *this;
62 }
64
66
71 inline const Aws::Vector<Aws::String>& GetPolicyNames() const { return m_policyNames; }
72 inline bool PolicyNamesHasBeenSet() const { return m_policyNamesHasBeenSet; }
73 template <typename PolicyNamesT = Aws::Vector<Aws::String>>
74 void SetPolicyNames(PolicyNamesT&& value) {
75 m_policyNamesHasBeenSet = true;
76 m_policyNames = std::forward<PolicyNamesT>(value);
77 }
78 template <typename PolicyNamesT = Aws::Vector<Aws::String>>
80 SetPolicyNames(std::forward<PolicyNamesT>(value));
81 return *this;
82 }
83 template <typename PolicyNamesT = Aws::String>
85 m_policyNamesHasBeenSet = true;
86 m_policyNames.emplace_back(std::forward<PolicyNamesT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_identity;
92
93 Aws::Vector<Aws::String> m_policyNames;
94 bool m_identityHasBeenSet = false;
95 bool m_policyNamesHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace SES
100} // namespace Aws
AWS_SES_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
GetIdentityPoliciesRequest & WithPolicyNames(PolicyNamesT &&value)
GetIdentityPoliciesRequest & AddPolicyNames(PolicyNamesT &&value)
virtual const char * GetServiceRequestName() const override
GetIdentityPoliciesRequest & WithIdentity(IdentityT &&value)
AWS_SES_API GetIdentityPoliciesRequest()=default
AWS_SES_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetPolicyNames() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector