AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ResourceT = Aws::String>
60 void SetResource(ResourceT&& value) { m_resourceHasBeenSet = true; m_resource = std::forward<ResourceT>(value); }
61 template<typename ResourceT = Aws::String>
62 ModifyIdFormatRequest& WithResource(ResourceT&& value) { SetResource(std::forward<ResourceT>(value)); return *this;}
64
66
69 inline bool GetUseLongIds() const { return m_useLongIds; }
70 inline bool UseLongIdsHasBeenSet() const { return m_useLongIdsHasBeenSet; }
71 inline void SetUseLongIds(bool value) { m_useLongIdsHasBeenSet = true; m_useLongIds = value; }
72 inline ModifyIdFormatRequest& WithUseLongIds(bool value) { SetUseLongIds(value); return *this;}
74 private:
75
76 Aws::String m_resource;
77 bool m_resourceHasBeenSet = false;
78
79 bool m_useLongIds{false};
80 bool m_useLongIdsHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace EC2
85} // namespace Aws
AWS_EC2_API ModifyIdFormatRequest()=default
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
ModifyIdFormatRequest & WithUseLongIds(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
ModifyIdFormatRequest & WithResource(ResourceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String