AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateIpamResourceDiscoveryRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2Request.h>
11#include <aws/ec2/EC2_EXPORTS.h>
12#include <aws/ec2/model/AddIpamOperatingRegion.h>
13#include <aws/ec2/model/TagSpecification.h>
14
15#include <utility>
16
17namespace Aws {
18namespace EC2 {
19namespace Model {
20
24 public:
25 AWS_EC2_API CreateIpamResourceDiscoveryRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateIpamResourceDiscovery"; }
32
33 AWS_EC2_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
37
38 public:
40
46 inline bool GetDryRun() const { return m_dryRun; }
47 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
48 inline void SetDryRun(bool value) {
49 m_dryRunHasBeenSet = true;
50 m_dryRun = value;
51 }
53 SetDryRun(value);
54 return *this;
55 }
57
59
62 inline const Aws::String& GetDescription() const { return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 template <typename DescriptionT = Aws::String>
65 void SetDescription(DescriptionT&& value) {
66 m_descriptionHasBeenSet = true;
67 m_description = std::forward<DescriptionT>(value);
68 }
69 template <typename DescriptionT = Aws::String>
71 SetDescription(std::forward<DescriptionT>(value));
72 return *this;
73 }
75
77
83 inline const Aws::Vector<AddIpamOperatingRegion>& GetOperatingRegions() const { return m_operatingRegions; }
84 inline bool OperatingRegionsHasBeenSet() const { return m_operatingRegionsHasBeenSet; }
85 template <typename OperatingRegionsT = Aws::Vector<AddIpamOperatingRegion>>
86 void SetOperatingRegions(OperatingRegionsT&& value) {
87 m_operatingRegionsHasBeenSet = true;
88 m_operatingRegions = std::forward<OperatingRegionsT>(value);
89 }
90 template <typename OperatingRegionsT = Aws::Vector<AddIpamOperatingRegion>>
92 SetOperatingRegions(std::forward<OperatingRegionsT>(value));
93 return *this;
94 }
95 template <typename OperatingRegionsT = AddIpamOperatingRegion>
97 m_operatingRegionsHasBeenSet = true;
98 m_operatingRegions.emplace_back(std::forward<OperatingRegionsT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
108 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
109 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
110 void SetTagSpecifications(TagSpecificationsT&& value) {
111 m_tagSpecificationsHasBeenSet = true;
112 m_tagSpecifications = std::forward<TagSpecificationsT>(value);
113 }
114 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
116 SetTagSpecifications(std::forward<TagSpecificationsT>(value));
117 return *this;
118 }
119 template <typename TagSpecificationsT = TagSpecification>
121 m_tagSpecificationsHasBeenSet = true;
122 m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetClientToken() const { return m_clientToken; }
132 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
133 template <typename ClientTokenT = Aws::String>
134 void SetClientToken(ClientTokenT&& value) {
135 m_clientTokenHasBeenSet = true;
136 m_clientToken = std::forward<ClientTokenT>(value);
137 }
138 template <typename ClientTokenT = Aws::String>
140 SetClientToken(std::forward<ClientTokenT>(value));
141 return *this;
142 }
144 private:
145 bool m_dryRun{false};
146
147 Aws::String m_description;
148
149 Aws::Vector<AddIpamOperatingRegion> m_operatingRegions;
150
151 Aws::Vector<TagSpecification> m_tagSpecifications;
152
154 bool m_dryRunHasBeenSet = false;
155 bool m_descriptionHasBeenSet = false;
156 bool m_operatingRegionsHasBeenSet = false;
157 bool m_tagSpecificationsHasBeenSet = false;
158 bool m_clientTokenHasBeenSet = true;
159};
160
161} // namespace Model
162} // namespace EC2
163} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateIpamResourceDiscoveryRequest & WithOperatingRegions(OperatingRegionsT &&value)
CreateIpamResourceDiscoveryRequest & WithClientToken(ClientTokenT &&value)
CreateIpamResourceDiscoveryRequest & WithDryRun(bool value)
CreateIpamResourceDiscoveryRequest & AddOperatingRegions(OperatingRegionsT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateIpamResourceDiscoveryRequest & AddTagSpecifications(TagSpecificationsT &&value)
const Aws::Vector< AddIpamOperatingRegion > & GetOperatingRegions() const
CreateIpamResourceDiscoveryRequest & WithTagSpecifications(TagSpecificationsT &&value)
CreateIpamResourceDiscoveryRequest & WithDescription(DescriptionT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector