AWS SDK for C++  1.9.155
AWS SDK for C++
ListFragmentsResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace KinesisVideoArchivedMedia
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
41  inline const Aws::Vector<Fragment>& GetFragments() const{ return m_fragments; }
42 
47  inline void SetFragments(const Aws::Vector<Fragment>& value) { m_fragments = value; }
48 
53  inline void SetFragments(Aws::Vector<Fragment>&& value) { m_fragments = std::move(value); }
54 
59  inline ListFragmentsResult& WithFragments(const Aws::Vector<Fragment>& value) { SetFragments(value); return *this;}
60 
65  inline ListFragmentsResult& WithFragments(Aws::Vector<Fragment>&& value) { SetFragments(std::move(value)); return *this;}
66 
71  inline ListFragmentsResult& AddFragments(const Fragment& value) { m_fragments.push_back(value); return *this; }
72 
77  inline ListFragmentsResult& AddFragments(Fragment&& value) { m_fragments.push_back(std::move(value)); return *this; }
78 
79 
85  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
86 
92  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
93 
99  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
100 
106  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
107 
113  inline ListFragmentsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
114 
120  inline ListFragmentsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
121 
127  inline ListFragmentsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
128 
129  private:
130 
131  Aws::Vector<Fragment> m_fragments;
132 
133  Aws::String m_nextToken;
134  };
135 
136 } // namespace Model
137 } // namespace KinesisVideoArchivedMedia
138 } // namespace Aws
Aws::KinesisVideoArchivedMedia::Model::ListFragmentsResult::WithFragments
ListFragmentsResult & WithFragments(const Aws::Vector< Fragment > &value)
Definition: ListFragmentsResult.h:59
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::KinesisVideoArchivedMedia::Model::ListFragmentsResult::GetFragments
const Aws::Vector< Fragment > & GetFragments() const
Definition: ListFragmentsResult.h:41
Aws::KinesisVideoArchivedMedia::Model::ListFragmentsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListFragmentsResult.h:106
AWS_KINESISVIDEOARCHIVEDMEDIA_API
#define AWS_KINESISVIDEOARCHIVEDMEDIA_API
Definition: KinesisVideoArchivedMedia_EXPORTS.h:28
Aws::KinesisVideoArchivedMedia::Model::ListFragmentsResult::WithFragments
ListFragmentsResult & WithFragments(Aws::Vector< Fragment > &&value)
Definition: ListFragmentsResult.h:65
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::KinesisVideoArchivedMedia::Model::ListFragmentsResult::WithNextToken
ListFragmentsResult & WithNextToken(const char *value)
Definition: ListFragmentsResult.h:127
AWSVector.h
KinesisVideoArchivedMedia_EXPORTS.h
Aws::KinesisVideoArchivedMedia::Model::ListFragmentsResult::WithNextToken
ListFragmentsResult & WithNextToken(Aws::String &&value)
Definition: ListFragmentsResult.h:120
Fragment.h
Aws::KinesisVideoArchivedMedia::Model::ListFragmentsResult::SetFragments
void SetFragments(const Aws::Vector< Fragment > &value)
Definition: ListFragmentsResult.h:47
AWSString.h
Aws::KinesisVideoArchivedMedia::Model::ListFragmentsResult::AddFragments
ListFragmentsResult & AddFragments(const Fragment &value)
Definition: ListFragmentsResult.h:71
Aws::KinesisVideoArchivedMedia::Model::ListFragmentsResult::operator=
ListFragmentsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::KinesisVideoArchivedMedia::Model::ListFragmentsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListFragmentsResult.h:92
Aws::KinesisVideoArchivedMedia::Model::ListFragmentsResult::AddFragments
ListFragmentsResult & AddFragments(Fragment &&value)
Definition: ListFragmentsResult.h:77
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::KinesisVideoArchivedMedia::Model::ListFragmentsResult::ListFragmentsResult
ListFragmentsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::KinesisVideoArchivedMedia::Model::ListFragmentsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListFragmentsResult.h:99
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::KinesisVideoArchivedMedia::Model::ListFragmentsResult::SetFragments
void SetFragments(Aws::Vector< Fragment > &&value)
Definition: ListFragmentsResult.h:53
Aws::KinesisVideoArchivedMedia::Model::ListFragmentsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListFragmentsResult.h:85
Aws::KinesisVideoArchivedMedia::Model::ListFragmentsResult::ListFragmentsResult
ListFragmentsResult()
Aws::KinesisVideoArchivedMedia::Model::ListFragmentsResult
Definition: ListFragmentsResult.h:30
Aws::KinesisVideoArchivedMedia::Model::Fragment
Definition: Fragment.h:34
Aws::KinesisVideoArchivedMedia::Model::ListFragmentsResult::WithNextToken
ListFragmentsResult & WithNextToken(const Aws::String &value)
Definition: ListFragmentsResult.h:113