AWS SDK for C++  1.9.104
AWS SDK for C++
ListActivitiesResult.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 SFN
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<ActivityListItem>& GetActivities() const{ return m_activities; }
41 
45  inline void SetActivities(const Aws::Vector<ActivityListItem>& value) { m_activities = value; }
46 
50  inline void SetActivities(Aws::Vector<ActivityListItem>&& value) { m_activities = std::move(value); }
51 
55  inline ListActivitiesResult& WithActivities(const Aws::Vector<ActivityListItem>& value) { SetActivities(value); return *this;}
56 
60  inline ListActivitiesResult& WithActivities(Aws::Vector<ActivityListItem>&& value) { SetActivities(std::move(value)); return *this;}
61 
65  inline ListActivitiesResult& AddActivities(const ActivityListItem& value) { m_activities.push_back(value); return *this; }
66 
70  inline ListActivitiesResult& AddActivities(ActivityListItem&& value) { m_activities.push_back(std::move(value)); return *this; }
71 
72 
81  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
82 
91  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
92 
101  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
102 
111  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
112 
121  inline ListActivitiesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
122 
131  inline ListActivitiesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
132 
141  inline ListActivitiesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
142 
143  private:
144 
145  Aws::Vector<ActivityListItem> m_activities;
146 
147  Aws::String m_nextToken;
148  };
149 
150 } // namespace Model
151 } // namespace SFN
152 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::SFN::Model::ListActivitiesResult::operator=
ListActivitiesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ActivityListItem.h
Aws::SFN::Model::ListActivitiesResult::WithActivities
ListActivitiesResult & WithActivities(Aws::Vector< ActivityListItem > &&value)
Definition: ListActivitiesResult.h:60
Aws::SFN::Model::ListActivitiesResult::ListActivitiesResult
ListActivitiesResult()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWS_SFN_API
#define AWS_SFN_API
Definition: SFN_EXPORTS.h:28
Aws::SFN::Model::ListActivitiesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListActivitiesResult.h:91
SFN_EXPORTS.h
AWSVector.h
Aws::SFN::Model::ListActivitiesResult
Definition: ListActivitiesResult.h:30
Aws::SFN::Model::ActivityListItem
Definition: ActivityListItem.h:33
Aws::SFN::Model::ListActivitiesResult::AddActivities
ListActivitiesResult & AddActivities(const ActivityListItem &value)
Definition: ListActivitiesResult.h:65
Aws::SFN::Model::ListActivitiesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListActivitiesResult.h:81
Aws::SFN::Model::ListActivitiesResult::SetActivities
void SetActivities(Aws::Vector< ActivityListItem > &&value)
Definition: ListActivitiesResult.h:50
Aws::SFN::Model::ListActivitiesResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListActivitiesResult.h:111
Aws::SFN::Model::ListActivitiesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListActivitiesResult.h:101
Aws::SFN::Model::ListActivitiesResult::SetActivities
void SetActivities(const Aws::Vector< ActivityListItem > &value)
Definition: ListActivitiesResult.h:45
Aws::SFN::Model::ListActivitiesResult::WithNextToken
ListActivitiesResult & WithNextToken(const char *value)
Definition: ListActivitiesResult.h:141
AWSString.h
Aws::SFN::Model::ListActivitiesResult::WithActivities
ListActivitiesResult & WithActivities(const Aws::Vector< ActivityListItem > &value)
Definition: ListActivitiesResult.h:55
Aws::SFN::Model::ListActivitiesResult::WithNextToken
ListActivitiesResult & WithNextToken(const Aws::String &value)
Definition: ListActivitiesResult.h:121
Aws::SFN::Model::ListActivitiesResult::ListActivitiesResult
ListActivitiesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws
Definition: AccessManagementClient.h:15
Aws::SFN::Model::ListActivitiesResult::AddActivities
ListActivitiesResult & AddActivities(ActivityListItem &&value)
Definition: ListActivitiesResult.h:70
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SFN::Model::ListActivitiesResult::WithNextToken
ListActivitiesResult & WithNextToken(Aws::String &&value)
Definition: ListActivitiesResult.h:131
Aws::SFN::Model::ListActivitiesResult::GetActivities
const Aws::Vector< ActivityListItem > & GetActivities() const
Definition: ListActivitiesResult.h:40