AWS SDK for C++  0.14.3
AWS SDK for C++
GetSdkResult.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:
37  GetSdkResult();
38  //We have to define these because Microsoft doesn't auto generate them
40  GetSdkResult& operator=(GetSdkResult&&);
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  GetSdkResult(const GetSdkResult&) = delete;
44  GetSdkResult& operator=(const GetSdkResult&) = delete;
45 
46 
49 
50 
54  inline const Aws::String& GetContentType() const{ return m_contentType; }
55 
59  inline void SetContentType(const Aws::String& value) { m_contentType = value; }
60 
64  inline void SetContentType(Aws::String&& value) { m_contentType = value; }
65 
69  inline void SetContentType(const char* value) { m_contentType.assign(value); }
70 
74  inline GetSdkResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
75 
79  inline GetSdkResult& WithContentType(Aws::String&& value) { SetContentType(value); return *this;}
80 
84  inline GetSdkResult& WithContentType(const char* value) { SetContentType(value); return *this;}
85 
89  inline const Aws::String& GetContentDisposition() const{ return m_contentDisposition; }
90 
94  inline void SetContentDisposition(const Aws::String& value) { m_contentDisposition = value; }
95 
99  inline void SetContentDisposition(Aws::String&& value) { m_contentDisposition = value; }
100 
104  inline void SetContentDisposition(const char* value) { m_contentDisposition.assign(value); }
105 
109  inline GetSdkResult& WithContentDisposition(const Aws::String& value) { SetContentDisposition(value); return *this;}
110 
114  inline GetSdkResult& WithContentDisposition(Aws::String&& value) { SetContentDisposition(value); return *this;}
115 
119  inline GetSdkResult& WithContentDisposition(const char* value) { SetContentDisposition(value); return *this;}
120 
125  inline Aws::IOStream& GetBody() { return m_body.GetUnderlyingStream(); }
126 
127  private:
128  Aws::String m_contentType;
129  Aws::String m_contentDisposition;
131  };
132 
133 } // namespace Model
134 } // namespace APIGateway
135 } // namespace Aws
GetSdkResult & WithContentDisposition(const char *value)
Definition: GetSdkResult.h:119
GetSdkResult & WithContentType(const char *value)
Definition: GetSdkResult.h:84
GetSdkResult & WithContentType(Aws::String &&value)
Definition: GetSdkResult.h:79
GetSdkResult & WithContentDisposition(Aws::String &&value)
Definition: GetSdkResult.h:114
void SetContentDisposition(const char *value)
Definition: GetSdkResult.h:104
const Aws::String & GetContentDisposition() const
Definition: GetSdkResult.h:89
void SetContentType(const char *value)
Definition: GetSdkResult.h:69
void SetContentDisposition(Aws::String &&value)
Definition: GetSdkResult.h:99
std::basic_iostream< char, std::char_traits< char > > IOStream
Definition: AWSStreamFwd.h:32
void SetContentType(Aws::String &&value)
Definition: GetSdkResult.h:64
const Aws::String & GetContentType() const
Definition: GetSdkResult.h:54
GetSdkResult & WithContentType(const Aws::String &value)
Definition: GetSdkResult.h:74
GetSdkResult & WithContentDisposition(const Aws::String &value)
Definition: GetSdkResult.h:109
void SetContentDisposition(const Aws::String &value)
Definition: GetSdkResult.h:94
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_APIGATEWAY_API
void SetContentType(const Aws::String &value)
Definition: GetSdkResult.h:59
JSON (JavaScript Object Notation).