AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetMediaResult.h
1
6#pragma once
7#include <aws/kinesis-video-media/KinesisVideoMedia_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 KinesisVideoMedia
19{
20namespace Model
21{
23 {
24 public:
25 AWS_KINESISVIDEOMEDIA_API GetMediaResult();
26 //We have to define these because Microsoft doesn't auto generate them
27 AWS_KINESISVIDEOMEDIA_API GetMediaResult(GetMediaResult&&);
28 AWS_KINESISVIDEOMEDIA_API GetMediaResult& operator=(GetMediaResult&&);
29 //we delete these because Microsoft doesn't handle move generation correctly
30 //and we therefore don't trust them to get it right here either.
33
34
37
38
39
41
44 inline const Aws::String& GetContentType() const{ return m_contentType; }
45 inline void SetContentType(const Aws::String& value) { m_contentType = value; }
46 inline void SetContentType(Aws::String&& value) { m_contentType = std::move(value); }
47 inline void SetContentType(const char* value) { m_contentType.assign(value); }
48 inline GetMediaResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
49 inline GetMediaResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
50 inline GetMediaResult& WithContentType(const char* value) { SetContentType(value); return *this;}
52
54
82 inline Aws::IOStream& GetPayload() const { return m_payload.GetUnderlyingStream(); }
83 inline void ReplaceBody(Aws::IOStream* body) { m_payload = Aws::Utils::Stream::ResponseStream(body); }
84
86
88
89 inline const Aws::String& GetRequestId() const{ return m_requestId; }
90 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
91 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
92 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
93 inline GetMediaResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
94 inline GetMediaResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
95 inline GetMediaResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
97 private:
98
99 Aws::String m_contentType;
100
102
103 Aws::String m_requestId;
104 };
105
106} // namespace Model
107} // namespace KinesisVideoMedia
108} // namespace Aws
void SetRequestId(const Aws::String &value)
AWS_KINESISVIDEOMEDIA_API GetMediaResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
AWS_KINESISVIDEOMEDIA_API GetMediaResult()
AWS_KINESISVIDEOMEDIA_API GetMediaResult & operator=(GetMediaResult &&)
GetMediaResult & WithRequestId(const Aws::String &value)
GetMediaResult & operator=(const GetMediaResult &)=delete
GetMediaResult & WithContentType(const char *value)
GetMediaResult & WithContentType(Aws::String &&value)
AWS_KINESISVIDEOMEDIA_API GetMediaResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
GetMediaResult(const GetMediaResult &)=delete
AWS_KINESISVIDEOMEDIA_API GetMediaResult(GetMediaResult &&)
GetMediaResult & WithRequestId(const char *value)
GetMediaResult & WithContentType(const Aws::String &value)
GetMediaResult & WithRequestId(Aws::String &&value)
void SetContentType(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