AWS SDK for C++  1.9.16
AWS SDK for C++
ModifyIdentityIdFormatRequest.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 "ModifyIdentityIdFormat"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
44  inline const Aws::String& GetPrincipalArn() const{ return m_principalArn; }
45 
51  inline bool PrincipalArnHasBeenSet() const { return m_principalArnHasBeenSet; }
52 
58  inline void SetPrincipalArn(const Aws::String& value) { m_principalArnHasBeenSet = true; m_principalArn = value; }
59 
65  inline void SetPrincipalArn(Aws::String&& value) { m_principalArnHasBeenSet = true; m_principalArn = std::move(value); }
66 
72  inline void SetPrincipalArn(const char* value) { m_principalArnHasBeenSet = true; m_principalArn.assign(value); }
73 
79  inline ModifyIdentityIdFormatRequest& WithPrincipalArn(const Aws::String& value) { SetPrincipalArn(value); return *this;}
80 
86  inline ModifyIdentityIdFormatRequest& WithPrincipalArn(Aws::String&& value) { SetPrincipalArn(std::move(value)); return *this;}
87 
93  inline ModifyIdentityIdFormatRequest& WithPrincipalArn(const char* value) { SetPrincipalArn(value); return *this;}
94 
95 
113  inline const Aws::String& GetResource() const{ return m_resource; }
114 
132  inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
133 
151  inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
152 
170  inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
171 
189  inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
190 
208  inline ModifyIdentityIdFormatRequest& WithResource(const Aws::String& value) { SetResource(value); return *this;}
209 
227  inline ModifyIdentityIdFormatRequest& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
228 
246  inline ModifyIdentityIdFormatRequest& WithResource(const char* value) { SetResource(value); return *this;}
247 
248 
252  inline bool GetUseLongIds() const{ return m_useLongIds; }
253 
257  inline bool UseLongIdsHasBeenSet() const { return m_useLongIdsHasBeenSet; }
258 
262  inline void SetUseLongIds(bool value) { m_useLongIdsHasBeenSet = true; m_useLongIds = value; }
263 
267  inline ModifyIdentityIdFormatRequest& WithUseLongIds(bool value) { SetUseLongIds(value); return *this;}
268 
269  private:
270 
271  Aws::String m_principalArn;
272  bool m_principalArnHasBeenSet;
273 
274  Aws::String m_resource;
275  bool m_resourceHasBeenSet;
276 
277  bool m_useLongIds;
278  bool m_useLongIdsHasBeenSet;
279  };
280 
281 } // namespace Model
282 } // namespace EC2
283 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ModifyIdentityIdFormatRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::ModifyIdentityIdFormatRequest::PrincipalArnHasBeenSet
bool PrincipalArnHasBeenSet() const
Definition: ModifyIdentityIdFormatRequest.h:51
Aws::EC2::Model::ModifyIdentityIdFormatRequest::GetUseLongIds
bool GetUseLongIds() const
Definition: ModifyIdentityIdFormatRequest.h:252
Aws::EC2::Model::ModifyIdentityIdFormatRequest::GetResource
const Aws::String & GetResource() const
Definition: ModifyIdentityIdFormatRequest.h:113
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ModifyIdentityIdFormatRequest::SetUseLongIds
void SetUseLongIds(bool value)
Definition: ModifyIdentityIdFormatRequest.h:262
Aws::EC2::Model::ModifyIdentityIdFormatRequest::WithPrincipalArn
ModifyIdentityIdFormatRequest & WithPrincipalArn(Aws::String &&value)
Definition: ModifyIdentityIdFormatRequest.h:86
Aws::EC2::Model::ModifyIdentityIdFormatRequest::SetPrincipalArn
void SetPrincipalArn(const char *value)
Definition: ModifyIdentityIdFormatRequest.h:72
Aws::EC2::Model::ModifyIdentityIdFormatRequest::WithPrincipalArn
ModifyIdentityIdFormatRequest & WithPrincipalArn(const Aws::String &value)
Definition: ModifyIdentityIdFormatRequest.h:79
Aws::EC2::Model::ModifyIdentityIdFormatRequest::SetResource
void SetResource(const char *value)
Definition: ModifyIdentityIdFormatRequest.h:189
Aws::EC2::Model::ModifyIdentityIdFormatRequest::WithResource
ModifyIdentityIdFormatRequest & WithResource(Aws::String &&value)
Definition: ModifyIdentityIdFormatRequest.h:227
Aws::EC2::Model::ModifyIdentityIdFormatRequest::SetPrincipalArn
void SetPrincipalArn(Aws::String &&value)
Definition: ModifyIdentityIdFormatRequest.h:65
EC2Request.h
Aws::EC2::Model::ModifyIdentityIdFormatRequest::SetPrincipalArn
void SetPrincipalArn(const Aws::String &value)
Definition: ModifyIdentityIdFormatRequest.h:58
Aws::EC2::Model::ModifyIdentityIdFormatRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyIdentityIdFormatRequest.h:30
Aws::EC2::Model::ModifyIdentityIdFormatRequest::UseLongIdsHasBeenSet
bool UseLongIdsHasBeenSet() const
Definition: ModifyIdentityIdFormatRequest.h:257
AWSString.h
Aws::EC2::Model::ModifyIdentityIdFormatRequest::SetResource
void SetResource(const Aws::String &value)
Definition: ModifyIdentityIdFormatRequest.h:151
Aws::EC2::Model::ModifyIdentityIdFormatRequest::GetPrincipalArn
const Aws::String & GetPrincipalArn() const
Definition: ModifyIdentityIdFormatRequest.h:44
Aws::EC2::Model::ModifyIdentityIdFormatRequest::ModifyIdentityIdFormatRequest
ModifyIdentityIdFormatRequest()
Aws::EC2::Model::ModifyIdentityIdFormatRequest::WithResource
ModifyIdentityIdFormatRequest & WithResource(const Aws::String &value)
Definition: ModifyIdentityIdFormatRequest.h:208
Aws::EC2::Model::ModifyIdentityIdFormatRequest::SetResource
void SetResource(Aws::String &&value)
Definition: ModifyIdentityIdFormatRequest.h:170
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ModifyIdentityIdFormatRequest::WithResource
ModifyIdentityIdFormatRequest & WithResource(const char *value)
Definition: ModifyIdentityIdFormatRequest.h:246
Aws::EC2::Model::ModifyIdentityIdFormatRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::ModifyIdentityIdFormatRequest::WithPrincipalArn
ModifyIdentityIdFormatRequest & WithPrincipalArn(const char *value)
Definition: ModifyIdentityIdFormatRequest.h:93
Aws::EC2::Model::ModifyIdentityIdFormatRequest::WithUseLongIds
ModifyIdentityIdFormatRequest & WithUseLongIds(bool value)
Definition: ModifyIdentityIdFormatRequest.h:267
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ModifyIdentityIdFormatRequest::ResourceHasBeenSet
bool ResourceHasBeenSet() const
Definition: ModifyIdentityIdFormatRequest.h:132
Aws::EC2::EC2Request
Definition: EC2Request.h:17
EC2_EXPORTS.h
Aws::EC2::Model::ModifyIdentityIdFormatRequest
Definition: ModifyIdentityIdFormatRequest.h:22