AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyIpamRequest.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 <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/IpamTier.h>
12#include <aws/ec2/model/AddIpamOperatingRegion.h>
13#include <aws/ec2/model/RemoveIpamOperatingRegion.h>
14#include <utility>
15
16namespace Aws
17{
18namespace EC2
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_EC2_API ModifyIpamRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ModifyIpam"; }
35
36 AWS_EC2_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
44
50 inline bool GetDryRun() const{ return m_dryRun; }
51 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
52 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
53 inline ModifyIpamRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
55
57
60 inline const Aws::String& GetIpamId() const{ return m_ipamId; }
61 inline bool IpamIdHasBeenSet() const { return m_ipamIdHasBeenSet; }
62 inline void SetIpamId(const Aws::String& value) { m_ipamIdHasBeenSet = true; m_ipamId = value; }
63 inline void SetIpamId(Aws::String&& value) { m_ipamIdHasBeenSet = true; m_ipamId = std::move(value); }
64 inline void SetIpamId(const char* value) { m_ipamIdHasBeenSet = true; m_ipamId.assign(value); }
65 inline ModifyIpamRequest& WithIpamId(const Aws::String& value) { SetIpamId(value); return *this;}
66 inline ModifyIpamRequest& WithIpamId(Aws::String&& value) { SetIpamId(std::move(value)); return *this;}
67 inline ModifyIpamRequest& WithIpamId(const char* value) { SetIpamId(value); return *this;}
69
71
74 inline const Aws::String& GetDescription() const{ return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
77 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
78 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
79 inline ModifyIpamRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
80 inline ModifyIpamRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
81 inline ModifyIpamRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
83
85
93 inline const Aws::Vector<AddIpamOperatingRegion>& GetAddOperatingRegions() const{ return m_addOperatingRegions; }
94 inline bool AddOperatingRegionsHasBeenSet() const { return m_addOperatingRegionsHasBeenSet; }
95 inline void SetAddOperatingRegions(const Aws::Vector<AddIpamOperatingRegion>& value) { m_addOperatingRegionsHasBeenSet = true; m_addOperatingRegions = value; }
96 inline void SetAddOperatingRegions(Aws::Vector<AddIpamOperatingRegion>&& value) { m_addOperatingRegionsHasBeenSet = true; m_addOperatingRegions = std::move(value); }
99 inline ModifyIpamRequest& AddAddOperatingRegions(const AddIpamOperatingRegion& value) { m_addOperatingRegionsHasBeenSet = true; m_addOperatingRegions.push_back(value); return *this; }
100 inline ModifyIpamRequest& AddAddOperatingRegions(AddIpamOperatingRegion&& value) { m_addOperatingRegionsHasBeenSet = true; m_addOperatingRegions.push_back(std::move(value)); return *this; }
102
104
107 inline const Aws::Vector<RemoveIpamOperatingRegion>& GetRemoveOperatingRegions() const{ return m_removeOperatingRegions; }
108 inline bool RemoveOperatingRegionsHasBeenSet() const { return m_removeOperatingRegionsHasBeenSet; }
109 inline void SetRemoveOperatingRegions(const Aws::Vector<RemoveIpamOperatingRegion>& value) { m_removeOperatingRegionsHasBeenSet = true; m_removeOperatingRegions = value; }
110 inline void SetRemoveOperatingRegions(Aws::Vector<RemoveIpamOperatingRegion>&& value) { m_removeOperatingRegionsHasBeenSet = true; m_removeOperatingRegions = std::move(value); }
113 inline ModifyIpamRequest& AddRemoveOperatingRegions(const RemoveIpamOperatingRegion& value) { m_removeOperatingRegionsHasBeenSet = true; m_removeOperatingRegions.push_back(value); return *this; }
114 inline ModifyIpamRequest& AddRemoveOperatingRegions(RemoveIpamOperatingRegion&& value) { m_removeOperatingRegionsHasBeenSet = true; m_removeOperatingRegions.push_back(std::move(value)); return *this; }
116
118
124 inline const IpamTier& GetTier() const{ return m_tier; }
125 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
126 inline void SetTier(const IpamTier& value) { m_tierHasBeenSet = true; m_tier = value; }
127 inline void SetTier(IpamTier&& value) { m_tierHasBeenSet = true; m_tier = std::move(value); }
128 inline ModifyIpamRequest& WithTier(const IpamTier& value) { SetTier(value); return *this;}
129 inline ModifyIpamRequest& WithTier(IpamTier&& value) { SetTier(std::move(value)); return *this;}
131
133
137 inline bool GetEnablePrivateGua() const{ return m_enablePrivateGua; }
138 inline bool EnablePrivateGuaHasBeenSet() const { return m_enablePrivateGuaHasBeenSet; }
139 inline void SetEnablePrivateGua(bool value) { m_enablePrivateGuaHasBeenSet = true; m_enablePrivateGua = value; }
140 inline ModifyIpamRequest& WithEnablePrivateGua(bool value) { SetEnablePrivateGua(value); return *this;}
142 private:
143
144 bool m_dryRun;
145 bool m_dryRunHasBeenSet = false;
146
147 Aws::String m_ipamId;
148 bool m_ipamIdHasBeenSet = false;
149
150 Aws::String m_description;
151 bool m_descriptionHasBeenSet = false;
152
153 Aws::Vector<AddIpamOperatingRegion> m_addOperatingRegions;
154 bool m_addOperatingRegionsHasBeenSet = false;
155
156 Aws::Vector<RemoveIpamOperatingRegion> m_removeOperatingRegions;
157 bool m_removeOperatingRegionsHasBeenSet = false;
158
159 IpamTier m_tier;
160 bool m_tierHasBeenSet = false;
161
162 bool m_enablePrivateGua;
163 bool m_enablePrivateGuaHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace EC2
168} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyIpamRequest & WithDescription(Aws::String &&value)
void SetDescription(const Aws::String &value)
const Aws::Vector< AddIpamOperatingRegion > & GetAddOperatingRegions() const
void SetDescription(const char *value)
void SetAddOperatingRegions(const Aws::Vector< AddIpamOperatingRegion > &value)
void SetRemoveOperatingRegions(const Aws::Vector< RemoveIpamOperatingRegion > &value)
const Aws::Vector< RemoveIpamOperatingRegion > & GetRemoveOperatingRegions() const
ModifyIpamRequest & WithIpamId(const Aws::String &value)
ModifyIpamRequest & WithDescription(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
ModifyIpamRequest & WithTier(const IpamTier &value)
ModifyIpamRequest & AddAddOperatingRegions(AddIpamOperatingRegion &&value)
ModifyIpamRequest & WithDryRun(bool value)
const Aws::String & GetDescription() const
ModifyIpamRequest & AddAddOperatingRegions(const AddIpamOperatingRegion &value)
void SetRemoveOperatingRegions(Aws::Vector< RemoveIpamOperatingRegion > &&value)
void SetTier(const IpamTier &value)
ModifyIpamRequest & WithAddOperatingRegions(const Aws::Vector< AddIpamOperatingRegion > &value)
ModifyIpamRequest & WithIpamId(Aws::String &&value)
ModifyIpamRequest & WithTier(IpamTier &&value)
ModifyIpamRequest & WithAddOperatingRegions(Aws::Vector< AddIpamOperatingRegion > &&value)
void SetIpamId(const Aws::String &value)
void SetDescription(Aws::String &&value)
void SetIpamId(Aws::String &&value)
ModifyIpamRequest & WithRemoveOperatingRegions(Aws::Vector< RemoveIpamOperatingRegion > &&value)
ModifyIpamRequest & WithIpamId(const char *value)
const Aws::String & GetIpamId() const
ModifyIpamRequest & AddRemoveOperatingRegions(RemoveIpamOperatingRegion &&value)
ModifyIpamRequest & WithDescription(const char *value)
AWS_EC2_API Aws::String SerializePayload() const override
void SetAddOperatingRegions(Aws::Vector< AddIpamOperatingRegion > &&value)
ModifyIpamRequest & WithRemoveOperatingRegions(const Aws::Vector< RemoveIpamOperatingRegion > &value)
ModifyIpamRequest & AddRemoveOperatingRegions(const RemoveIpamOperatingRegion &value)
ModifyIpamRequest & WithEnablePrivateGua(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector