AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetLatestConfigurationResult.h
1
6#pragma once
7#include <aws/appconfigdata/AppConfigData_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 AppConfigData {
20namespace Model {
22 public:
23 AWS_APPCONFIGDATA_API GetLatestConfigurationResult() = 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
33
35
43 inline const Aws::String& GetNextPollConfigurationToken() const { return m_nextPollConfigurationToken; }
44 template <typename NextPollConfigurationTokenT = Aws::String>
45 void SetNextPollConfigurationToken(NextPollConfigurationTokenT&& value) {
46 m_nextPollConfigurationTokenHasBeenSet = true;
47 m_nextPollConfigurationToken = std::forward<NextPollConfigurationTokenT>(value);
48 }
49 template <typename NextPollConfigurationTokenT = Aws::String>
50 GetLatestConfigurationResult& WithNextPollConfigurationToken(NextPollConfigurationTokenT&& value) {
51 SetNextPollConfigurationToken(std::forward<NextPollConfigurationTokenT>(value));
52 return *this;
53 }
55
57
62 inline int GetNextPollIntervalInSeconds() const { return m_nextPollIntervalInSeconds; }
63 inline void SetNextPollIntervalInSeconds(int value) {
64 m_nextPollIntervalInSecondsHasBeenSet = true;
65 m_nextPollIntervalInSeconds = value;
66 }
69 return *this;
70 }
72
74
77 inline const Aws::String& GetContentType() const { return m_contentType; }
78 template <typename ContentTypeT = Aws::String>
79 void SetContentType(ContentTypeT&& value) {
80 m_contentTypeHasBeenSet = true;
81 m_contentType = std::forward<ContentTypeT>(value);
82 }
83 template <typename ContentTypeT = Aws::String>
85 SetContentType(std::forward<ContentTypeT>(value));
86 return *this;
87 }
89
91
95 inline Aws::IOStream& GetConfiguration() const { return m_configuration.GetUnderlyingStream(); }
96 inline void ReplaceBody(Aws::IOStream* body) { m_configuration = Aws::Utils::Stream::ResponseStream(body); }
97
99
101
107 inline const Aws::String& GetVersionLabel() const { return m_versionLabel; }
108 template <typename VersionLabelT = Aws::String>
109 void SetVersionLabel(VersionLabelT&& value) {
110 m_versionLabelHasBeenSet = true;
111 m_versionLabel = std::forward<VersionLabelT>(value);
112 }
113 template <typename VersionLabelT = Aws::String>
115 SetVersionLabel(std::forward<VersionLabelT>(value));
116 return *this;
117 }
119
121
122 inline const Aws::String& GetRequestId() const { return m_requestId; }
123 template <typename RequestIdT = Aws::String>
124 void SetRequestId(RequestIdT&& value) {
125 m_requestIdHasBeenSet = true;
126 m_requestId = std::forward<RequestIdT>(value);
127 }
128 template <typename RequestIdT = Aws::String>
130 SetRequestId(std::forward<RequestIdT>(value));
131 return *this;
132 }
134 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
135
136 private:
137 Aws::String m_nextPollConfigurationToken;
138
139 int m_nextPollIntervalInSeconds{0};
140
141 Aws::String m_contentType;
142
143 Aws::Utils::Stream::ResponseStream m_configuration{};
144
145 Aws::String m_versionLabel;
146
147 Aws::String m_requestId;
148 Aws::Http::HttpResponseCode m_HttpResponseCode;
149 bool m_nextPollConfigurationTokenHasBeenSet = false;
150 bool m_nextPollIntervalInSecondsHasBeenSet = false;
151 bool m_contentTypeHasBeenSet = false;
152 bool m_configurationHasBeenSet = false;
153 bool m_versionLabelHasBeenSet = false;
154 bool m_requestIdHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace AppConfigData
159} // namespace Aws
GetLatestConfigurationResult(const GetLatestConfigurationResult &)=delete
GetLatestConfigurationResult & WithVersionLabel(VersionLabelT &&value)
AWS_APPCONFIGDATA_API GetLatestConfigurationResult()=default
AWS_APPCONFIGDATA_API GetLatestConfigurationResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
GetLatestConfigurationResult & operator=(const GetLatestConfigurationResult &)=delete
GetLatestConfigurationResult & WithRequestId(RequestIdT &&value)
GetLatestConfigurationResult & WithNextPollIntervalInSeconds(int value)
AWS_APPCONFIGDATA_API GetLatestConfigurationResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
GetLatestConfigurationResult & WithContentType(ContentTypeT &&value)
GetLatestConfigurationResult & WithNextPollConfigurationToken(NextPollConfigurationTokenT &&value)
AWS_APPCONFIGDATA_API GetLatestConfigurationResult(GetLatestConfigurationResult &&)=default
AWS_APPCONFIGDATA_API GetLatestConfigurationResult & operator=(GetLatestConfigurationResult &&)=default
void SetNextPollConfigurationToken(NextPollConfigurationTokenT &&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