AWS SDK for C++  1.9.66
AWS SDK for C++
DescribePrincipalIdFormatRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace EC2
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 "DescribePrincipalIdFormat"; }
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 bool GetDryRun() const{ return m_dryRun; }
47 
54  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
55 
62  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
63 
70  inline DescribePrincipalIdFormatRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
71 
72 
89  inline const Aws::Vector<Aws::String>& GetResources() const{ return m_resources; }
90 
107  inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
108 
125  inline void SetResources(const Aws::Vector<Aws::String>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
126 
143  inline void SetResources(Aws::Vector<Aws::String>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
144 
161  inline DescribePrincipalIdFormatRequest& WithResources(const Aws::Vector<Aws::String>& value) { SetResources(value); return *this;}
162 
179  inline DescribePrincipalIdFormatRequest& WithResources(Aws::Vector<Aws::String>&& value) { SetResources(std::move(value)); return *this;}
180 
197  inline DescribePrincipalIdFormatRequest& AddResources(const Aws::String& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
198 
215  inline DescribePrincipalIdFormatRequest& AddResources(Aws::String&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
216 
233  inline DescribePrincipalIdFormatRequest& AddResources(const char* value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
234 
235 
240  inline int GetMaxResults() const{ return m_maxResults; }
241 
246  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
247 
252  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
253 
258  inline DescribePrincipalIdFormatRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
259 
260 
264  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
265 
269  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
270 
274  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
275 
279  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
280 
284  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
285 
289  inline DescribePrincipalIdFormatRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
290 
294  inline DescribePrincipalIdFormatRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
295 
299  inline DescribePrincipalIdFormatRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
300 
301  private:
302 
303  bool m_dryRun;
304  bool m_dryRunHasBeenSet;
305 
306  Aws::Vector<Aws::String> m_resources;
307  bool m_resourcesHasBeenSet;
308 
309  int m_maxResults;
310  bool m_maxResultsHasBeenSet;
311 
312  Aws::String m_nextToken;
313  bool m_nextTokenHasBeenSet;
314  };
315 
316 } // namespace Model
317 } // namespace EC2
318 } // namespace Aws
Aws::EC2::Model::DescribePrincipalIdFormatRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribePrincipalIdFormatRequest.h:284
Aws::EC2::Model::DescribePrincipalIdFormatRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribePrincipalIdFormatRequest.h:246
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribePrincipalIdFormatRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribePrincipalIdFormatRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribePrincipalIdFormatRequest.h:252
Aws::EC2::Model::DescribePrincipalIdFormatRequest::WithNextToken
DescribePrincipalIdFormatRequest & WithNextToken(const char *value)
Definition: DescribePrincipalIdFormatRequest.h:299
Aws::EC2::Model::DescribePrincipalIdFormatRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribePrincipalIdFormatRequest.h:31
Aws::EC2::Model::DescribePrincipalIdFormatRequest
Definition: DescribePrincipalIdFormatRequest.h:23
Aws::EC2::Model::DescribePrincipalIdFormatRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribePrincipalIdFormatRequest.h:62
Aws::EC2::Model::DescribePrincipalIdFormatRequest::WithNextToken
DescribePrincipalIdFormatRequest & WithNextToken(Aws::String &&value)
Definition: DescribePrincipalIdFormatRequest.h:294
Aws::EC2::Model::DescribePrincipalIdFormatRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribePrincipalIdFormatRequest.h:269
Aws::EC2::Model::DescribePrincipalIdFormatRequest::GetResources
const Aws::Vector< Aws::String > & GetResources() const
Definition: DescribePrincipalIdFormatRequest.h:89
Aws::EC2::Model::DescribePrincipalIdFormatRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribePrincipalIdFormatRequest.h:54
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribePrincipalIdFormatRequest::AddResources
DescribePrincipalIdFormatRequest & AddResources(const Aws::String &value)
Definition: DescribePrincipalIdFormatRequest.h:197
Aws::EC2::Model::DescribePrincipalIdFormatRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribePrincipalIdFormatRequest.h:274
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::EC2::Model::DescribePrincipalIdFormatRequest::SetResources
void SetResources(Aws::Vector< Aws::String > &&value)
Definition: DescribePrincipalIdFormatRequest.h:143
Aws::EC2::Model::DescribePrincipalIdFormatRequest::WithDryRun
DescribePrincipalIdFormatRequest & WithDryRun(bool value)
Definition: DescribePrincipalIdFormatRequest.h:70
Aws::EC2::Model::DescribePrincipalIdFormatRequest::WithResources
DescribePrincipalIdFormatRequest & WithResources(Aws::Vector< Aws::String > &&value)
Definition: DescribePrincipalIdFormatRequest.h:179
Aws::EC2::Model::DescribePrincipalIdFormatRequest::ResourcesHasBeenSet
bool ResourcesHasBeenSet() const
Definition: DescribePrincipalIdFormatRequest.h:107
Aws::EC2::Model::DescribePrincipalIdFormatRequest::AddResources
DescribePrincipalIdFormatRequest & AddResources(const char *value)
Definition: DescribePrincipalIdFormatRequest.h:233
Aws::EC2::Model::DescribePrincipalIdFormatRequest::GetDryRun
bool GetDryRun() const
Definition: DescribePrincipalIdFormatRequest.h:46
Aws::EC2::Model::DescribePrincipalIdFormatRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribePrincipalIdFormatRequest.h:240
EC2Request.h
Aws::EC2::Model::DescribePrincipalIdFormatRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribePrincipalIdFormatRequest.h:264
AWSString.h
Aws::EC2::Model::DescribePrincipalIdFormatRequest::WithResources
DescribePrincipalIdFormatRequest & WithResources(const Aws::Vector< Aws::String > &value)
Definition: DescribePrincipalIdFormatRequest.h:161
Aws::EC2::Model::DescribePrincipalIdFormatRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribePrincipalIdFormatRequest.h:279
Aws::EC2::Model::DescribePrincipalIdFormatRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribePrincipalIdFormatRequest::AddResources
DescribePrincipalIdFormatRequest & AddResources(Aws::String &&value)
Definition: DescribePrincipalIdFormatRequest.h:215
Aws::EC2::Model::DescribePrincipalIdFormatRequest::DescribePrincipalIdFormatRequest
DescribePrincipalIdFormatRequest()
Aws::EC2::Model::DescribePrincipalIdFormatRequest::WithNextToken
DescribePrincipalIdFormatRequest & WithNextToken(const Aws::String &value)
Definition: DescribePrincipalIdFormatRequest.h:289
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribePrincipalIdFormatRequest::SetResources
void SetResources(const Aws::Vector< Aws::String > &value)
Definition: DescribePrincipalIdFormatRequest.h:125
Aws::EC2::Model::DescribePrincipalIdFormatRequest::WithMaxResults
DescribePrincipalIdFormatRequest & WithMaxResults(int value)
Definition: DescribePrincipalIdFormatRequest.h:258
EC2_EXPORTS.h