AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetStaticMapResult.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/stream/ResponseStream.h>
10#include <aws/geo-maps/GeoMaps_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace GeoMaps {
19namespace Model {
21 public:
22 AWS_GEOMAPS_API GetStaticMapResult() = default;
23 AWS_GEOMAPS_API GetStaticMapResult(GetStaticMapResult&&) = default;
24 AWS_GEOMAPS_API GetStaticMapResult& operator=(GetStaticMapResult&&) = 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
38 inline Aws::IOStream& GetBlob() const { return m_blob.GetUnderlyingStream(); }
39 inline void ReplaceBody(Aws::IOStream* body) { m_blob = Aws::Utils::Stream::ResponseStream(body); }
40
42
44
48 inline const Aws::String& GetContentType() const { return m_contentType; }
49 template <typename ContentTypeT = Aws::String>
50 void SetContentType(ContentTypeT&& value) {
51 m_contentTypeHasBeenSet = true;
52 m_contentType = std::forward<ContentTypeT>(value);
53 }
54 template <typename ContentTypeT = Aws::String>
55 GetStaticMapResult& WithContentType(ContentTypeT&& value) {
56 SetContentType(std::forward<ContentTypeT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetCacheControl() const { return m_cacheControl; }
66 template <typename CacheControlT = Aws::String>
67 void SetCacheControl(CacheControlT&& value) {
68 m_cacheControlHasBeenSet = true;
69 m_cacheControl = std::forward<CacheControlT>(value);
70 }
71 template <typename CacheControlT = Aws::String>
72 GetStaticMapResult& WithCacheControl(CacheControlT&& value) {
73 SetCacheControl(std::forward<CacheControlT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetETag() const { return m_eTag; }
83 template <typename ETagT = Aws::String>
84 void SetETag(ETagT&& value) {
85 m_eTagHasBeenSet = true;
86 m_eTag = std::forward<ETagT>(value);
87 }
88 template <typename ETagT = Aws::String>
89 GetStaticMapResult& WithETag(ETagT&& value) {
90 SetETag(std::forward<ETagT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetPricingBucket() const { return m_pricingBucket; }
100 template <typename PricingBucketT = Aws::String>
101 void SetPricingBucket(PricingBucketT&& value) {
102 m_pricingBucketHasBeenSet = true;
103 m_pricingBucket = std::forward<PricingBucketT>(value);
104 }
105 template <typename PricingBucketT = Aws::String>
106 GetStaticMapResult& WithPricingBucket(PricingBucketT&& value) {
107 SetPricingBucket(std::forward<PricingBucketT>(value));
108 return *this;
109 }
111
113
114 inline const Aws::String& GetRequestId() const { return m_requestId; }
115 template <typename RequestIdT = Aws::String>
116 void SetRequestId(RequestIdT&& value) {
117 m_requestIdHasBeenSet = true;
118 m_requestId = std::forward<RequestIdT>(value);
119 }
120 template <typename RequestIdT = Aws::String>
121 GetStaticMapResult& WithRequestId(RequestIdT&& value) {
122 SetRequestId(std::forward<RequestIdT>(value));
123 return *this;
124 }
126 private:
128
129 Aws::String m_contentType;
130
131 Aws::String m_cacheControl;
132
133 Aws::String m_eTag;
134
135 Aws::String m_pricingBucket;
136
137 Aws::String m_requestId;
138 bool m_blobHasBeenSet = false;
139 bool m_contentTypeHasBeenSet = false;
140 bool m_cacheControlHasBeenSet = false;
141 bool m_eTagHasBeenSet = false;
142 bool m_pricingBucketHasBeenSet = false;
143 bool m_requestIdHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace GeoMaps
148} // namespace Aws
const Aws::String & GetCacheControl() const
const Aws::String & GetPricingBucket() 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