AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListPrincipalsRequest.h
1
6#pragma once
7#include <aws/ram/RAM_EXPORTS.h>
8#include <aws/ram/RAMRequest.h>
9#include <aws/ram/model/ResourceOwner.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace RAM
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_RAM_API ListPrincipalsRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ListPrincipals"; }
33
34 AWS_RAM_API Aws::String SerializePayload() const override;
35
36
38
45 inline const ResourceOwner& GetResourceOwner() const{ return m_resourceOwner; }
46 inline bool ResourceOwnerHasBeenSet() const { return m_resourceOwnerHasBeenSet; }
47 inline void SetResourceOwner(const ResourceOwner& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = value; }
48 inline void SetResourceOwner(ResourceOwner&& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = std::move(value); }
49 inline ListPrincipalsRequest& WithResourceOwner(const ResourceOwner& value) { SetResourceOwner(value); return *this;}
50 inline ListPrincipalsRequest& WithResourceOwner(ResourceOwner&& value) { SetResourceOwner(std::move(value)); return *this;}
52
54
60 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
61 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
62 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
63 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
64 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
65 inline ListPrincipalsRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
66 inline ListPrincipalsRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
67 inline ListPrincipalsRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
69
71
90 inline const Aws::Vector<Aws::String>& GetPrincipals() const{ return m_principals; }
91 inline bool PrincipalsHasBeenSet() const { return m_principalsHasBeenSet; }
92 inline void SetPrincipals(const Aws::Vector<Aws::String>& value) { m_principalsHasBeenSet = true; m_principals = value; }
93 inline void SetPrincipals(Aws::Vector<Aws::String>&& value) { m_principalsHasBeenSet = true; m_principals = std::move(value); }
94 inline ListPrincipalsRequest& WithPrincipals(const Aws::Vector<Aws::String>& value) { SetPrincipals(value); return *this;}
95 inline ListPrincipalsRequest& WithPrincipals(Aws::Vector<Aws::String>&& value) { SetPrincipals(std::move(value)); return *this;}
96 inline ListPrincipalsRequest& AddPrincipals(const Aws::String& value) { m_principalsHasBeenSet = true; m_principals.push_back(value); return *this; }
97 inline ListPrincipalsRequest& AddPrincipals(Aws::String&& value) { m_principalsHasBeenSet = true; m_principals.push_back(std::move(value)); return *this; }
98 inline ListPrincipalsRequest& AddPrincipals(const char* value) { m_principalsHasBeenSet = true; m_principals.push_back(value); return *this; }
100
102
107 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
108 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
109 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
110 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
111 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
112 inline ListPrincipalsRequest& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
113 inline ListPrincipalsRequest& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
114 inline ListPrincipalsRequest& WithResourceType(const char* value) { SetResourceType(value); return *this;}
116
118
124 inline const Aws::Vector<Aws::String>& GetResourceShareArns() const{ return m_resourceShareArns; }
125 inline bool ResourceShareArnsHasBeenSet() const { return m_resourceShareArnsHasBeenSet; }
126 inline void SetResourceShareArns(const Aws::Vector<Aws::String>& value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns = value; }
127 inline void SetResourceShareArns(Aws::Vector<Aws::String>&& value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns = std::move(value); }
130 inline ListPrincipalsRequest& AddResourceShareArns(const Aws::String& value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns.push_back(value); return *this; }
131 inline ListPrincipalsRequest& AddResourceShareArns(Aws::String&& value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns.push_back(std::move(value)); return *this; }
132 inline ListPrincipalsRequest& AddResourceShareArns(const char* value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns.push_back(value); return *this; }
134
136
143 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
144 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
145 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
146 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
147 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
148 inline ListPrincipalsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
149 inline ListPrincipalsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
150 inline ListPrincipalsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
152
154
165 inline int GetMaxResults() const{ return m_maxResults; }
166 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
167 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
168 inline ListPrincipalsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
170 private:
171
172 ResourceOwner m_resourceOwner;
173 bool m_resourceOwnerHasBeenSet = false;
174
175 Aws::String m_resourceArn;
176 bool m_resourceArnHasBeenSet = false;
177
178 Aws::Vector<Aws::String> m_principals;
179 bool m_principalsHasBeenSet = false;
180
181 Aws::String m_resourceType;
182 bool m_resourceTypeHasBeenSet = false;
183
184 Aws::Vector<Aws::String> m_resourceShareArns;
185 bool m_resourceShareArnsHasBeenSet = false;
186
187 Aws::String m_nextToken;
188 bool m_nextTokenHasBeenSet = false;
189
190 int m_maxResults;
191 bool m_maxResultsHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace RAM
196} // namespace Aws
ListPrincipalsRequest & WithResourceArn(const char *value)
ListPrincipalsRequest & AddPrincipals(const char *value)
ListPrincipalsRequest & AddResourceShareArns(Aws::String &&value)
ListPrincipalsRequest & AddResourceShareArns(const char *value)
ListPrincipalsRequest & WithResourceArn(const Aws::String &value)
void SetResourceOwner(ResourceOwner &&value)
void SetResourceShareArns(Aws::Vector< Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetPrincipals() const
ListPrincipalsRequest & AddPrincipals(Aws::String &&value)
ListPrincipalsRequest & WithNextToken(const char *value)
void SetResourceShareArns(const Aws::Vector< Aws::String > &value)
ListPrincipalsRequest & AddResourceShareArns(const Aws::String &value)
const ResourceOwner & GetResourceOwner() const
ListPrincipalsRequest & WithResourceOwner(const ResourceOwner &value)
ListPrincipalsRequest & WithMaxResults(int value)
ListPrincipalsRequest & WithNextToken(const Aws::String &value)
ListPrincipalsRequest & WithResourceType(const char *value)
const Aws::Vector< Aws::String > & GetResourceShareArns() const
void SetPrincipals(Aws::Vector< Aws::String > &&value)
ListPrincipalsRequest & WithResourceShareArns(Aws::Vector< Aws::String > &&value)
ListPrincipalsRequest & WithResourceType(const Aws::String &value)
void SetPrincipals(const Aws::Vector< Aws::String > &value)
void SetResourceOwner(const ResourceOwner &value)
ListPrincipalsRequest & WithResourceOwner(ResourceOwner &&value)
void SetResourceArn(const Aws::String &value)
ListPrincipalsRequest & WithNextToken(Aws::String &&value)
void SetNextToken(const Aws::String &value)
ListPrincipalsRequest & WithResourceShareArns(const Aws::Vector< Aws::String > &value)
ListPrincipalsRequest & WithResourceType(Aws::String &&value)
ListPrincipalsRequest & AddPrincipals(const Aws::String &value)
void SetResourceType(const Aws::String &value)
ListPrincipalsRequest & WithPrincipals(const Aws::Vector< Aws::String > &value)
ListPrincipalsRequest & WithResourceArn(Aws::String &&value)
AWS_RAM_API Aws::String SerializePayload() const override
ListPrincipalsRequest & WithPrincipals(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector