AWS SDK for C++  1.8.129
AWS SDK for C++
GetIdentityPoliciesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
8 #include <aws/email/SESRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace SES
16 {
17 namespace Model
18 {
19 
30  {
31  public:
33 
34  // Service request name is the Operation name which will send this request out,
35  // each operation should has unique request name, so that we can get operation's name from this request.
36  // Note: this is not true for response, multiple operations may have the same response name,
37  // so we can not get operation's name from response.
38  inline virtual const char* GetServiceRequestName() const override { return "GetIdentityPolicies"; }
39 
40  Aws::String SerializePayload() const override;
41 
42  protected:
43  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
44 
45  public:
46 
54  inline const Aws::String& GetIdentity() const{ return m_identity; }
55 
63  inline bool IdentityHasBeenSet() const { return m_identityHasBeenSet; }
64 
72  inline void SetIdentity(const Aws::String& value) { m_identityHasBeenSet = true; m_identity = value; }
73 
81  inline void SetIdentity(Aws::String&& value) { m_identityHasBeenSet = true; m_identity = std::move(value); }
82 
90  inline void SetIdentity(const char* value) { m_identityHasBeenSet = true; m_identity.assign(value); }
91 
99  inline GetIdentityPoliciesRequest& WithIdentity(const Aws::String& value) { SetIdentity(value); return *this;}
100 
108  inline GetIdentityPoliciesRequest& WithIdentity(Aws::String&& value) { SetIdentity(std::move(value)); return *this;}
109 
117  inline GetIdentityPoliciesRequest& WithIdentity(const char* value) { SetIdentity(value); return *this;}
118 
119 
125  inline const Aws::Vector<Aws::String>& GetPolicyNames() const{ return m_policyNames; }
126 
132  inline bool PolicyNamesHasBeenSet() const { return m_policyNamesHasBeenSet; }
133 
139  inline void SetPolicyNames(const Aws::Vector<Aws::String>& value) { m_policyNamesHasBeenSet = true; m_policyNames = value; }
140 
146  inline void SetPolicyNames(Aws::Vector<Aws::String>&& value) { m_policyNamesHasBeenSet = true; m_policyNames = std::move(value); }
147 
153  inline GetIdentityPoliciesRequest& WithPolicyNames(const Aws::Vector<Aws::String>& value) { SetPolicyNames(value); return *this;}
154 
160  inline GetIdentityPoliciesRequest& WithPolicyNames(Aws::Vector<Aws::String>&& value) { SetPolicyNames(std::move(value)); return *this;}
161 
167  inline GetIdentityPoliciesRequest& AddPolicyNames(const Aws::String& value) { m_policyNamesHasBeenSet = true; m_policyNames.push_back(value); return *this; }
168 
174  inline GetIdentityPoliciesRequest& AddPolicyNames(Aws::String&& value) { m_policyNamesHasBeenSet = true; m_policyNames.push_back(std::move(value)); return *this; }
175 
181  inline GetIdentityPoliciesRequest& AddPolicyNames(const char* value) { m_policyNamesHasBeenSet = true; m_policyNames.push_back(value); return *this; }
182 
183  private:
184 
185  Aws::String m_identity;
186  bool m_identityHasBeenSet;
187 
188  Aws::Vector<Aws::String> m_policyNames;
189  bool m_policyNamesHasBeenSet;
190  };
191 
192 } // namespace Model
193 } // namespace SES
194 } // namespace Aws
Aws::SES::Model::GetIdentityPoliciesRequest::SetPolicyNames
void SetPolicyNames(Aws::Vector< Aws::String > &&value)
Definition: GetIdentityPoliciesRequest.h:146
Aws::SES::Model::GetIdentityPoliciesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::SES::Model::GetIdentityPoliciesRequest::AddPolicyNames
GetIdentityPoliciesRequest & AddPolicyNames(Aws::String &&value)
Definition: GetIdentityPoliciesRequest.h:174
Aws::Http::URI
Definition: URI.h:32
Aws::SES::Model::GetIdentityPoliciesRequest::SetIdentity
void SetIdentity(const Aws::String &value)
Definition: GetIdentityPoliciesRequest.h:72
Aws::SES::Model::GetIdentityPoliciesRequest::WithIdentity
GetIdentityPoliciesRequest & WithIdentity(const char *value)
Definition: GetIdentityPoliciesRequest.h:117
Aws::SES::Model::GetIdentityPoliciesRequest::WithIdentity
GetIdentityPoliciesRequest & WithIdentity(const Aws::String &value)
Definition: GetIdentityPoliciesRequest.h:99
Aws::SES::Model::GetIdentityPoliciesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SES::Model::GetIdentityPoliciesRequest::GetPolicyNames
const Aws::Vector< Aws::String > & GetPolicyNames() const
Definition: GetIdentityPoliciesRequest.h:125
Aws::SES::Model::GetIdentityPoliciesRequest::WithIdentity
GetIdentityPoliciesRequest & WithIdentity(Aws::String &&value)
Definition: GetIdentityPoliciesRequest.h:108
Aws::SES::Model::GetIdentityPoliciesRequest::AddPolicyNames
GetIdentityPoliciesRequest & AddPolicyNames(const char *value)
Definition: GetIdentityPoliciesRequest.h:181
AWSVector.h
Aws::SES::Model::GetIdentityPoliciesRequest::SetPolicyNames
void SetPolicyNames(const Aws::Vector< Aws::String > &value)
Definition: GetIdentityPoliciesRequest.h:139
Aws::SES::Model::GetIdentityPoliciesRequest
Definition: GetIdentityPoliciesRequest.h:30
Aws::SES::Model::GetIdentityPoliciesRequest::SetIdentity
void SetIdentity(const char *value)
Definition: GetIdentityPoliciesRequest.h:90
SESRequest.h
Aws::SES::Model::GetIdentityPoliciesRequest::AddPolicyNames
GetIdentityPoliciesRequest & AddPolicyNames(const Aws::String &value)
Definition: GetIdentityPoliciesRequest.h:167
AWSString.h
Aws::SES::Model::GetIdentityPoliciesRequest::GetIdentity
const Aws::String & GetIdentity() const
Definition: GetIdentityPoliciesRequest.h:54
SES_EXPORTS.h
Aws::SES::Model::GetIdentityPoliciesRequest::PolicyNamesHasBeenSet
bool PolicyNamesHasBeenSet() const
Definition: GetIdentityPoliciesRequest.h:132
Aws::SES::Model::GetIdentityPoliciesRequest::GetIdentityPoliciesRequest
GetIdentityPoliciesRequest()
Aws::SES::Model::GetIdentityPoliciesRequest::IdentityHasBeenSet
bool IdentityHasBeenSet() const
Definition: GetIdentityPoliciesRequest.h:63
AWS_SES_API
#define AWS_SES_API
Definition: SES_EXPORTS.h:28
Aws::SES::Model::GetIdentityPoliciesRequest::SetIdentity
void SetIdentity(Aws::String &&value)
Definition: GetIdentityPoliciesRequest.h:81
Aws::SES::Model::GetIdentityPoliciesRequest::WithPolicyNames
GetIdentityPoliciesRequest & WithPolicyNames(Aws::Vector< Aws::String > &&value)
Definition: GetIdentityPoliciesRequest.h:160
Aws::SES::SESRequest
Definition: SESRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::SES::Model::GetIdentityPoliciesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetIdentityPoliciesRequest.h:38
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SES::Model::GetIdentityPoliciesRequest::WithPolicyNames
GetIdentityPoliciesRequest & WithPolicyNames(const Aws::Vector< Aws::String > &value)
Definition: GetIdentityPoliciesRequest.h:153