AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ModifyIpamResourceCidrRequest.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 ModifyIpamResourceCidrRequest() = 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 "ModifyIpamResourceCidr"; }
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
46 inline bool GetDryRun() const { return m_dryRun; }
47 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
48 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
49 inline ModifyIpamResourceCidrRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
51
53
56 inline const Aws::String& GetResourceId() const { return m_resourceId; }
57 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
58 template<typename ResourceIdT = Aws::String>
59 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
60 template<typename ResourceIdT = Aws::String>
61 ModifyIpamResourceCidrRequest& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
63
65
68 inline const Aws::String& GetResourceCidr() const { return m_resourceCidr; }
69 inline bool ResourceCidrHasBeenSet() const { return m_resourceCidrHasBeenSet; }
70 template<typename ResourceCidrT = Aws::String>
71 void SetResourceCidr(ResourceCidrT&& value) { m_resourceCidrHasBeenSet = true; m_resourceCidr = std::forward<ResourceCidrT>(value); }
72 template<typename ResourceCidrT = Aws::String>
73 ModifyIpamResourceCidrRequest& WithResourceCidr(ResourceCidrT&& value) { SetResourceCidr(std::forward<ResourceCidrT>(value)); return *this;}
75
77
80 inline const Aws::String& GetResourceRegion() const { return m_resourceRegion; }
81 inline bool ResourceRegionHasBeenSet() const { return m_resourceRegionHasBeenSet; }
82 template<typename ResourceRegionT = Aws::String>
83 void SetResourceRegion(ResourceRegionT&& value) { m_resourceRegionHasBeenSet = true; m_resourceRegion = std::forward<ResourceRegionT>(value); }
84 template<typename ResourceRegionT = Aws::String>
85 ModifyIpamResourceCidrRequest& WithResourceRegion(ResourceRegionT&& value) { SetResourceRegion(std::forward<ResourceRegionT>(value)); return *this;}
87
89
92 inline const Aws::String& GetCurrentIpamScopeId() const { return m_currentIpamScopeId; }
93 inline bool CurrentIpamScopeIdHasBeenSet() const { return m_currentIpamScopeIdHasBeenSet; }
94 template<typename CurrentIpamScopeIdT = Aws::String>
95 void SetCurrentIpamScopeId(CurrentIpamScopeIdT&& value) { m_currentIpamScopeIdHasBeenSet = true; m_currentIpamScopeId = std::forward<CurrentIpamScopeIdT>(value); }
96 template<typename CurrentIpamScopeIdT = Aws::String>
97 ModifyIpamResourceCidrRequest& WithCurrentIpamScopeId(CurrentIpamScopeIdT&& value) { SetCurrentIpamScopeId(std::forward<CurrentIpamScopeIdT>(value)); return *this;}
99
101
104 inline const Aws::String& GetDestinationIpamScopeId() const { return m_destinationIpamScopeId; }
105 inline bool DestinationIpamScopeIdHasBeenSet() const { return m_destinationIpamScopeIdHasBeenSet; }
106 template<typename DestinationIpamScopeIdT = Aws::String>
107 void SetDestinationIpamScopeId(DestinationIpamScopeIdT&& value) { m_destinationIpamScopeIdHasBeenSet = true; m_destinationIpamScopeId = std::forward<DestinationIpamScopeIdT>(value); }
108 template<typename DestinationIpamScopeIdT = Aws::String>
109 ModifyIpamResourceCidrRequest& WithDestinationIpamScopeId(DestinationIpamScopeIdT&& value) { SetDestinationIpamScopeId(std::forward<DestinationIpamScopeIdT>(value)); return *this;}
111
113
118 inline bool GetMonitored() const { return m_monitored; }
119 inline bool MonitoredHasBeenSet() const { return m_monitoredHasBeenSet; }
120 inline void SetMonitored(bool value) { m_monitoredHasBeenSet = true; m_monitored = value; }
121 inline ModifyIpamResourceCidrRequest& WithMonitored(bool value) { SetMonitored(value); return *this;}
123 private:
124
125 bool m_dryRun{false};
126 bool m_dryRunHasBeenSet = false;
127
128 Aws::String m_resourceId;
129 bool m_resourceIdHasBeenSet = false;
130
131 Aws::String m_resourceCidr;
132 bool m_resourceCidrHasBeenSet = false;
133
134 Aws::String m_resourceRegion;
135 bool m_resourceRegionHasBeenSet = false;
136
137 Aws::String m_currentIpamScopeId;
138 bool m_currentIpamScopeIdHasBeenSet = false;
139
140 Aws::String m_destinationIpamScopeId;
141 bool m_destinationIpamScopeIdHasBeenSet = false;
142
143 bool m_monitored{false};
144 bool m_monitoredHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace EC2
149} // 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