AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
CreateHostedConfigurationVersionResult.h
1
6#pragma once
7#include <aws/appconfig/AppConfig_EXPORTS.h>
8#include <aws/core/http/HttpResponse.h>
9#include <aws/core/utils/Array.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/stream/ResponseStream.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace AppConfig {
20namespace Model {
22 public:
23 AWS_APPCONFIG_API CreateHostedConfigurationVersionResult() = default;
26 // we delete these because Microsoft doesn't handle move generation correctly
27 // and we therefore don't trust them to get it right here either.
30
34
36
39 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
40 template <typename ApplicationIdT = Aws::String>
41 void SetApplicationId(ApplicationIdT&& value) {
42 m_applicationIdHasBeenSet = true;
43 m_applicationId = std::forward<ApplicationIdT>(value);
44 }
45 template <typename ApplicationIdT = Aws::String>
47 SetApplicationId(std::forward<ApplicationIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetConfigurationProfileId() const { return m_configurationProfileId; }
57 template <typename ConfigurationProfileIdT = Aws::String>
58 void SetConfigurationProfileId(ConfigurationProfileIdT&& value) {
59 m_configurationProfileIdHasBeenSet = true;
60 m_configurationProfileId = std::forward<ConfigurationProfileIdT>(value);
61 }
62 template <typename ConfigurationProfileIdT = Aws::String>
64 SetConfigurationProfileId(std::forward<ConfigurationProfileIdT>(value));
65 return *this;
66 }
68
70
73 inline int GetVersionNumber() const { return m_versionNumber; }
74 inline void SetVersionNumber(int value) {
75 m_versionNumberHasBeenSet = true;
76 m_versionNumber = value;
77 }
79 SetVersionNumber(value);
80 return *this;
81 }
83
85
88 inline const Aws::String& GetDescription() const { return m_description; }
89 template <typename DescriptionT = Aws::String>
90 void SetDescription(DescriptionT&& value) {
91 m_descriptionHasBeenSet = true;
92 m_description = std::forward<DescriptionT>(value);
93 }
94 template <typename DescriptionT = Aws::String>
96 SetDescription(std::forward<DescriptionT>(value));
97 return *this;
98 }
100
102
105 inline Aws::IOStream& GetContent() const { return m_content.GetUnderlyingStream(); }
106 inline void ReplaceBody(Aws::IOStream* body) { m_content = Aws::Utils::Stream::ResponseStream(body); }
107
109
111
116 inline const Aws::String& GetContentType() const { return m_contentType; }
117 template <typename ContentTypeT = Aws::String>
118 void SetContentType(ContentTypeT&& value) {
119 m_contentTypeHasBeenSet = true;
120 m_contentType = std::forward<ContentTypeT>(value);
121 }
122 template <typename ContentTypeT = Aws::String>
124 SetContentType(std::forward<ContentTypeT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetVersionLabel() const { return m_versionLabel; }
134 template <typename VersionLabelT = Aws::String>
135 void SetVersionLabel(VersionLabelT&& value) {
136 m_versionLabelHasBeenSet = true;
137 m_versionLabel = std::forward<VersionLabelT>(value);
138 }
139 template <typename VersionLabelT = Aws::String>
141 SetVersionLabel(std::forward<VersionLabelT>(value));
142 return *this;
143 }
145
147
152 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
153 template <typename KmsKeyArnT = Aws::String>
154 void SetKmsKeyArn(KmsKeyArnT&& value) {
155 m_kmsKeyArnHasBeenSet = true;
156 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
157 }
158 template <typename KmsKeyArnT = Aws::String>
160 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
161 return *this;
162 }
164
166
167 inline const Aws::String& GetRequestId() const { return m_requestId; }
168 template <typename RequestIdT = Aws::String>
169 void SetRequestId(RequestIdT&& value) {
170 m_requestIdHasBeenSet = true;
171 m_requestId = std::forward<RequestIdT>(value);
172 }
173 template <typename RequestIdT = Aws::String>
175 SetRequestId(std::forward<RequestIdT>(value));
176 return *this;
177 }
179 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
180
181 private:
182 Aws::String m_applicationId;
183
184 Aws::String m_configurationProfileId;
185
186 int m_versionNumber{0};
187
188 Aws::String m_description;
189
191
192 Aws::String m_contentType;
193
194 Aws::String m_versionLabel;
195
196 Aws::String m_kmsKeyArn;
197
198 Aws::String m_requestId;
199 Aws::Http::HttpResponseCode m_HttpResponseCode;
200 bool m_applicationIdHasBeenSet = false;
201 bool m_configurationProfileIdHasBeenSet = false;
202 bool m_versionNumberHasBeenSet = false;
203 bool m_descriptionHasBeenSet = false;
204 bool m_contentHasBeenSet = false;
205 bool m_contentTypeHasBeenSet = false;
206 bool m_versionLabelHasBeenSet = false;
207 bool m_kmsKeyArnHasBeenSet = false;
208 bool m_requestIdHasBeenSet = false;
209};
210
211} // namespace Model
212} // namespace AppConfig
213} // namespace Aws
AWS_APPCONFIG_API CreateHostedConfigurationVersionResult & operator=(CreateHostedConfigurationVersionResult &&)=default
AWS_APPCONFIG_API CreateHostedConfigurationVersionResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
AWS_APPCONFIG_API CreateHostedConfigurationVersionResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
CreateHostedConfigurationVersionResult & WithKmsKeyArn(KmsKeyArnT &&value)
CreateHostedConfigurationVersionResult & WithContentType(ContentTypeT &&value)
AWS_APPCONFIG_API CreateHostedConfigurationVersionResult(CreateHostedConfigurationVersionResult &&)=default
CreateHostedConfigurationVersionResult & WithVersionLabel(VersionLabelT &&value)
CreateHostedConfigurationVersionResult & WithConfigurationProfileId(ConfigurationProfileIdT &&value)
CreateHostedConfigurationVersionResult(const CreateHostedConfigurationVersionResult &)=delete
CreateHostedConfigurationVersionResult & WithDescription(DescriptionT &&value)
CreateHostedConfigurationVersionResult & WithRequestId(RequestIdT &&value)
CreateHostedConfigurationVersionResult & operator=(const CreateHostedConfigurationVersionResult &)=delete
CreateHostedConfigurationVersionResult & WithApplicationId(ApplicationIdT &&value)
Aws::IOStream & GetUnderlyingStream() const
std::basic_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String