AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetSdkResult.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/core/utils/stream/ResponseStream.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/Array.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace APIGateway
19{
20namespace Model
21{
29 {
30 public:
31 AWS_APIGATEWAY_API GetSdkResult();
32 //We have to define these because Microsoft doesn't auto generate them
33 AWS_APIGATEWAY_API GetSdkResult(GetSdkResult&&);
34 AWS_APIGATEWAY_API GetSdkResult& operator=(GetSdkResult&&);
35 //we delete these because Microsoft doesn't handle move generation correctly
36 //and we therefore don't trust them to get it right here either.
37 GetSdkResult(const GetSdkResult&) = delete;
39
40
43
44
45
47
50 inline const Aws::String& GetContentType() const{ return m_contentType; }
51 inline void SetContentType(const Aws::String& value) { m_contentType = value; }
52 inline void SetContentType(Aws::String&& value) { m_contentType = std::move(value); }
53 inline void SetContentType(const char* value) { m_contentType.assign(value); }
54 inline GetSdkResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
55 inline GetSdkResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
56 inline GetSdkResult& WithContentType(const char* value) { SetContentType(value); return *this;}
58
60
63 inline const Aws::String& GetContentDisposition() const{ return m_contentDisposition; }
64 inline void SetContentDisposition(const Aws::String& value) { m_contentDisposition = value; }
65 inline void SetContentDisposition(Aws::String&& value) { m_contentDisposition = std::move(value); }
66 inline void SetContentDisposition(const char* value) { m_contentDisposition.assign(value); }
67 inline GetSdkResult& WithContentDisposition(const Aws::String& value) { SetContentDisposition(value); return *this;}
68 inline GetSdkResult& WithContentDisposition(Aws::String&& value) { SetContentDisposition(std::move(value)); return *this;}
69 inline GetSdkResult& WithContentDisposition(const char* value) { SetContentDisposition(value); return *this;}
71
73
76 inline Aws::IOStream& GetBody() const { return m_body.GetUnderlyingStream(); }
77 inline void ReplaceBody(Aws::IOStream* body) { m_body = Aws::Utils::Stream::ResponseStream(body); }
78
80
82
83 inline const Aws::String& GetRequestId() const{ return m_requestId; }
84 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
85 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
86 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
87 inline GetSdkResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
88 inline GetSdkResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
89 inline GetSdkResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
91 private:
92
93 Aws::String m_contentType;
94
95 Aws::String m_contentDisposition;
96
98
99 Aws::String m_requestId;
100 };
101
102} // namespace Model
103} // namespace APIGateway
104} // namespace Aws
GetSdkResult & WithContentDisposition(const Aws::String &value)
const Aws::String & GetContentDisposition() const
AWS_APIGATEWAY_API GetSdkResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
AWS_APIGATEWAY_API GetSdkResult(GetSdkResult &&)
Aws::IOStream & GetBody() const
AWS_APIGATEWAY_API GetSdkResult & operator=(GetSdkResult &&)
void ReplaceBody(Aws::IOStream *body)
void SetContentDisposition(const Aws::String &value)
GetSdkResult & WithContentType(Aws::String &&value)
GetSdkResult(const GetSdkResult &)=delete
GetSdkResult & WithContentDisposition(Aws::String &&value)
GetSdkResult & WithContentType(const char *value)
void SetRequestId(const char *value)
GetSdkResult & WithContentDisposition(const char *value)
void SetContentType(const Aws::String &value)
void SetContentDisposition(const char *value)
GetSdkResult & WithRequestId(Aws::String &&value)
void SetContentDisposition(Aws::String &&value)
AWS_APIGATEWAY_API GetSdkResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
void SetContentType(Aws::String &&value)
GetSdkResult & WithRequestId(const char *value)
GetSdkResult & WithContentType(const Aws::String &value)
const Aws::String & GetContentType() const
void SetRequestId(const Aws::String &value)
void SetContentType(const char *value)
const Aws::String & GetRequestId() const
void SetRequestId(Aws::String &&value)
GetSdkResult & operator=(const GetSdkResult &)=delete
GetSdkResult & WithRequestId(const Aws::String &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