AWS SDK for C++  1.9.109
AWS SDK for C++
ListPoliciesGrantingServiceAccessRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iam/IAM_EXPORTS.h>
8 #include <aws/iam/IAMRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace IAM
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "ListPoliciesGrantingServiceAccess"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
46  inline const Aws::String& GetMarker() const{ return m_marker; }
47 
54  inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
55 
62  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
63 
70  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
71 
78  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
79 
86  inline ListPoliciesGrantingServiceAccessRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
87 
94  inline ListPoliciesGrantingServiceAccessRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
95 
102  inline ListPoliciesGrantingServiceAccessRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
103 
104 
109  inline const Aws::String& GetArn() const{ return m_arn; }
110 
115  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
116 
121  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
122 
127  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
128 
133  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
134 
139  inline ListPoliciesGrantingServiceAccessRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;}
140 
145  inline ListPoliciesGrantingServiceAccessRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
146 
151  inline ListPoliciesGrantingServiceAccessRequest& WithArn(const char* value) { SetArn(value); return *this;}
152 
153 
166  inline const Aws::Vector<Aws::String>& GetServiceNamespaces() const{ return m_serviceNamespaces; }
167 
180  inline bool ServiceNamespacesHasBeenSet() const { return m_serviceNamespacesHasBeenSet; }
181 
194  inline void SetServiceNamespaces(const Aws::Vector<Aws::String>& value) { m_serviceNamespacesHasBeenSet = true; m_serviceNamespaces = value; }
195 
208  inline void SetServiceNamespaces(Aws::Vector<Aws::String>&& value) { m_serviceNamespacesHasBeenSet = true; m_serviceNamespaces = std::move(value); }
209 
222  inline ListPoliciesGrantingServiceAccessRequest& WithServiceNamespaces(const Aws::Vector<Aws::String>& value) { SetServiceNamespaces(value); return *this;}
223 
236  inline ListPoliciesGrantingServiceAccessRequest& WithServiceNamespaces(Aws::Vector<Aws::String>&& value) { SetServiceNamespaces(std::move(value)); return *this;}
237 
250  inline ListPoliciesGrantingServiceAccessRequest& AddServiceNamespaces(const Aws::String& value) { m_serviceNamespacesHasBeenSet = true; m_serviceNamespaces.push_back(value); return *this; }
251 
264  inline ListPoliciesGrantingServiceAccessRequest& AddServiceNamespaces(Aws::String&& value) { m_serviceNamespacesHasBeenSet = true; m_serviceNamespaces.push_back(std::move(value)); return *this; }
265 
278  inline ListPoliciesGrantingServiceAccessRequest& AddServiceNamespaces(const char* value) { m_serviceNamespacesHasBeenSet = true; m_serviceNamespaces.push_back(value); return *this; }
279 
280  private:
281 
282  Aws::String m_marker;
283  bool m_markerHasBeenSet;
284 
285  Aws::String m_arn;
286  bool m_arnHasBeenSet;
287 
288  Aws::Vector<Aws::String> m_serviceNamespaces;
289  bool m_serviceNamespacesHasBeenSet;
290  };
291 
292 } // namespace Model
293 } // namespace IAM
294 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::IAM::Model::ListPoliciesGrantingServiceAccessRequest::AddServiceNamespaces
ListPoliciesGrantingServiceAccessRequest & AddServiceNamespaces(const Aws::String &value)
Definition: ListPoliciesGrantingServiceAccessRequest.h:250
Aws::IAM::Model::ListPoliciesGrantingServiceAccessRequest::SetMarker
void SetMarker(const char *value)
Definition: ListPoliciesGrantingServiceAccessRequest.h:78
Aws::IAM::Model::ListPoliciesGrantingServiceAccessRequest::SetServiceNamespaces
void SetServiceNamespaces(Aws::Vector< Aws::String > &&value)
Definition: ListPoliciesGrantingServiceAccessRequest.h:208
Aws::IAM::Model::ListPoliciesGrantingServiceAccessRequest::GetArn
const Aws::String & GetArn() const
Definition: ListPoliciesGrantingServiceAccessRequest.h:109
Aws::IAM::Model::ListPoliciesGrantingServiceAccessRequest::WithServiceNamespaces
ListPoliciesGrantingServiceAccessRequest & WithServiceNamespaces(const Aws::Vector< Aws::String > &value)
Definition: ListPoliciesGrantingServiceAccessRequest.h:222
Aws::IAM::Model::ListPoliciesGrantingServiceAccessRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::IAM::Model::ListPoliciesGrantingServiceAccessRequest
Definition: ListPoliciesGrantingServiceAccessRequest.h:23
Aws::IAM::IAMRequest
Definition: IAMRequest.h:17
Aws::IAM::Model::ListPoliciesGrantingServiceAccessRequest::WithArn
ListPoliciesGrantingServiceAccessRequest & WithArn(const char *value)
Definition: ListPoliciesGrantingServiceAccessRequest.h:151
Aws::EMR::Model::AuthMode::NOT_SET
@ NOT_SET
Aws::IAM::Model::ListPoliciesGrantingServiceAccessRequest::WithMarker
ListPoliciesGrantingServiceAccessRequest & WithMarker(Aws::String &&value)
Definition: ListPoliciesGrantingServiceAccessRequest.h:94
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::IAM::Model::ListPoliciesGrantingServiceAccessRequest::WithArn
ListPoliciesGrantingServiceAccessRequest & WithArn(const Aws::String &value)
Definition: ListPoliciesGrantingServiceAccessRequest.h:139
Aws::IAM::Model::ListPoliciesGrantingServiceAccessRequest::GetServiceNamespaces
const Aws::Vector< Aws::String > & GetServiceNamespaces() const
Definition: ListPoliciesGrantingServiceAccessRequest.h:166
Aws::IAM::Model::ListPoliciesGrantingServiceAccessRequest::AddServiceNamespaces
ListPoliciesGrantingServiceAccessRequest & AddServiceNamespaces(const char *value)
Definition: ListPoliciesGrantingServiceAccessRequest.h:278
AWS_IAM_API
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:28
Aws::IAM::Model::ListPoliciesGrantingServiceAccessRequest::MarkerHasBeenSet
bool MarkerHasBeenSet() const
Definition: ListPoliciesGrantingServiceAccessRequest.h:54
Aws::IAM::Model::ListPoliciesGrantingServiceAccessRequest::SetServiceNamespaces
void SetServiceNamespaces(const Aws::Vector< Aws::String > &value)
Definition: ListPoliciesGrantingServiceAccessRequest.h:194
Aws::IAM::Model::ListPoliciesGrantingServiceAccessRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IAM::Model::ListPoliciesGrantingServiceAccessRequest::WithServiceNamespaces
ListPoliciesGrantingServiceAccessRequest & WithServiceNamespaces(Aws::Vector< Aws::String > &&value)
Definition: ListPoliciesGrantingServiceAccessRequest.h:236
AWSString.h
Aws::IAM::Model::ListPoliciesGrantingServiceAccessRequest::ServiceNamespacesHasBeenSet
bool ServiceNamespacesHasBeenSet() const
Definition: ListPoliciesGrantingServiceAccessRequest.h:180
Aws::IAM::Model::ListPoliciesGrantingServiceAccessRequest::SetArn
void SetArn(Aws::String &&value)
Definition: ListPoliciesGrantingServiceAccessRequest.h:127
Aws::IAM::Model::ListPoliciesGrantingServiceAccessRequest::SetArn
void SetArn(const char *value)
Definition: ListPoliciesGrantingServiceAccessRequest.h:133
IAM_EXPORTS.h
IAMRequest.h
Aws::IAM::Model::ListPoliciesGrantingServiceAccessRequest::SetMarker
void SetMarker(const Aws::String &value)
Definition: ListPoliciesGrantingServiceAccessRequest.h:62
Aws::IAM::Model::ListPoliciesGrantingServiceAccessRequest::WithMarker
ListPoliciesGrantingServiceAccessRequest & WithMarker(const char *value)
Definition: ListPoliciesGrantingServiceAccessRequest.h:102
Aws::IAM::Model::ListPoliciesGrantingServiceAccessRequest::SetArn
void SetArn(const Aws::String &value)
Definition: ListPoliciesGrantingServiceAccessRequest.h:121
Aws
Definition: AccessManagementClient.h:15
Aws::IAM::Model::ListPoliciesGrantingServiceAccessRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListPoliciesGrantingServiceAccessRequest.h:31
Aws::IAM::Model::ListPoliciesGrantingServiceAccessRequest::WithArn
ListPoliciesGrantingServiceAccessRequest & WithArn(Aws::String &&value)
Definition: ListPoliciesGrantingServiceAccessRequest.h:145
Aws::IAM::Model::ListPoliciesGrantingServiceAccessRequest::SetMarker
void SetMarker(Aws::String &&value)
Definition: ListPoliciesGrantingServiceAccessRequest.h:70
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IAM::Model::ListPoliciesGrantingServiceAccessRequest::GetMarker
const Aws::String & GetMarker() const
Definition: ListPoliciesGrantingServiceAccessRequest.h:46
Aws::IAM::Model::ListPoliciesGrantingServiceAccessRequest::ListPoliciesGrantingServiceAccessRequest
ListPoliciesGrantingServiceAccessRequest()
Aws::IAM::Model::ListPoliciesGrantingServiceAccessRequest::AddServiceNamespaces
ListPoliciesGrantingServiceAccessRequest & AddServiceNamespaces(Aws::String &&value)
Definition: ListPoliciesGrantingServiceAccessRequest.h:264
Aws::IAM::Model::ListPoliciesGrantingServiceAccessRequest::WithMarker
ListPoliciesGrantingServiceAccessRequest & WithMarker(const Aws::String &value)
Definition: ListPoliciesGrantingServiceAccessRequest.h:86
Aws::IAM::Model::ListPoliciesGrantingServiceAccessRequest::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: ListPoliciesGrantingServiceAccessRequest.h:115