AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateIpamRequest.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/TagSpecification.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace EC2
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_EC2_API CreateIpamRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateIpam"; }
36
37 AWS_EC2_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
51 inline bool GetDryRun() const{ return m_dryRun; }
52 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
53 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
54 inline CreateIpamRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
56
58
61 inline const Aws::String& GetDescription() const{ return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
64 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
65 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
66 inline CreateIpamRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
67 inline CreateIpamRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
68 inline CreateIpamRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
70
72
80 inline const Aws::Vector<AddIpamOperatingRegion>& GetOperatingRegions() const{ return m_operatingRegions; }
81 inline bool OperatingRegionsHasBeenSet() const { return m_operatingRegionsHasBeenSet; }
82 inline void SetOperatingRegions(const Aws::Vector<AddIpamOperatingRegion>& value) { m_operatingRegionsHasBeenSet = true; m_operatingRegions = value; }
83 inline void SetOperatingRegions(Aws::Vector<AddIpamOperatingRegion>&& value) { m_operatingRegionsHasBeenSet = true; m_operatingRegions = std::move(value); }
86 inline CreateIpamRequest& AddOperatingRegions(const AddIpamOperatingRegion& value) { m_operatingRegionsHasBeenSet = true; m_operatingRegions.push_back(value); return *this; }
87 inline CreateIpamRequest& AddOperatingRegions(AddIpamOperatingRegion&& value) { m_operatingRegionsHasBeenSet = true; m_operatingRegions.push_back(std::move(value)); return *this; }
89
91
98 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
99 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
100 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
101 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
104 inline CreateIpamRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
105 inline CreateIpamRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
107
109
115 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
116 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
117 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
118 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
119 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
120 inline CreateIpamRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
121 inline CreateIpamRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
122 inline CreateIpamRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
124
126
132 inline const IpamTier& GetTier() const{ return m_tier; }
133 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
134 inline void SetTier(const IpamTier& value) { m_tierHasBeenSet = true; m_tier = value; }
135 inline void SetTier(IpamTier&& value) { m_tierHasBeenSet = true; m_tier = std::move(value); }
136 inline CreateIpamRequest& WithTier(const IpamTier& value) { SetTier(value); return *this;}
137 inline CreateIpamRequest& WithTier(IpamTier&& value) { SetTier(std::move(value)); return *this;}
139
141
145 inline bool GetEnablePrivateGua() const{ return m_enablePrivateGua; }
146 inline bool EnablePrivateGuaHasBeenSet() const { return m_enablePrivateGuaHasBeenSet; }
147 inline void SetEnablePrivateGua(bool value) { m_enablePrivateGuaHasBeenSet = true; m_enablePrivateGua = value; }
148 inline CreateIpamRequest& WithEnablePrivateGua(bool value) { SetEnablePrivateGua(value); return *this;}
150 private:
151
152 bool m_dryRun;
153 bool m_dryRunHasBeenSet = false;
154
155 Aws::String m_description;
156 bool m_descriptionHasBeenSet = false;
157
158 Aws::Vector<AddIpamOperatingRegion> m_operatingRegions;
159 bool m_operatingRegionsHasBeenSet = false;
160
161 Aws::Vector<TagSpecification> m_tagSpecifications;
162 bool m_tagSpecificationsHasBeenSet = false;
163
164 Aws::String m_clientToken;
165 bool m_clientTokenHasBeenSet = false;
166
167 IpamTier m_tier;
168 bool m_tierHasBeenSet = false;
169
170 bool m_enablePrivateGua;
171 bool m_enablePrivateGuaHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace EC2
176} // namespace Aws
CreateIpamRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateIpamRequest & WithClientToken(Aws::String &&value)
CreateIpamRequest & WithClientToken(const char *value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetClientToken(Aws::String &&value)
CreateIpamRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateIpamRequest & AddOperatingRegions(const AddIpamOperatingRegion &value)
CreateIpamRequest & WithTier(const IpamTier &value)
CreateIpamRequest & AddTagSpecifications(TagSpecification &&value)
const Aws::Vector< AddIpamOperatingRegion > & GetOperatingRegions() const
CreateIpamRequest & AddTagSpecifications(const TagSpecification &value)
void SetDescription(const Aws::String &value)
CreateIpamRequest & WithOperatingRegions(Aws::Vector< AddIpamOperatingRegion > &&value)
void SetClientToken(const char *value)
AWS_EC2_API Aws::String SerializePayload() const override
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
virtual const char * GetServiceRequestName() const override
CreateIpamRequest & WithDescription(Aws::String &&value)
CreateIpamRequest & WithDescription(const Aws::String &value)
void SetOperatingRegions(Aws::Vector< AddIpamOperatingRegion > &&value)
const Aws::String & GetDescription() const
CreateIpamRequest & WithOperatingRegions(const Aws::Vector< AddIpamOperatingRegion > &value)
CreateIpamRequest & WithClientToken(const Aws::String &value)
CreateIpamRequest & WithDryRun(bool value)
CreateIpamRequest & WithTier(IpamTier &&value)
CreateIpamRequest & WithDescription(const char *value)
void SetDescription(const char *value)
void SetDescription(Aws::String &&value)
void SetOperatingRegions(const Aws::Vector< AddIpamOperatingRegion > &value)
CreateIpamRequest & WithEnablePrivateGua(bool value)
CreateIpamRequest & AddOperatingRegions(AddIpamOperatingRegion &&value)
void SetClientToken(const Aws::String &value)
const Aws::String & GetClientToken() const
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
void SetTier(const IpamTier &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector