AWS SDK for C++  1.9.20
AWS SDK for C++
GetSdkResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/core/utils/Array.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace APIGateway
19 {
20 namespace Model
21 {
29  {
30  public:
32  //We have to define these because Microsoft doesn't auto generate them
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;
38  GetSdkResult& operator=(const GetSdkResult&) = delete;
39 
40 
43 
44 
45 
49  inline const Aws::String& GetContentType() const{ return m_contentType; }
50 
54  inline void SetContentType(const Aws::String& value) { m_contentType = value; }
55 
59  inline void SetContentType(Aws::String&& value) { m_contentType = std::move(value); }
60 
64  inline void SetContentType(const char* value) { m_contentType.assign(value); }
65 
69  inline GetSdkResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
70 
74  inline GetSdkResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
75 
79  inline GetSdkResult& WithContentType(const char* value) { SetContentType(value); return *this;}
80 
81 
85  inline const Aws::String& GetContentDisposition() const{ return m_contentDisposition; }
86 
90  inline void SetContentDisposition(const Aws::String& value) { m_contentDisposition = value; }
91 
95  inline void SetContentDisposition(Aws::String&& value) { m_contentDisposition = std::move(value); }
96 
100  inline void SetContentDisposition(const char* value) { m_contentDisposition.assign(value); }
101 
105  inline GetSdkResult& WithContentDisposition(const Aws::String& value) { SetContentDisposition(value); return *this;}
106 
110  inline GetSdkResult& WithContentDisposition(Aws::String&& value) { SetContentDisposition(std::move(value)); return *this;}
111 
115  inline GetSdkResult& WithContentDisposition(const char* value) { SetContentDisposition(value); return *this;}
116 
117 
122  inline Aws::IOStream& GetBody() { return m_body.GetUnderlyingStream(); }
123 
128  inline void ReplaceBody(Aws::IOStream* body) { m_body = Aws::Utils::Stream::ResponseStream(body); }
129 
130  private:
131 
132  Aws::String m_contentType;
133 
134  Aws::String m_contentDisposition;
135 
137  };
138 
139 } // namespace Model
140 } // namespace APIGateway
141 } // namespace Aws
Aws::APIGateway::Model::GetSdkResult::SetContentType
void SetContentType(Aws::String &&value)
Definition: GetSdkResult.h:59
Aws::IOStream
std::basic_iostream< char, std::char_traits< char > > IOStream
Definition: AWSStreamFwd.h:22
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Utils::Stream::ResponseStream
Definition: ResponseStream.h:22
Aws::APIGateway::Model::GetSdkResult::GetContentDisposition
const Aws::String & GetContentDisposition() const
Definition: GetSdkResult.h:85
Aws::APIGateway::Model::GetSdkResult::WithContentType
GetSdkResult & WithContentType(Aws::String &&value)
Definition: GetSdkResult.h:74
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::GetSdkResult::ReplaceBody
void ReplaceBody(Aws::IOStream *body)
Definition: GetSdkResult.h:128
Aws::APIGateway::Model::GetSdkResult::SetContentDisposition
void SetContentDisposition(const char *value)
Definition: GetSdkResult.h:100
Aws::APIGateway::Model::GetSdkResult::WithContentDisposition
GetSdkResult & WithContentDisposition(Aws::String &&value)
Definition: GetSdkResult.h:110
Aws::APIGateway::Model::GetSdkResult::WithContentType
GetSdkResult & WithContentType(const char *value)
Definition: GetSdkResult.h:79
APIGateway_EXPORTS.h
Aws::APIGateway::Model::GetSdkResult::GetSdkResult
GetSdkResult(GetSdkResult &&)
Aws::APIGateway::Model::GetSdkResult::SetContentDisposition
void SetContentDisposition(Aws::String &&value)
Definition: GetSdkResult.h:95
Aws::APIGateway::Model::GetSdkResult::SetContentType
void SetContentType(const Aws::String &value)
Definition: GetSdkResult.h:54
Aws::APIGateway::Model::GetSdkResult::WithContentType
GetSdkResult & WithContentType(const Aws::String &value)
Definition: GetSdkResult.h:69
Aws::APIGateway::Model::GetSdkResult::SetContentDisposition
void SetContentDisposition(const Aws::String &value)
Definition: GetSdkResult.h:90
Aws::APIGateway::Model::GetSdkResult::operator=
GetSdkResult & operator=(const GetSdkResult &)=delete
AWSString.h
Aws::APIGateway::Model::GetSdkResult::WithContentDisposition
GetSdkResult & WithContentDisposition(const char *value)
Definition: GetSdkResult.h:115
Aws::APIGateway::Model::GetSdkResult::WithContentDisposition
GetSdkResult & WithContentDisposition(const Aws::String &value)
Definition: GetSdkResult.h:105
Aws::APIGateway::Model::GetSdkResult::GetSdkResult
GetSdkResult(const GetSdkResult &)=delete
Aws::APIGateway::Model::GetSdkResult::operator=
GetSdkResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
Aws::APIGateway::Model::GetSdkResult::GetSdkResult
GetSdkResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
Aws::APIGateway::Model::GetSdkResult
Definition: GetSdkResult.h:29
Aws::APIGateway::Model::GetSdkResult::operator=
GetSdkResult & operator=(GetSdkResult &&)
Aws::APIGateway::Model::GetSdkResult::GetBody
Aws::IOStream & GetBody()
Definition: GetSdkResult.h:122
Aws
Definition: AccessManagementClient.h:15
Array.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::GetSdkResult::GetSdkResult
GetSdkResult()
ResponseStream.h
Aws::APIGateway::Model::GetSdkResult::GetContentType
const Aws::String & GetContentType() const
Definition: GetSdkResult.h:49
Aws::APIGateway::Model::GetSdkResult::SetContentType
void SetContentType(const char *value)
Definition: GetSdkResult.h:64