AWS SDK for C++  0.12.9
AWS SDK for C++
GetExportResult.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 #include <aws/core/utils/Array.h>
20 
21 namespace Aws
22 {
23 template<typename RESULT_TYPE>
24 class AmazonWebServiceResult;
25 
26 namespace APIGateway
27 {
28 namespace Model
29 {
35  {
36  public:
38  //We have to define these because Microsoft doesn't auto generate them
40  GetExportResult& operator=(GetExportResult&&);
41  //we delete these because Microsoft doesn't handle move generation correctly
42  //and we therefore don't trust them to get it right here either.
43  GetExportResult(const GetExportResult&) = delete;
44  GetExportResult& operator=(const GetExportResult&) = delete;
45 
46 
49 
50 
55  inline const Aws::String& GetContentType() const{ return m_contentType; }
56 
61  inline void SetContentType(const Aws::String& value) { m_contentType = value; }
62 
67  inline void SetContentType(Aws::String&& value) { m_contentType = value; }
68 
73  inline void SetContentType(const char* value) { m_contentType.assign(value); }
74 
79  inline GetExportResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
80 
85  inline GetExportResult& WithContentType(Aws::String&& value) { SetContentType(value); return *this;}
86 
91  inline GetExportResult& WithContentType(const char* value) { SetContentType(value); return *this;}
92 
96  inline const Aws::String& GetContentDisposition() const{ return m_contentDisposition; }
97 
101  inline void SetContentDisposition(const Aws::String& value) { m_contentDisposition = value; }
102 
106  inline void SetContentDisposition(Aws::String&& value) { m_contentDisposition = value; }
107 
111  inline void SetContentDisposition(const char* value) { m_contentDisposition.assign(value); }
112 
116  inline GetExportResult& WithContentDisposition(const Aws::String& value) { SetContentDisposition(value); return *this;}
117 
121  inline GetExportResult& WithContentDisposition(Aws::String&& value) { SetContentDisposition(value); return *this;}
122 
126  inline GetExportResult& WithContentDisposition(const char* value) { SetContentDisposition(value); return *this;}
127 
131  inline Aws::IOStream& GetBody() { return m_body.GetUnderlyingStream(); }
132 
133  private:
134  Aws::String m_contentType;
135  Aws::String m_contentDisposition;
137  };
138 
139 } // namespace Model
140 } // namespace APIGateway
141 } // namespace Aws
void SetContentType(Aws::String &&value)
const Aws::String & GetContentDisposition() const
const Aws::String & GetContentType() const
void SetContentDisposition(const Aws::String &value)
void SetContentType(const char *value)
std::basic_iostream< char, std::char_traits< char > > IOStream
Definition: AWSStreamFwd.h:32
GetExportResult & WithContentDisposition(const Aws::String &value)
GetExportResult & WithContentDisposition(const char *value)
GetExportResult & WithContentDisposition(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetExportResult & WithContentType(const Aws::String &value)
void SetContentType(const Aws::String &value)
#define AWS_APIGATEWAY_API
GetExportResult & WithContentType(const char *value)
GetExportResult & WithContentType(Aws::String &&value)
void SetContentDisposition(Aws::String &&value)
void SetContentDisposition(const char *value)
JSON (JavaScript Object Notation).