AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
GetStyleDescriptorResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.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#include <aws/geo-maps/GeoMaps_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace GeoMaps {
20namespace Model {
22 public:
23 AWS_GEOMAPS_API GetStyleDescriptorResult() = 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
39 inline Aws::IOStream& GetBlob() const { return m_blob.GetUnderlyingStream(); }
40 inline void ReplaceBody(Aws::IOStream* body) { m_blob = Aws::Utils::Stream::ResponseStream(body); }
41
43
45
49 inline const Aws::String& GetContentType() const { return m_contentType; }
50 template <typename ContentTypeT = Aws::String>
51 void SetContentType(ContentTypeT&& value) {
52 m_contentTypeHasBeenSet = true;
53 m_contentType = std::forward<ContentTypeT>(value);
54 }
55 template <typename ContentTypeT = Aws::String>
57 SetContentType(std::forward<ContentTypeT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetCacheControl() const { return m_cacheControl; }
67 template <typename CacheControlT = Aws::String>
68 void SetCacheControl(CacheControlT&& value) {
69 m_cacheControlHasBeenSet = true;
70 m_cacheControl = std::forward<CacheControlT>(value);
71 }
72 template <typename CacheControlT = Aws::String>
74 SetCacheControl(std::forward<CacheControlT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetETag() const { return m_eTag; }
84 template <typename ETagT = Aws::String>
85 void SetETag(ETagT&& value) {
86 m_eTagHasBeenSet = true;
87 m_eTag = std::forward<ETagT>(value);
88 }
89 template <typename ETagT = Aws::String>
91 SetETag(std::forward<ETagT>(value));
92 return *this;
93 }
95
97
98 inline const Aws::String& GetRequestId() const { return m_requestId; }
99 template <typename RequestIdT = Aws::String>
100 void SetRequestId(RequestIdT&& value) {
101 m_requestIdHasBeenSet = true;
102 m_requestId = std::forward<RequestIdT>(value);
103 }
104 template <typename RequestIdT = Aws::String>
106 SetRequestId(std::forward<RequestIdT>(value));
107 return *this;
108 }
110 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
111
112 private:
114
115 Aws::String m_contentType;
116
117 Aws::String m_cacheControl;
118
119 Aws::String m_eTag;
120
121 Aws::String m_requestId;
122 Aws::Http::HttpResponseCode m_HttpResponseCode;
123 bool m_blobHasBeenSet = false;
124 bool m_contentTypeHasBeenSet = false;
125 bool m_cacheControlHasBeenSet = false;
126 bool m_eTagHasBeenSet = false;
127 bool m_requestIdHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace GeoMaps
132} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetStyleDescriptorResult & WithCacheControl(CacheControlT &&value)
GetStyleDescriptorResult & WithContentType(ContentTypeT &&value)
AWS_GEOMAPS_API GetStyleDescriptorResult(GetStyleDescriptorResult &&)=default
AWS_GEOMAPS_API GetStyleDescriptorResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
AWS_GEOMAPS_API GetStyleDescriptorResult & operator=(GetStyleDescriptorResult &&)=default
GetStyleDescriptorResult(const GetStyleDescriptorResult &)=delete
AWS_GEOMAPS_API GetStyleDescriptorResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
GetStyleDescriptorResult & WithETag(ETagT &&value)
AWS_GEOMAPS_API GetStyleDescriptorResult()=default
GetStyleDescriptorResult & WithRequestId(RequestIdT &&value)
GetStyleDescriptorResult & operator=(const GetStyleDescriptorResult &)=delete
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