AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RegisterContainerInstanceRequest.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/ECSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ecs/model/VersionInfo.h>
12#include <aws/ecs/model/Resource.h>
13#include <aws/ecs/model/Attribute.h>
14#include <aws/ecs/model/PlatformDevice.h>
15#include <aws/ecs/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace ECS
21{
22namespace Model
23{
24
28 {
29 public:
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "RegisterContainerInstance"; }
37
38 AWS_ECS_API Aws::String SerializePayload() const override;
39
41
42
44
49 inline const Aws::String& GetCluster() const{ return m_cluster; }
50 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
51 inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
52 inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
53 inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
54 inline RegisterContainerInstanceRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
55 inline RegisterContainerInstanceRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
56 inline RegisterContainerInstanceRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
58
60
66 inline const Aws::String& GetInstanceIdentityDocument() const{ return m_instanceIdentityDocument; }
67 inline bool InstanceIdentityDocumentHasBeenSet() const { return m_instanceIdentityDocumentHasBeenSet; }
68 inline void SetInstanceIdentityDocument(const Aws::String& value) { m_instanceIdentityDocumentHasBeenSet = true; m_instanceIdentityDocument = value; }
69 inline void SetInstanceIdentityDocument(Aws::String&& value) { m_instanceIdentityDocumentHasBeenSet = true; m_instanceIdentityDocument = std::move(value); }
70 inline void SetInstanceIdentityDocument(const char* value) { m_instanceIdentityDocumentHasBeenSet = true; m_instanceIdentityDocument.assign(value); }
75
77
83 inline const Aws::String& GetInstanceIdentityDocumentSignature() const{ return m_instanceIdentityDocumentSignature; }
84 inline bool InstanceIdentityDocumentSignatureHasBeenSet() const { return m_instanceIdentityDocumentSignatureHasBeenSet; }
85 inline void SetInstanceIdentityDocumentSignature(const Aws::String& value) { m_instanceIdentityDocumentSignatureHasBeenSet = true; m_instanceIdentityDocumentSignature = value; }
86 inline void SetInstanceIdentityDocumentSignature(Aws::String&& value) { m_instanceIdentityDocumentSignatureHasBeenSet = true; m_instanceIdentityDocumentSignature = std::move(value); }
87 inline void SetInstanceIdentityDocumentSignature(const char* value) { m_instanceIdentityDocumentSignatureHasBeenSet = true; m_instanceIdentityDocumentSignature.assign(value); }
92
94
97 inline const Aws::Vector<Resource>& GetTotalResources() const{ return m_totalResources; }
98 inline bool TotalResourcesHasBeenSet() const { return m_totalResourcesHasBeenSet; }
99 inline void SetTotalResources(const Aws::Vector<Resource>& value) { m_totalResourcesHasBeenSet = true; m_totalResources = value; }
100 inline void SetTotalResources(Aws::Vector<Resource>&& value) { m_totalResourcesHasBeenSet = true; m_totalResources = std::move(value); }
103 inline RegisterContainerInstanceRequest& AddTotalResources(const Resource& value) { m_totalResourcesHasBeenSet = true; m_totalResources.push_back(value); return *this; }
104 inline RegisterContainerInstanceRequest& AddTotalResources(Resource&& value) { m_totalResourcesHasBeenSet = true; m_totalResources.push_back(std::move(value)); return *this; }
106
108
112 inline const VersionInfo& GetVersionInfo() const{ return m_versionInfo; }
113 inline bool VersionInfoHasBeenSet() const { return m_versionInfoHasBeenSet; }
114 inline void SetVersionInfo(const VersionInfo& value) { m_versionInfoHasBeenSet = true; m_versionInfo = value; }
115 inline void SetVersionInfo(VersionInfo&& value) { m_versionInfoHasBeenSet = true; m_versionInfo = std::move(value); }
116 inline RegisterContainerInstanceRequest& WithVersionInfo(const VersionInfo& value) { SetVersionInfo(value); return *this;}
117 inline RegisterContainerInstanceRequest& WithVersionInfo(VersionInfo&& value) { SetVersionInfo(std::move(value)); return *this;}
119
121
124 inline const Aws::String& GetContainerInstanceArn() const{ return m_containerInstanceArn; }
125 inline bool ContainerInstanceArnHasBeenSet() const { return m_containerInstanceArnHasBeenSet; }
126 inline void SetContainerInstanceArn(const Aws::String& value) { m_containerInstanceArnHasBeenSet = true; m_containerInstanceArn = value; }
127 inline void SetContainerInstanceArn(Aws::String&& value) { m_containerInstanceArnHasBeenSet = true; m_containerInstanceArn = std::move(value); }
128 inline void SetContainerInstanceArn(const char* value) { m_containerInstanceArnHasBeenSet = true; m_containerInstanceArn.assign(value); }
133
135
138 inline const Aws::Vector<Attribute>& GetAttributes() const{ return m_attributes; }
139 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
140 inline void SetAttributes(const Aws::Vector<Attribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
141 inline void SetAttributes(Aws::Vector<Attribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
143 inline RegisterContainerInstanceRequest& WithAttributes(Aws::Vector<Attribute>&& value) { SetAttributes(std::move(value)); return *this;}
144 inline RegisterContainerInstanceRequest& AddAttributes(const Attribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
145 inline RegisterContainerInstanceRequest& AddAttributes(Attribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
147
149
153 inline const Aws::Vector<PlatformDevice>& GetPlatformDevices() const{ return m_platformDevices; }
154 inline bool PlatformDevicesHasBeenSet() const { return m_platformDevicesHasBeenSet; }
155 inline void SetPlatformDevices(const Aws::Vector<PlatformDevice>& value) { m_platformDevicesHasBeenSet = true; m_platformDevices = value; }
156 inline void SetPlatformDevices(Aws::Vector<PlatformDevice>&& value) { m_platformDevicesHasBeenSet = true; m_platformDevices = std::move(value); }
159 inline RegisterContainerInstanceRequest& AddPlatformDevices(const PlatformDevice& value) { m_platformDevicesHasBeenSet = true; m_platformDevices.push_back(value); return *this; }
160 inline RegisterContainerInstanceRequest& AddPlatformDevices(PlatformDevice&& value) { m_platformDevicesHasBeenSet = true; m_platformDevices.push_back(std::move(value)); return *this; }
162
164
182 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
183 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
184 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
185 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
186 inline RegisterContainerInstanceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
187 inline RegisterContainerInstanceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
188 inline RegisterContainerInstanceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
189 inline RegisterContainerInstanceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
191 private:
192
193 Aws::String m_cluster;
194 bool m_clusterHasBeenSet = false;
195
196 Aws::String m_instanceIdentityDocument;
197 bool m_instanceIdentityDocumentHasBeenSet = false;
198
199 Aws::String m_instanceIdentityDocumentSignature;
200 bool m_instanceIdentityDocumentSignatureHasBeenSet = false;
201
202 Aws::Vector<Resource> m_totalResources;
203 bool m_totalResourcesHasBeenSet = false;
204
205 VersionInfo m_versionInfo;
206 bool m_versionInfoHasBeenSet = false;
207
208 Aws::String m_containerInstanceArn;
209 bool m_containerInstanceArnHasBeenSet = false;
210
211 Aws::Vector<Attribute> m_attributes;
212 bool m_attributesHasBeenSet = false;
213
214 Aws::Vector<PlatformDevice> m_platformDevices;
215 bool m_platformDevicesHasBeenSet = false;
216
217 Aws::Vector<Tag> m_tags;
218 bool m_tagsHasBeenSet = false;
219 };
220
221} // namespace Model
222} // namespace ECS
223} // namespace Aws
RegisterContainerInstanceRequest & AddTags(const Tag &value)
RegisterContainerInstanceRequest & WithPlatformDevices(const Aws::Vector< PlatformDevice > &value)
RegisterContainerInstanceRequest & WithInstanceIdentityDocumentSignature(Aws::String &&value)
RegisterContainerInstanceRequest & WithInstanceIdentityDocument(Aws::String &&value)
RegisterContainerInstanceRequest & WithContainerInstanceArn(const char *value)
RegisterContainerInstanceRequest & WithVersionInfo(const VersionInfo &value)
RegisterContainerInstanceRequest & WithCluster(Aws::String &&value)
void SetPlatformDevices(const Aws::Vector< PlatformDevice > &value)
RegisterContainerInstanceRequest & WithVersionInfo(VersionInfo &&value)
RegisterContainerInstanceRequest & WithInstanceIdentityDocumentSignature(const char *value)
RegisterContainerInstanceRequest & AddTags(Tag &&value)
RegisterContainerInstanceRequest & WithTags(Aws::Vector< Tag > &&value)
RegisterContainerInstanceRequest & WithCluster(const char *value)
RegisterContainerInstanceRequest & WithPlatformDevices(Aws::Vector< PlatformDevice > &&value)
RegisterContainerInstanceRequest & WithContainerInstanceArn(const Aws::String &value)
RegisterContainerInstanceRequest & WithTotalResources(Aws::Vector< Resource > &&value)
void SetPlatformDevices(Aws::Vector< PlatformDevice > &&value)
RegisterContainerInstanceRequest & WithInstanceIdentityDocument(const char *value)
RegisterContainerInstanceRequest & WithCluster(const Aws::String &value)
RegisterContainerInstanceRequest & WithAttributes(Aws::Vector< Attribute > &&value)
const Aws::Vector< PlatformDevice > & GetPlatformDevices() const
RegisterContainerInstanceRequest & AddAttributes(Attribute &&value)
RegisterContainerInstanceRequest & AddAttributes(const Attribute &value)
RegisterContainerInstanceRequest & AddPlatformDevices(PlatformDevice &&value)
RegisterContainerInstanceRequest & WithTags(const Aws::Vector< Tag > &value)
void SetTotalResources(const Aws::Vector< Resource > &value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
RegisterContainerInstanceRequest & WithTotalResources(const Aws::Vector< Resource > &value)
RegisterContainerInstanceRequest & WithAttributes(const Aws::Vector< Attribute > &value)
RegisterContainerInstanceRequest & WithInstanceIdentityDocumentSignature(const Aws::String &value)
RegisterContainerInstanceRequest & WithContainerInstanceArn(Aws::String &&value)
RegisterContainerInstanceRequest & AddPlatformDevices(const PlatformDevice &value)
void SetAttributes(const Aws::Vector< Attribute > &value)
AWS_ECS_API Aws::String SerializePayload() const override
RegisterContainerInstanceRequest & WithInstanceIdentityDocument(const Aws::String &value)
RegisterContainerInstanceRequest & AddTotalResources(Resource &&value)
RegisterContainerInstanceRequest & AddTotalResources(const Resource &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector