AWS SDK for C++  1.9.158
AWS SDK for C++
GetExportResult.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  GetExportResult(const GetExportResult&) = delete;
39 
40 
43 
44 
45 
50  inline const Aws::String& GetContentType() const{ return m_contentType; }
51 
56  inline void SetContentType(const Aws::String& value) { m_contentType = value; }
57 
62  inline void SetContentType(Aws::String&& value) { m_contentType = std::move(value); }
63 
68  inline void SetContentType(const char* value) { m_contentType.assign(value); }
69 
74  inline GetExportResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
75 
80  inline GetExportResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
81 
86  inline GetExportResult& WithContentType(const char* value) { SetContentType(value); return *this;}
87 
88 
92  inline const Aws::String& GetContentDisposition() const{ return m_contentDisposition; }
93 
97  inline void SetContentDisposition(const Aws::String& value) { m_contentDisposition = value; }
98 
102  inline void SetContentDisposition(Aws::String&& value) { m_contentDisposition = std::move(value); }
103 
107  inline void SetContentDisposition(const char* value) { m_contentDisposition.assign(value); }
108 
112  inline GetExportResult& WithContentDisposition(const Aws::String& value) { SetContentDisposition(value); return *this;}
113 
117  inline GetExportResult& WithContentDisposition(Aws::String&& value) { SetContentDisposition(std::move(value)); return *this;}
118 
122  inline GetExportResult& WithContentDisposition(const char* value) { SetContentDisposition(value); return *this;}
123 
124 
128  inline Aws::IOStream& GetBody() { return m_body.GetUnderlyingStream(); }
129 
133  inline void ReplaceBody(Aws::IOStream* body) { m_body = Aws::Utils::Stream::ResponseStream(body); }
134 
135  private:
136 
137  Aws::String m_contentType;
138 
139  Aws::String m_contentDisposition;
140 
142  };
143 
144 } // namespace Model
145 } // namespace APIGateway
146 } // namespace Aws
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_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::GetExportResult::WithContentType
GetExportResult & WithContentType(const Aws::String &value)
Definition: GetExportResult.h:74
Aws::APIGateway::Model::GetExportResult::WithContentDisposition
GetExportResult & WithContentDisposition(const Aws::String &value)
Definition: GetExportResult.h:112
Aws::APIGateway::Model::GetExportResult::SetContentType
void SetContentType(Aws::String &&value)
Definition: GetExportResult.h:62
Aws::APIGateway::Model::GetExportResult::SetContentDisposition
void SetContentDisposition(Aws::String &&value)
Definition: GetExportResult.h:102
Aws::APIGateway::Model::GetExportResult::GetExportResult
GetExportResult(const GetExportResult &)=delete
Aws::APIGateway::Model::GetExportResult
Definition: GetExportResult.h:29
Aws::APIGateway::Model::GetExportResult::WithContentType
GetExportResult & WithContentType(const char *value)
Definition: GetExportResult.h:86
Aws::APIGateway::Model::GetExportResult::WithContentDisposition
GetExportResult & WithContentDisposition(const char *value)
Definition: GetExportResult.h:122
Aws::APIGateway::Model::GetExportResult::operator=
GetExportResult & operator=(GetExportResult &&)
APIGateway_EXPORTS.h
Aws::APIGateway::Model::GetExportResult::GetExportResult
GetExportResult()
Aws::APIGateway::Model::GetExportResult::GetExportResult
GetExportResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
Aws::APIGateway::Model::GetExportResult::WithContentType
GetExportResult & WithContentType(Aws::String &&value)
Definition: GetExportResult.h:80
Aws::APIGateway::Model::GetExportResult::SetContentType
void SetContentType(const char *value)
Definition: GetExportResult.h:68
Aws::APIGateway::Model::GetExportResult::ReplaceBody
void ReplaceBody(Aws::IOStream *body)
Definition: GetExportResult.h:133
Aws::APIGateway::Model::GetExportResult::operator=
GetExportResult & operator=(const GetExportResult &)=delete
AWSString.h
Aws::APIGateway::Model::GetExportResult::GetExportResult
GetExportResult(GetExportResult &&)
Aws::APIGateway::Model::GetExportResult::SetContentDisposition
void SetContentDisposition(const Aws::String &value)
Definition: GetExportResult.h:97
Aws::APIGateway::Model::GetExportResult::SetContentDisposition
void SetContentDisposition(const char *value)
Definition: GetExportResult.h:107
Aws
Definition: AccessManagementClient.h:15
Array.h
Aws::APIGateway::Model::GetExportResult::operator=
GetExportResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::GetExportResult::SetContentType
void SetContentType(const Aws::String &value)
Definition: GetExportResult.h:56
Aws::APIGateway::Model::GetExportResult::WithContentDisposition
GetExportResult & WithContentDisposition(Aws::String &&value)
Definition: GetExportResult.h:117
Aws::APIGateway::Model::GetExportResult::GetContentType
const Aws::String & GetContentType() const
Definition: GetExportResult.h:50
Aws::APIGateway::Model::GetExportResult::GetBody
Aws::IOStream & GetBody()
Definition: GetExportResult.h:128
Aws::APIGateway::Model::GetExportResult::GetContentDisposition
const Aws::String & GetContentDisposition() const
Definition: GetExportResult.h:92
ResponseStream.h