AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
GetLatestConfigurationResult.h
1
6#pragma once
7#include <aws/appconfigdata/AppConfigData_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 AppConfigData {
19namespace Model {
21 public:
22 AWS_APPCONFIGDATA_API GetLatestConfigurationResult() = 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
32
34
42 inline const Aws::String& GetNextPollConfigurationToken() const { return m_nextPollConfigurationToken; }
43 template <typename NextPollConfigurationTokenT = Aws::String>
44 void SetNextPollConfigurationToken(NextPollConfigurationTokenT&& value) {
45 m_nextPollConfigurationTokenHasBeenSet = true;
46 m_nextPollConfigurationToken = std::forward<NextPollConfigurationTokenT>(value);
47 }
48 template <typename NextPollConfigurationTokenT = Aws::String>
49 GetLatestConfigurationResult& WithNextPollConfigurationToken(NextPollConfigurationTokenT&& value) {
50 SetNextPollConfigurationToken(std::forward<NextPollConfigurationTokenT>(value));
51 return *this;
52 }
54
56
61 inline int GetNextPollIntervalInSeconds() const { return m_nextPollIntervalInSeconds; }
62 inline void SetNextPollIntervalInSeconds(int value) {
63 m_nextPollIntervalInSecondsHasBeenSet = true;
64 m_nextPollIntervalInSeconds = value;
65 }
68 return *this;
69 }
71
73
76 inline const Aws::String& GetContentType() const { return m_contentType; }
77 template <typename ContentTypeT = Aws::String>
78 void SetContentType(ContentTypeT&& value) {
79 m_contentTypeHasBeenSet = true;
80 m_contentType = std::forward<ContentTypeT>(value);
81 }
82 template <typename ContentTypeT = Aws::String>
84 SetContentType(std::forward<ContentTypeT>(value));
85 return *this;
86 }
88
90
94 inline Aws::IOStream& GetConfiguration() const { return m_configuration.GetUnderlyingStream(); }
95 inline void ReplaceBody(Aws::IOStream* body) { m_configuration = Aws::Utils::Stream::ResponseStream(body); }
96
98
100
106 inline const Aws::String& GetVersionLabel() const { return m_versionLabel; }
107 template <typename VersionLabelT = Aws::String>
108 void SetVersionLabel(VersionLabelT&& value) {
109 m_versionLabelHasBeenSet = true;
110 m_versionLabel = std::forward<VersionLabelT>(value);
111 }
112 template <typename VersionLabelT = Aws::String>
114 SetVersionLabel(std::forward<VersionLabelT>(value));
115 return *this;
116 }
118
120
121 inline const Aws::String& GetRequestId() const { return m_requestId; }
122 template <typename RequestIdT = Aws::String>
123 void SetRequestId(RequestIdT&& value) {
124 m_requestIdHasBeenSet = true;
125 m_requestId = std::forward<RequestIdT>(value);
126 }
127 template <typename RequestIdT = Aws::String>
129 SetRequestId(std::forward<RequestIdT>(value));
130 return *this;
131 }
133 private:
134 Aws::String m_nextPollConfigurationToken;
135
136 int m_nextPollIntervalInSeconds{0};
137
138 Aws::String m_contentType;
139
140 Aws::Utils::Stream::ResponseStream m_configuration{};
141
142 Aws::String m_versionLabel;
143
144 Aws::String m_requestId;
145 bool m_nextPollConfigurationTokenHasBeenSet = false;
146 bool m_nextPollIntervalInSecondsHasBeenSet = false;
147 bool m_contentTypeHasBeenSet = false;
148 bool m_configurationHasBeenSet = false;
149 bool m_versionLabelHasBeenSet = false;
150 bool m_requestIdHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace AppConfigData
155} // 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