AWS SDK for C++  1.9.159
AWS SDK for C++
GetClipResult.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.
31  GetClipResult(const GetClipResult&) = delete;
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 GetClipResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
64 
68  inline GetClipResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
69 
73  inline GetClipResult& WithContentType(const char* value) { SetContentType(value); return *this;}
74 
75 
83  inline Aws::IOStream& GetPayload() { return m_payload.GetUnderlyingStream(); }
84 
92  inline void ReplaceBody(Aws::IOStream* body) { m_payload = Aws::Utils::Stream::ResponseStream(body); }
93 
94  private:
95 
96  Aws::String m_contentType;
97 
99  };
100 
101 } // namespace Model
102 } // namespace KinesisVideoArchivedMedia
103 } // 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::GetClipResult
Definition: GetClipResult.h:23
Aws::KinesisVideoArchivedMedia::Model::GetClipResult::GetClipResult
GetClipResult(const GetClipResult &)=delete
Aws::KinesisVideoArchivedMedia::Model::GetClipResult::GetContentType
const Aws::String & GetContentType() const
Definition: GetClipResult.h:43
AWS_KINESISVIDEOARCHIVEDMEDIA_API
#define AWS_KINESISVIDEOARCHIVEDMEDIA_API
Definition: KinesisVideoArchivedMedia_EXPORTS.h:28
Aws::KinesisVideoArchivedMedia::Model::GetClipResult::SetContentType
void SetContentType(const char *value)
Definition: GetClipResult.h:58
Aws::KinesisVideoArchivedMedia::Model::GetClipResult::GetClipResult
GetClipResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
Aws::KinesisVideoArchivedMedia::Model::GetClipResult::SetContentType
void SetContentType(const Aws::String &value)
Definition: GetClipResult.h:48
KinesisVideoArchivedMedia_EXPORTS.h
Aws::KinesisVideoArchivedMedia::Model::GetClipResult::GetPayload
Aws::IOStream & GetPayload()
Definition: GetClipResult.h:83
Aws::KinesisVideoArchivedMedia::Model::GetClipResult::GetClipResult
GetClipResult(GetClipResult &&)
Aws::KinesisVideoArchivedMedia::Model::GetClipResult::WithContentType
GetClipResult & WithContentType(const Aws::String &value)
Definition: GetClipResult.h:63
Aws::KinesisVideoArchivedMedia::Model::GetClipResult::operator=
GetClipResult & operator=(GetClipResult &&)
AWSString.h
Aws::KinesisVideoArchivedMedia::Model::GetClipResult::ReplaceBody
void ReplaceBody(Aws::IOStream *body)
Definition: GetClipResult.h:92
Aws::KinesisVideoArchivedMedia::Model::GetClipResult::GetClipResult
GetClipResult()
Aws::KinesisVideoArchivedMedia::Model::GetClipResult::operator=
GetClipResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
Aws::KinesisVideoArchivedMedia::Model::GetClipResult::WithContentType
GetClipResult & WithContentType(const char *value)
Definition: GetClipResult.h:73
Aws::KinesisVideoArchivedMedia::Model::GetClipResult::operator=
GetClipResult & operator=(const GetClipResult &)=delete
Aws
Definition: AccessManagementClient.h:15
Array.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::KinesisVideoArchivedMedia::Model::GetClipResult::SetContentType
void SetContentType(Aws::String &&value)
Definition: GetClipResult.h:53
ResponseStream.h
Aws::KinesisVideoArchivedMedia::Model::GetClipResult::WithContentType
GetClipResult & WithContentType(Aws::String &&value)
Definition: GetClipResult.h:68