AWS SDK for C++  1.9.69
AWS SDK for C++
DescribeIdentityIdFormatRequest.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>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace EC2
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "DescribeIdentityIdFormat"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
43  inline const Aws::String& GetPrincipalArn() const{ return m_principalArn; }
44 
49  inline bool PrincipalArnHasBeenSet() const { return m_principalArnHasBeenSet; }
50 
55  inline void SetPrincipalArn(const Aws::String& value) { m_principalArnHasBeenSet = true; m_principalArn = value; }
56 
61  inline void SetPrincipalArn(Aws::String&& value) { m_principalArnHasBeenSet = true; m_principalArn = std::move(value); }
62 
67  inline void SetPrincipalArn(const char* value) { m_principalArnHasBeenSet = true; m_principalArn.assign(value); }
68 
73  inline DescribeIdentityIdFormatRequest& WithPrincipalArn(const Aws::String& value) { SetPrincipalArn(value); return *this;}
74 
79  inline DescribeIdentityIdFormatRequest& WithPrincipalArn(Aws::String&& value) { SetPrincipalArn(std::move(value)); return *this;}
80 
85  inline DescribeIdentityIdFormatRequest& WithPrincipalArn(const char* value) { SetPrincipalArn(value); return *this;}
86 
87 
104  inline const Aws::String& GetResource() const{ return m_resource; }
105 
122  inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
123 
140  inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
141 
158  inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
159 
176  inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
177 
194  inline DescribeIdentityIdFormatRequest& WithResource(const Aws::String& value) { SetResource(value); return *this;}
195 
212  inline DescribeIdentityIdFormatRequest& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
213 
230  inline DescribeIdentityIdFormatRequest& WithResource(const char* value) { SetResource(value); return *this;}
231 
232  private:
233 
234  Aws::String m_principalArn;
235  bool m_principalArnHasBeenSet;
236 
237  Aws::String m_resource;
238  bool m_resourceHasBeenSet;
239  };
240 
241 } // namespace Model
242 } // namespace EC2
243 } // namespace Aws
Aws::EC2::Model::DescribeIdentityIdFormatRequest::SetPrincipalArn
void SetPrincipalArn(const char *value)
Definition: DescribeIdentityIdFormatRequest.h:67
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeIdentityIdFormatRequest::SetPrincipalArn
void SetPrincipalArn(const Aws::String &value)
Definition: DescribeIdentityIdFormatRequest.h:55
Aws::EC2::Model::DescribeIdentityIdFormatRequest::WithPrincipalArn
DescribeIdentityIdFormatRequest & WithPrincipalArn(const char *value)
Definition: DescribeIdentityIdFormatRequest.h:85
Aws::EC2::Model::DescribeIdentityIdFormatRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeIdentityIdFormatRequest.h:30
Aws::EC2::Model::DescribeIdentityIdFormatRequest::ResourceHasBeenSet
bool ResourceHasBeenSet() const
Definition: DescribeIdentityIdFormatRequest.h:122
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeIdentityIdFormatRequest::GetPrincipalArn
const Aws::String & GetPrincipalArn() const
Definition: DescribeIdentityIdFormatRequest.h:43
Aws::EC2::Model::DescribeIdentityIdFormatRequest::SetResource
void SetResource(Aws::String &&value)
Definition: DescribeIdentityIdFormatRequest.h:158
Aws::EC2::Model::DescribeIdentityIdFormatRequest::WithResource
DescribeIdentityIdFormatRequest & WithResource(const Aws::String &value)
Definition: DescribeIdentityIdFormatRequest.h:194
Aws::EC2::Model::DescribeIdentityIdFormatRequest::GetResource
const Aws::String & GetResource() const
Definition: DescribeIdentityIdFormatRequest.h:104
Aws::EC2::Model::DescribeIdentityIdFormatRequest::SetResource
void SetResource(const char *value)
Definition: DescribeIdentityIdFormatRequest.h:176
Aws::EC2::Model::DescribeIdentityIdFormatRequest::WithResource
DescribeIdentityIdFormatRequest & WithResource(Aws::String &&value)
Definition: DescribeIdentityIdFormatRequest.h:212
Aws::EC2::Model::DescribeIdentityIdFormatRequest::SetPrincipalArn
void SetPrincipalArn(Aws::String &&value)
Definition: DescribeIdentityIdFormatRequest.h:61
EC2Request.h
Aws::EC2::Model::DescribeIdentityIdFormatRequest
Definition: DescribeIdentityIdFormatRequest.h:22
Aws::EC2::Model::DescribeIdentityIdFormatRequest::SetResource
void SetResource(const Aws::String &value)
Definition: DescribeIdentityIdFormatRequest.h:140
Aws::EC2::Model::DescribeIdentityIdFormatRequest::WithPrincipalArn
DescribeIdentityIdFormatRequest & WithPrincipalArn(const Aws::String &value)
Definition: DescribeIdentityIdFormatRequest.h:73
AWSString.h
Aws::EC2::Model::DescribeIdentityIdFormatRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeIdentityIdFormatRequest::PrincipalArnHasBeenSet
bool PrincipalArnHasBeenSet() const
Definition: DescribeIdentityIdFormatRequest.h:49
Aws::EC2::Model::DescribeIdentityIdFormatRequest::WithResource
DescribeIdentityIdFormatRequest & WithResource(const char *value)
Definition: DescribeIdentityIdFormatRequest.h:230
Aws::EC2::Model::DescribeIdentityIdFormatRequest::DescribeIdentityIdFormatRequest
DescribeIdentityIdFormatRequest()
Aws::EC2::Model::DescribeIdentityIdFormatRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
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
EC2_EXPORTS.h
Aws::EC2::Model::DescribeIdentityIdFormatRequest::WithPrincipalArn
DescribeIdentityIdFormatRequest & WithPrincipalArn(Aws::String &&value)
Definition: DescribeIdentityIdFormatRequest.h:79