AWS SDK for C++  1.9.155
AWS SDK for C++
GetMediaForFragmentListResult.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 KinesisVideoArchivedMedia
19 {
20 namespace Model
21 {
23  {
24  public:
26  //We have to define these because Microsoft doesn't auto generate them
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 
43  inline const Aws::String& GetContentType() const{ return m_contentType; }
44 
48  inline void SetContentType(const Aws::String& value) { m_contentType = value; }
49 
53  inline void SetContentType(Aws::String&& value) { m_contentType = std::move(value); }
54 
58  inline void SetContentType(const char* value) { m_contentType.assign(value); }
59 
63  inline GetMediaForFragmentListResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
64 
68  inline GetMediaForFragmentListResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
69 
73  inline GetMediaForFragmentListResult& WithContentType(const char* value) { SetContentType(value); return *this;}
74 
75 
93  inline Aws::IOStream& GetPayload() { return m_payload.GetUnderlyingStream(); }
94 
112  inline void ReplaceBody(Aws::IOStream* body) { m_payload = Aws::Utils::Stream::ResponseStream(body); }
113 
114  private:
115 
116  Aws::String m_contentType;
117 
119  };
120 
121 } // namespace Model
122 } // namespace KinesisVideoArchivedMedia
123 } // 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::KinesisVideoArchivedMedia::Model::GetMediaForFragmentListResult::GetContentType
const Aws::String & GetContentType() const
Definition: GetMediaForFragmentListResult.h:43
Aws::KinesisVideoArchivedMedia::Model::GetMediaForFragmentListResult::ReplaceBody
void ReplaceBody(Aws::IOStream *body)
Definition: GetMediaForFragmentListResult.h:112
Aws::KinesisVideoArchivedMedia::Model::GetMediaForFragmentListResult::WithContentType
GetMediaForFragmentListResult & WithContentType(const Aws::String &value)
Definition: GetMediaForFragmentListResult.h:63
Aws::KinesisVideoArchivedMedia::Model::GetMediaForFragmentListResult::WithContentType
GetMediaForFragmentListResult & WithContentType(const char *value)
Definition: GetMediaForFragmentListResult.h:73
AWS_KINESISVIDEOARCHIVEDMEDIA_API
#define AWS_KINESISVIDEOARCHIVEDMEDIA_API
Definition: KinesisVideoArchivedMedia_EXPORTS.h:28
Aws::KinesisVideoArchivedMedia::Model::GetMediaForFragmentListResult::SetContentType
void SetContentType(const Aws::String &value)
Definition: GetMediaForFragmentListResult.h:48
Aws::KinesisVideoArchivedMedia::Model::GetMediaForFragmentListResult::GetMediaForFragmentListResult
GetMediaForFragmentListResult()
KinesisVideoArchivedMedia_EXPORTS.h
Aws::KinesisVideoArchivedMedia::Model::GetMediaForFragmentListResult::SetContentType
void SetContentType(Aws::String &&value)
Definition: GetMediaForFragmentListResult.h:53
Aws::KinesisVideoArchivedMedia::Model::GetMediaForFragmentListResult::operator=
GetMediaForFragmentListResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
Aws::KinesisVideoArchivedMedia::Model::GetMediaForFragmentListResult::operator=
GetMediaForFragmentListResult & operator=(GetMediaForFragmentListResult &&)
Aws::KinesisVideoArchivedMedia::Model::GetMediaForFragmentListResult::WithContentType
GetMediaForFragmentListResult & WithContentType(Aws::String &&value)
Definition: GetMediaForFragmentListResult.h:68
AWSString.h
Aws::KinesisVideoArchivedMedia::Model::GetMediaForFragmentListResult::GetMediaForFragmentListResult
GetMediaForFragmentListResult(GetMediaForFragmentListResult &&)
Aws::KinesisVideoArchivedMedia::Model::GetMediaForFragmentListResult::GetMediaForFragmentListResult
GetMediaForFragmentListResult(const GetMediaForFragmentListResult &)=delete
Aws::KinesisVideoArchivedMedia::Model::GetMediaForFragmentListResult::SetContentType
void SetContentType(const char *value)
Definition: GetMediaForFragmentListResult.h:58
Aws
Definition: AccessManagementClient.h:15
Aws::KinesisVideoArchivedMedia::Model::GetMediaForFragmentListResult::GetPayload
Aws::IOStream & GetPayload()
Definition: GetMediaForFragmentListResult.h:93
Array.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::KinesisVideoArchivedMedia::Model::GetMediaForFragmentListResult::GetMediaForFragmentListResult
GetMediaForFragmentListResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
Aws::KinesisVideoArchivedMedia::Model::GetMediaForFragmentListResult::operator=
GetMediaForFragmentListResult & operator=(const GetMediaForFragmentListResult &)=delete
ResponseStream.h
Aws::KinesisVideoArchivedMedia::Model::GetMediaForFragmentListResult
Definition: GetMediaForFragmentListResult.h:23