AWS SDK for C++

AWS SDK for C++ Version 1.11.781

Loading...
Searching...
No Matches
GetStaticMapResult.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 GetStaticMapResult() = default;
24 AWS_GEOMAPS_API GetStaticMapResult(GetStaticMapResult&&) = default;
25 AWS_GEOMAPS_API GetStaticMapResult& operator=(GetStaticMapResult&&) = 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>
56 GetStaticMapResult& WithContentType(ContentTypeT&& value) {
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>
73 GetStaticMapResult& WithCacheControl(CacheControlT&& value) {
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>
90 GetStaticMapResult& WithETag(ETagT&& value) {
91 SetETag(std::forward<ETagT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetPricingBucket() const { return m_pricingBucket; }
101 template <typename PricingBucketT = Aws::String>
102 void SetPricingBucket(PricingBucketT&& value) {
103 m_pricingBucketHasBeenSet = true;
104 m_pricingBucket = std::forward<PricingBucketT>(value);
105 }
106 template <typename PricingBucketT = Aws::String>
107 GetStaticMapResult& WithPricingBucket(PricingBucketT&& value) {
108 SetPricingBucket(std::forward<PricingBucketT>(value));
109 return *this;
110 }
112
114
115 inline const Aws::String& GetRequestId() const { return m_requestId; }
116 template <typename RequestIdT = Aws::String>
117 void SetRequestId(RequestIdT&& value) {
118 m_requestIdHasBeenSet = true;
119 m_requestId = std::forward<RequestIdT>(value);
120 }
121 template <typename RequestIdT = Aws::String>
122 GetStaticMapResult& WithRequestId(RequestIdT&& value) {
123 SetRequestId(std::forward<RequestIdT>(value));
124 return *this;
125 }
127 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
128
129 private:
131
132 Aws::String m_contentType;
133
134 Aws::String m_cacheControl;
135
136 Aws::String m_eTag;
137
138 Aws::String m_pricingBucket;
139
140 Aws::String m_requestId;
141 Aws::Http::HttpResponseCode m_HttpResponseCode;
142 bool m_blobHasBeenSet = false;
143 bool m_contentTypeHasBeenSet = false;
144 bool m_cacheControlHasBeenSet = false;
145 bool m_eTagHasBeenSet = false;
146 bool m_pricingBucketHasBeenSet = false;
147 bool m_requestIdHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace GeoMaps
152} // namespace Aws
const Aws::String & GetCacheControl() const
const Aws::String & GetPricingBucket() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetStaticMapResult & WithETag(ETagT &&value)
GetStaticMapResult & operator=(const GetStaticMapResult &)=delete
AWS_GEOMAPS_API GetStaticMapResult & operator=(GetStaticMapResult &&)=default
void SetContentType(ContentTypeT &&value)
GetStaticMapResult & WithRequestId(RequestIdT &&value)
void SetPricingBucket(PricingBucketT &&value)
AWS_GEOMAPS_API GetStaticMapResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
void SetCacheControl(CacheControlT &&value)
const Aws::String & GetContentType() const
GetStaticMapResult & WithPricingBucket(PricingBucketT &&value)
AWS_GEOMAPS_API GetStaticMapResult(GetStaticMapResult &&)=default
AWS_GEOMAPS_API GetStaticMapResult()=default
GetStaticMapResult(const GetStaticMapResult &)=delete
AWS_GEOMAPS_API GetStaticMapResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
GetStaticMapResult & WithContentType(ContentTypeT &&value)
GetStaticMapResult & WithCacheControl(CacheControlT &&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