AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyIdFormatRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace EC2
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_EC2_API ModifyIdFormatRequest();
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_EC2_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36
37 public:
38
40
57 inline const Aws::String& GetResource() const{ return m_resource; }
58 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
59 inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
60 inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
61 inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
62 inline ModifyIdFormatRequest& WithResource(const Aws::String& value) { SetResource(value); return *this;}
63 inline ModifyIdFormatRequest& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
64 inline ModifyIdFormatRequest& WithResource(const char* value) { SetResource(value); return *this;}
66
68
71 inline bool GetUseLongIds() const{ return m_useLongIds; }
72 inline bool UseLongIdsHasBeenSet() const { return m_useLongIdsHasBeenSet; }
73 inline void SetUseLongIds(bool value) { m_useLongIdsHasBeenSet = true; m_useLongIds = value; }
74 inline ModifyIdFormatRequest& WithUseLongIds(bool value) { SetUseLongIds(value); return *this;}
76 private:
77
78 Aws::String m_resource;
79 bool m_resourceHasBeenSet = false;
80
81 bool m_useLongIds;
82 bool m_useLongIdsHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace EC2
87} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyIdFormatRequest & WithResource(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
ModifyIdFormatRequest & WithUseLongIds(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
ModifyIdFormatRequest & WithResource(const Aws::String &value)
ModifyIdFormatRequest & WithResource(const char *value)
void SetResource(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String