AWS SDK for C++  1.9.70
AWS SDK for C++
DescribeIdFormatRequest.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 "DescribeIdFormat"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
55  inline const Aws::String& GetResource() const{ return m_resource; }
56 
73  inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
74 
91  inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
92 
109  inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
110 
127  inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
128 
145  inline DescribeIdFormatRequest& WithResource(const Aws::String& value) { SetResource(value); return *this;}
146 
163  inline DescribeIdFormatRequest& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
164 
181  inline DescribeIdFormatRequest& WithResource(const char* value) { SetResource(value); return *this;}
182 
183  private:
184 
185  Aws::String m_resource;
186  bool m_resourceHasBeenSet;
187  };
188 
189 } // namespace Model
190 } // namespace EC2
191 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeIdFormatRequest::SetResource
void SetResource(const char *value)
Definition: DescribeIdFormatRequest.h:127
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeIdFormatRequest::DescribeIdFormatRequest
DescribeIdFormatRequest()
Aws::EC2::Model::DescribeIdFormatRequest
Definition: DescribeIdFormatRequest.h:22
Aws::EC2::Model::DescribeIdFormatRequest::SetResource
void SetResource(const Aws::String &value)
Definition: DescribeIdFormatRequest.h:91
Aws::EC2::Model::DescribeIdFormatRequest::SetResource
void SetResource(Aws::String &&value)
Definition: DescribeIdFormatRequest.h:109
Aws::EC2::Model::DescribeIdFormatRequest::WithResource
DescribeIdFormatRequest & WithResource(const Aws::String &value)
Definition: DescribeIdFormatRequest.h:145
Aws::EC2::Model::DescribeIdFormatRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeIdFormatRequest::WithResource
DescribeIdFormatRequest & WithResource(const char *value)
Definition: DescribeIdFormatRequest.h:181
Aws::EC2::Model::DescribeIdFormatRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
EC2Request.h
AWSString.h
Aws::EC2::Model::DescribeIdFormatRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeIdFormatRequest.h:30
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeIdFormatRequest::GetResource
const Aws::String & GetResource() const
Definition: DescribeIdFormatRequest.h:55
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeIdFormatRequest::WithResource
DescribeIdFormatRequest & WithResource(Aws::String &&value)
Definition: DescribeIdFormatRequest.h:163
Aws::EC2::EC2Request
Definition: EC2Request.h:17
EC2_EXPORTS.h
Aws::EC2::Model::DescribeIdFormatRequest::ResourceHasBeenSet
bool ResourceHasBeenSet() const
Definition: DescribeIdFormatRequest.h:73