AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ImportDiskImageRequest.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/imagebuilder/ImagebuilderRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace imagebuilder
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_IMAGEBUILDER_API ImportDiskImageRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ImportDiskImage"; }
33
34 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template<typename NameT = Aws::String>
44 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
45 template<typename NameT = Aws::String>
46 ImportDiskImageRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
48
50
54 inline const Aws::String& GetSemanticVersion() const { return m_semanticVersion; }
55 inline bool SemanticVersionHasBeenSet() const { return m_semanticVersionHasBeenSet; }
56 template<typename SemanticVersionT = Aws::String>
57 void SetSemanticVersion(SemanticVersionT&& value) { m_semanticVersionHasBeenSet = true; m_semanticVersion = std::forward<SemanticVersionT>(value); }
58 template<typename SemanticVersionT = Aws::String>
59 ImportDiskImageRequest& WithSemanticVersion(SemanticVersionT&& value) { SetSemanticVersion(std::forward<SemanticVersionT>(value)); return *this;}
61
63
66 inline const Aws::String& GetDescription() const { return m_description; }
67 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
68 template<typename DescriptionT = Aws::String>
69 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
70 template<typename DescriptionT = Aws::String>
71 ImportDiskImageRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
73
75
79 inline const Aws::String& GetPlatform() const { return m_platform; }
80 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
81 template<typename PlatformT = Aws::String>
82 void SetPlatform(PlatformT&& value) { m_platformHasBeenSet = true; m_platform = std::forward<PlatformT>(value); }
83 template<typename PlatformT = Aws::String>
84 ImportDiskImageRequest& WithPlatform(PlatformT&& value) { SetPlatform(std::forward<PlatformT>(value)); return *this;}
86
88
92 inline const Aws::String& GetOsVersion() const { return m_osVersion; }
93 inline bool OsVersionHasBeenSet() const { return m_osVersionHasBeenSet; }
94 template<typename OsVersionT = Aws::String>
95 void SetOsVersion(OsVersionT&& value) { m_osVersionHasBeenSet = true; m_osVersion = std::forward<OsVersionT>(value); }
96 template<typename OsVersionT = Aws::String>
97 ImportDiskImageRequest& WithOsVersion(OsVersionT&& value) { SetOsVersion(std::forward<OsVersionT>(value)); return *this;}
99
101
106 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
107 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
108 template<typename ExecutionRoleT = Aws::String>
109 void SetExecutionRole(ExecutionRoleT&& value) { m_executionRoleHasBeenSet = true; m_executionRole = std::forward<ExecutionRoleT>(value); }
110 template<typename ExecutionRoleT = Aws::String>
111 ImportDiskImageRequest& WithExecutionRole(ExecutionRoleT&& value) { SetExecutionRole(std::forward<ExecutionRoleT>(value)); return *this;}
113
115
119 inline const Aws::String& GetInfrastructureConfigurationArn() const { return m_infrastructureConfigurationArn; }
120 inline bool InfrastructureConfigurationArnHasBeenSet() const { return m_infrastructureConfigurationArnHasBeenSet; }
121 template<typename InfrastructureConfigurationArnT = Aws::String>
122 void SetInfrastructureConfigurationArn(InfrastructureConfigurationArnT&& value) { m_infrastructureConfigurationArnHasBeenSet = true; m_infrastructureConfigurationArn = std::forward<InfrastructureConfigurationArnT>(value); }
123 template<typename InfrastructureConfigurationArnT = Aws::String>
124 ImportDiskImageRequest& WithInfrastructureConfigurationArn(InfrastructureConfigurationArnT&& value) { SetInfrastructureConfigurationArn(std::forward<InfrastructureConfigurationArnT>(value)); return *this;}
126
128
131 inline const Aws::String& GetUri() const { return m_uri; }
132 inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
133 template<typename UriT = Aws::String>
134 void SetUri(UriT&& value) { m_uriHasBeenSet = true; m_uri = std::forward<UriT>(value); }
135 template<typename UriT = Aws::String>
136 ImportDiskImageRequest& WithUri(UriT&& value) { SetUri(std::forward<UriT>(value)); return *this;}
138
140
143 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
144 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
145 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
146 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
147 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
148 ImportDiskImageRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
149 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
150 ImportDiskImageRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
151 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
152 }
154
156
162 inline const Aws::String& GetClientToken() const { return m_clientToken; }
163 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
164 template<typename ClientTokenT = Aws::String>
165 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
166 template<typename ClientTokenT = Aws::String>
167 ImportDiskImageRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
169 private:
170
171 Aws::String m_name;
172 bool m_nameHasBeenSet = false;
173
174 Aws::String m_semanticVersion;
175 bool m_semanticVersionHasBeenSet = false;
176
177 Aws::String m_description;
178 bool m_descriptionHasBeenSet = false;
179
180 Aws::String m_platform;
181 bool m_platformHasBeenSet = false;
182
183 Aws::String m_osVersion;
184 bool m_osVersionHasBeenSet = false;
185
186 Aws::String m_executionRole;
187 bool m_executionRoleHasBeenSet = false;
188
189 Aws::String m_infrastructureConfigurationArn;
190 bool m_infrastructureConfigurationArnHasBeenSet = false;
191
192 Aws::String m_uri;
193 bool m_uriHasBeenSet = false;
194
196 bool m_tagsHasBeenSet = false;
197
199 bool m_clientTokenHasBeenSet = true;
200 };
201
202} // namespace Model
203} // namespace imagebuilder
204} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
void SetInfrastructureConfigurationArn(InfrastructureConfigurationArnT &&value)
ImportDiskImageRequest & WithOsVersion(OsVersionT &&value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
ImportDiskImageRequest & WithPlatform(PlatformT &&value)
AWS_IMAGEBUILDER_API ImportDiskImageRequest()=default
ImportDiskImageRequest & WithSemanticVersion(SemanticVersionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ImportDiskImageRequest & WithName(NameT &&value)
ImportDiskImageRequest & WithExecutionRole(ExecutionRoleT &&value)
ImportDiskImageRequest & WithClientToken(ClientTokenT &&value)
ImportDiskImageRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
ImportDiskImageRequest & WithUri(UriT &&value)
ImportDiskImageRequest & WithTags(TagsT &&value)
ImportDiskImageRequest & WithInfrastructureConfigurationArn(InfrastructureConfigurationArnT &&value)
virtual const char * GetServiceRequestName() const override
ImportDiskImageRequest & WithDescription(DescriptionT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String