AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ModifyIpamResourceCidrRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace EC2 {
15namespace Model {
16
20 public:
21 AWS_EC2_API ModifyIpamResourceCidrRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "ModifyIpamResourceCidr"; }
28
29 AWS_EC2_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
42 inline bool GetDryRun() const { return m_dryRun; }
43 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
44 inline void SetDryRun(bool value) {
45 m_dryRunHasBeenSet = true;
46 m_dryRun = value;
47 }
49 SetDryRun(value);
50 return *this;
51 }
53
55
58 inline const Aws::String& GetResourceId() const { return m_resourceId; }
59 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
60 template <typename ResourceIdT = Aws::String>
61 void SetResourceId(ResourceIdT&& value) {
62 m_resourceIdHasBeenSet = true;
63 m_resourceId = std::forward<ResourceIdT>(value);
64 }
65 template <typename ResourceIdT = Aws::String>
67 SetResourceId(std::forward<ResourceIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetResourceCidr() const { return m_resourceCidr; }
77 inline bool ResourceCidrHasBeenSet() const { return m_resourceCidrHasBeenSet; }
78 template <typename ResourceCidrT = Aws::String>
79 void SetResourceCidr(ResourceCidrT&& value) {
80 m_resourceCidrHasBeenSet = true;
81 m_resourceCidr = std::forward<ResourceCidrT>(value);
82 }
83 template <typename ResourceCidrT = Aws::String>
85 SetResourceCidr(std::forward<ResourceCidrT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetResourceRegion() const { return m_resourceRegion; }
95 inline bool ResourceRegionHasBeenSet() const { return m_resourceRegionHasBeenSet; }
96 template <typename ResourceRegionT = Aws::String>
97 void SetResourceRegion(ResourceRegionT&& value) {
98 m_resourceRegionHasBeenSet = true;
99 m_resourceRegion = std::forward<ResourceRegionT>(value);
100 }
101 template <typename ResourceRegionT = Aws::String>
103 SetResourceRegion(std::forward<ResourceRegionT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetCurrentIpamScopeId() const { return m_currentIpamScopeId; }
113 inline bool CurrentIpamScopeIdHasBeenSet() const { return m_currentIpamScopeIdHasBeenSet; }
114 template <typename CurrentIpamScopeIdT = Aws::String>
115 void SetCurrentIpamScopeId(CurrentIpamScopeIdT&& value) {
116 m_currentIpamScopeIdHasBeenSet = true;
117 m_currentIpamScopeId = std::forward<CurrentIpamScopeIdT>(value);
118 }
119 template <typename CurrentIpamScopeIdT = Aws::String>
121 SetCurrentIpamScopeId(std::forward<CurrentIpamScopeIdT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetDestinationIpamScopeId() const { return m_destinationIpamScopeId; }
131 inline bool DestinationIpamScopeIdHasBeenSet() const { return m_destinationIpamScopeIdHasBeenSet; }
132 template <typename DestinationIpamScopeIdT = Aws::String>
133 void SetDestinationIpamScopeId(DestinationIpamScopeIdT&& value) {
134 m_destinationIpamScopeIdHasBeenSet = true;
135 m_destinationIpamScopeId = std::forward<DestinationIpamScopeIdT>(value);
136 }
137 template <typename DestinationIpamScopeIdT = Aws::String>
139 SetDestinationIpamScopeId(std::forward<DestinationIpamScopeIdT>(value));
140 return *this;
141 }
143
145
150 inline bool GetMonitored() const { return m_monitored; }
151 inline bool MonitoredHasBeenSet() const { return m_monitoredHasBeenSet; }
152 inline void SetMonitored(bool value) {
153 m_monitoredHasBeenSet = true;
154 m_monitored = value;
155 }
157 SetMonitored(value);
158 return *this;
159 }
161 private:
162 bool m_dryRun{false};
163
164 Aws::String m_resourceId;
165
166 Aws::String m_resourceCidr;
167
168 Aws::String m_resourceRegion;
169
170 Aws::String m_currentIpamScopeId;
171
172 Aws::String m_destinationIpamScopeId;
173
174 bool m_monitored{false};
175 bool m_dryRunHasBeenSet = false;
176 bool m_resourceIdHasBeenSet = false;
177 bool m_resourceCidrHasBeenSet = false;
178 bool m_resourceRegionHasBeenSet = false;
179 bool m_currentIpamScopeIdHasBeenSet = false;
180 bool m_destinationIpamScopeIdHasBeenSet = false;
181 bool m_monitoredHasBeenSet = false;
182};
183
184} // namespace Model
185} // namespace EC2
186} // namespace Aws
void SetDestinationIpamScopeId(DestinationIpamScopeIdT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
ModifyIpamResourceCidrRequest & WithDestinationIpamScopeId(DestinationIpamScopeIdT &&value)
ModifyIpamResourceCidrRequest & WithDryRun(bool value)
ModifyIpamResourceCidrRequest & WithMonitored(bool value)
ModifyIpamResourceCidrRequest & WithResourceRegion(ResourceRegionT &&value)
ModifyIpamResourceCidrRequest & WithResourceId(ResourceIdT &&value)
ModifyIpamResourceCidrRequest & WithCurrentIpamScopeId(CurrentIpamScopeIdT &&value)
ModifyIpamResourceCidrRequest & WithResourceCidr(ResourceCidrT &&value)
virtual const char * GetServiceRequestName() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String