AWS SDK for C++  1.9.74
AWS SDK for C++
ModifyIdFormatRequest.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 "ModifyIdFormat"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
56  inline const Aws::String& GetResource() const{ return m_resource; }
57 
75  inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
76 
94  inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
95 
113  inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
114 
132  inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
133 
151  inline ModifyIdFormatRequest& WithResource(const Aws::String& value) { SetResource(value); return *this;}
152 
170  inline ModifyIdFormatRequest& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
171 
189  inline ModifyIdFormatRequest& WithResource(const char* value) { SetResource(value); return *this;}
190 
191 
195  inline bool GetUseLongIds() const{ return m_useLongIds; }
196 
200  inline bool UseLongIdsHasBeenSet() const { return m_useLongIdsHasBeenSet; }
201 
205  inline void SetUseLongIds(bool value) { m_useLongIdsHasBeenSet = true; m_useLongIds = value; }
206 
210  inline ModifyIdFormatRequest& WithUseLongIds(bool value) { SetUseLongIds(value); return *this;}
211 
212  private:
213 
214  Aws::String m_resource;
215  bool m_resourceHasBeenSet;
216 
217  bool m_useLongIds;
218  bool m_useLongIdsHasBeenSet;
219  };
220 
221 } // namespace Model
222 } // namespace EC2
223 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ModifyIdFormatRequest::GetResource
const Aws::String & GetResource() const
Definition: ModifyIdFormatRequest.h:56
Aws::EC2::Model::ModifyIdFormatRequest::SetResource
void SetResource(Aws::String &&value)
Definition: ModifyIdFormatRequest.h:113
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ModifyIdFormatRequest::ResourceHasBeenSet
bool ResourceHasBeenSet() const
Definition: ModifyIdFormatRequest.h:75
Aws::EC2::Model::ModifyIdFormatRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::ModifyIdFormatRequest::ModifyIdFormatRequest
ModifyIdFormatRequest()
Aws::EC2::Model::ModifyIdFormatRequest
Definition: ModifyIdFormatRequest.h:22
Aws::EC2::Model::ModifyIdFormatRequest::WithResource
ModifyIdFormatRequest & WithResource(const char *value)
Definition: ModifyIdFormatRequest.h:189
Aws::EC2::Model::ModifyIdFormatRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyIdFormatRequest.h:30
Aws::EC2::Model::ModifyIdFormatRequest::GetUseLongIds
bool GetUseLongIds() const
Definition: ModifyIdFormatRequest.h:195
EC2Request.h
AWSString.h
Aws::EC2::Model::ModifyIdFormatRequest::SetUseLongIds
void SetUseLongIds(bool value)
Definition: ModifyIdFormatRequest.h:205
Aws::EC2::Model::ModifyIdFormatRequest::SetResource
void SetResource(const Aws::String &value)
Definition: ModifyIdFormatRequest.h:94
Aws::EC2::Model::ModifyIdFormatRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::ModifyIdFormatRequest::WithResource
ModifyIdFormatRequest & WithResource(const Aws::String &value)
Definition: ModifyIdFormatRequest.h:151
Aws::EC2::Model::ModifyIdFormatRequest::WithResource
ModifyIdFormatRequest & WithResource(Aws::String &&value)
Definition: ModifyIdFormatRequest.h:170
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ModifyIdFormatRequest::SetResource
void SetResource(const char *value)
Definition: ModifyIdFormatRequest.h:132
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::ModifyIdFormatRequest::WithUseLongIds
ModifyIdFormatRequest & WithUseLongIds(bool value)
Definition: ModifyIdFormatRequest.h:210
Aws::EC2::Model::ModifyIdFormatRequest::UseLongIdsHasBeenSet
bool UseLongIdsHasBeenSet() const
Definition: ModifyIdFormatRequest.h:200
EC2_EXPORTS.h