AWS SDK for C++

AWS SDK for C++ Version 1.11.749

Loading...
Searching...
No Matches
CreateHostedConfigurationVersionResult.h
1
6#pragma once
7#include <aws/appconfig/AppConfig_EXPORTS.h>
8#include <aws/core/utils/Array.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/stream/ResponseStream.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace AppConfig {
19namespace Model {
21 public:
22 AWS_APPCONFIG_API CreateHostedConfigurationVersionResult() = default;
25 // we delete these because Microsoft doesn't handle move generation correctly
26 // and we therefore don't trust them to get it right here either.
29
33
35
38 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
39 template <typename ApplicationIdT = Aws::String>
40 void SetApplicationId(ApplicationIdT&& value) {
41 m_applicationIdHasBeenSet = true;
42 m_applicationId = std::forward<ApplicationIdT>(value);
43 }
44 template <typename ApplicationIdT = Aws::String>
46 SetApplicationId(std::forward<ApplicationIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetConfigurationProfileId() const { return m_configurationProfileId; }
56 template <typename ConfigurationProfileIdT = Aws::String>
57 void SetConfigurationProfileId(ConfigurationProfileIdT&& value) {
58 m_configurationProfileIdHasBeenSet = true;
59 m_configurationProfileId = std::forward<ConfigurationProfileIdT>(value);
60 }
61 template <typename ConfigurationProfileIdT = Aws::String>
63 SetConfigurationProfileId(std::forward<ConfigurationProfileIdT>(value));
64 return *this;
65 }
67
69
72 inline int GetVersionNumber() const { return m_versionNumber; }
73 inline void SetVersionNumber(int value) {
74 m_versionNumberHasBeenSet = true;
75 m_versionNumber = value;
76 }
78 SetVersionNumber(value);
79 return *this;
80 }
82
84
87 inline const Aws::String& GetDescription() const { return m_description; }
88 template <typename DescriptionT = Aws::String>
89 void SetDescription(DescriptionT&& value) {
90 m_descriptionHasBeenSet = true;
91 m_description = std::forward<DescriptionT>(value);
92 }
93 template <typename DescriptionT = Aws::String>
95 SetDescription(std::forward<DescriptionT>(value));
96 return *this;
97 }
99
101
104 inline Aws::IOStream& GetContent() const { return m_content.GetUnderlyingStream(); }
105 inline void ReplaceBody(Aws::IOStream* body) { m_content = Aws::Utils::Stream::ResponseStream(body); }
106
108
110
115 inline const Aws::String& GetContentType() const { return m_contentType; }
116 template <typename ContentTypeT = Aws::String>
117 void SetContentType(ContentTypeT&& value) {
118 m_contentTypeHasBeenSet = true;
119 m_contentType = std::forward<ContentTypeT>(value);
120 }
121 template <typename ContentTypeT = Aws::String>
123 SetContentType(std::forward<ContentTypeT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetVersionLabel() const { return m_versionLabel; }
133 template <typename VersionLabelT = Aws::String>
134 void SetVersionLabel(VersionLabelT&& value) {
135 m_versionLabelHasBeenSet = true;
136 m_versionLabel = std::forward<VersionLabelT>(value);
137 }
138 template <typename VersionLabelT = Aws::String>
140 SetVersionLabel(std::forward<VersionLabelT>(value));
141 return *this;
142 }
144
146
151 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
152 template <typename KmsKeyArnT = Aws::String>
153 void SetKmsKeyArn(KmsKeyArnT&& value) {
154 m_kmsKeyArnHasBeenSet = true;
155 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
156 }
157 template <typename KmsKeyArnT = Aws::String>
159 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
160 return *this;
161 }
163
165
166 inline const Aws::String& GetRequestId() const { return m_requestId; }
167 template <typename RequestIdT = Aws::String>
168 void SetRequestId(RequestIdT&& value) {
169 m_requestIdHasBeenSet = true;
170 m_requestId = std::forward<RequestIdT>(value);
171 }
172 template <typename RequestIdT = Aws::String>
174 SetRequestId(std::forward<RequestIdT>(value));
175 return *this;
176 }
178 private:
179 Aws::String m_applicationId;
180
181 Aws::String m_configurationProfileId;
182
183 int m_versionNumber{0};
184
185 Aws::String m_description;
186
188
189 Aws::String m_contentType;
190
191 Aws::String m_versionLabel;
192
193 Aws::String m_kmsKeyArn;
194
195 Aws::String m_requestId;
196 bool m_applicationIdHasBeenSet = false;
197 bool m_configurationProfileIdHasBeenSet = false;
198 bool m_versionNumberHasBeenSet = false;
199 bool m_descriptionHasBeenSet = false;
200 bool m_contentHasBeenSet = false;
201 bool m_contentTypeHasBeenSet = false;
202 bool m_versionLabelHasBeenSet = false;
203 bool m_kmsKeyArnHasBeenSet = false;
204 bool m_requestIdHasBeenSet = false;
205};
206
207} // namespace Model
208} // namespace AppConfig
209} // 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