AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetHostedConfigurationVersionResult.h
1
6#pragma once
7#include <aws/appconfig/AppConfig_EXPORTS.h>
8#include <aws/core/utils/stream/ResponseStream.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/Array.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace AppConfig
19{
20namespace Model
21{
23 {
24 public:
25 AWS_APPCONFIG_API GetHostedConfigurationVersionResult() = default;
28 //we delete these because Microsoft doesn't handle move generation correctly
29 //and we therefore don't trust them to get it right here either.
32
33
36
37
38
40
43 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
44 template<typename ApplicationIdT = Aws::String>
45 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
46 template<typename ApplicationIdT = Aws::String>
47 GetHostedConfigurationVersionResult& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
49
51
54 inline const Aws::String& GetConfigurationProfileId() const { return m_configurationProfileId; }
55 template<typename ConfigurationProfileIdT = Aws::String>
56 void SetConfigurationProfileId(ConfigurationProfileIdT&& value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId = std::forward<ConfigurationProfileIdT>(value); }
57 template<typename ConfigurationProfileIdT = Aws::String>
58 GetHostedConfigurationVersionResult& WithConfigurationProfileId(ConfigurationProfileIdT&& value) { SetConfigurationProfileId(std::forward<ConfigurationProfileIdT>(value)); return *this;}
60
62
65 inline int GetVersionNumber() const { return m_versionNumber; }
66 inline void SetVersionNumber(int value) { m_versionNumberHasBeenSet = true; m_versionNumber = value; }
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 template<typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
77 template<typename DescriptionT = Aws::String>
78 GetHostedConfigurationVersionResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
80
82
85 inline Aws::IOStream& GetContent() const { return m_content.GetUnderlyingStream(); }
86 inline void ReplaceBody(Aws::IOStream* body) { m_content = Aws::Utils::Stream::ResponseStream(body); }
87
89
91
96 inline const Aws::String& GetContentType() const { return m_contentType; }
97 template<typename ContentTypeT = Aws::String>
98 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
99 template<typename ContentTypeT = Aws::String>
100 GetHostedConfigurationVersionResult& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
102
104
107 inline const Aws::String& GetVersionLabel() const { return m_versionLabel; }
108 template<typename VersionLabelT = Aws::String>
109 void SetVersionLabel(VersionLabelT&& value) { m_versionLabelHasBeenSet = true; m_versionLabel = std::forward<VersionLabelT>(value); }
110 template<typename VersionLabelT = Aws::String>
111 GetHostedConfigurationVersionResult& WithVersionLabel(VersionLabelT&& value) { SetVersionLabel(std::forward<VersionLabelT>(value)); return *this;}
113
115
120 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
121 template<typename KmsKeyArnT = Aws::String>
122 void SetKmsKeyArn(KmsKeyArnT&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::forward<KmsKeyArnT>(value); }
123 template<typename KmsKeyArnT = Aws::String>
124 GetHostedConfigurationVersionResult& WithKmsKeyArn(KmsKeyArnT&& value) { SetKmsKeyArn(std::forward<KmsKeyArnT>(value)); return *this;}
126
128
129 inline const Aws::String& GetRequestId() const { return m_requestId; }
130 template<typename RequestIdT = Aws::String>
131 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
132 template<typename RequestIdT = Aws::String>
133 GetHostedConfigurationVersionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
135 private:
136
137 Aws::String m_applicationId;
138 bool m_applicationIdHasBeenSet = false;
139
140 Aws::String m_configurationProfileId;
141 bool m_configurationProfileIdHasBeenSet = false;
142
143 int m_versionNumber{0};
144 bool m_versionNumberHasBeenSet = false;
145
146 Aws::String m_description;
147 bool m_descriptionHasBeenSet = false;
148
150 bool m_contentHasBeenSet = false;
151
152 Aws::String m_contentType;
153 bool m_contentTypeHasBeenSet = false;
154
155 Aws::String m_versionLabel;
156 bool m_versionLabelHasBeenSet = false;
157
158 Aws::String m_kmsKeyArn;
159 bool m_kmsKeyArnHasBeenSet = false;
160
161 Aws::String m_requestId;
162 bool m_requestIdHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace AppConfig
167} // namespace Aws
AWS_APPCONFIG_API GetHostedConfigurationVersionResult(GetHostedConfigurationVersionResult &&)=default
AWS_APPCONFIG_API GetHostedConfigurationVersionResult & operator=(GetHostedConfigurationVersionResult &&)=default
GetHostedConfigurationVersionResult & WithApplicationId(ApplicationIdT &&value)
AWS_APPCONFIG_API GetHostedConfigurationVersionResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
GetHostedConfigurationVersionResult & WithConfigurationProfileId(ConfigurationProfileIdT &&value)
AWS_APPCONFIG_API GetHostedConfigurationVersionResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
GetHostedConfigurationVersionResult(const GetHostedConfigurationVersionResult &)=delete
GetHostedConfigurationVersionResult & operator=(const GetHostedConfigurationVersionResult &)=delete
GetHostedConfigurationVersionResult & WithContentType(ContentTypeT &&value)
GetHostedConfigurationVersionResult & WithRequestId(RequestIdT &&value)
GetHostedConfigurationVersionResult & WithKmsKeyArn(KmsKeyArnT &&value)
GetHostedConfigurationVersionResult & WithVersionLabel(VersionLabelT &&value)
GetHostedConfigurationVersionResult & WithDescription(DescriptionT &&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