AWS SDK for C++  1.9.108
AWS SDK for C++
ListCampaignsResult.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 Personalize
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<CampaignSummary>& GetCampaigns() const{ return m_campaigns; }
41 
45  inline void SetCampaigns(const Aws::Vector<CampaignSummary>& value) { m_campaigns = value; }
46 
50  inline void SetCampaigns(Aws::Vector<CampaignSummary>&& value) { m_campaigns = std::move(value); }
51 
55  inline ListCampaignsResult& WithCampaigns(const Aws::Vector<CampaignSummary>& value) { SetCampaigns(value); return *this;}
56 
60  inline ListCampaignsResult& WithCampaigns(Aws::Vector<CampaignSummary>&& value) { SetCampaigns(std::move(value)); return *this;}
61 
65  inline ListCampaignsResult& AddCampaigns(const CampaignSummary& value) { m_campaigns.push_back(value); return *this; }
66 
70  inline ListCampaignsResult& AddCampaigns(CampaignSummary&& value) { m_campaigns.push_back(std::move(value)); return *this; }
71 
72 
76  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
77 
81  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
82 
86  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
87 
91  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
92 
96  inline ListCampaignsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
97 
101  inline ListCampaignsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
102 
106  inline ListCampaignsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
107 
108  private:
109 
110  Aws::Vector<CampaignSummary> m_campaigns;
111 
112  Aws::String m_nextToken;
113  };
114 
115 } // namespace Model
116 } // namespace Personalize
117 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Personalize::Model::ListCampaignsResult::SetCampaigns
void SetCampaigns(Aws::Vector< CampaignSummary > &&value)
Definition: ListCampaignsResult.h:50
Aws::Personalize::Model::ListCampaignsResult::ListCampaignsResult
ListCampaignsResult()
Aws::Personalize::Model::ListCampaignsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListCampaignsResult.h:76
CampaignSummary.h
Aws::Personalize::Model::CampaignSummary
Definition: CampaignSummary.h:34
Aws::Personalize::Model::ListCampaignsResult
Definition: ListCampaignsResult.h:30
AWS_PERSONALIZE_API
#define AWS_PERSONALIZE_API
Definition: Personalize_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Personalize::Model::ListCampaignsResult::operator=
ListCampaignsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSVector.h
Aws::Personalize::Model::ListCampaignsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListCampaignsResult.h:81
Aws::Personalize::Model::ListCampaignsResult::WithNextToken
ListCampaignsResult & WithNextToken(Aws::String &&value)
Definition: ListCampaignsResult.h:101
Aws::Personalize::Model::ListCampaignsResult::AddCampaigns
ListCampaignsResult & AddCampaigns(CampaignSummary &&value)
Definition: ListCampaignsResult.h:70
Aws::Personalize::Model::ListCampaignsResult::WithCampaigns
ListCampaignsResult & WithCampaigns(Aws::Vector< CampaignSummary > &&value)
Definition: ListCampaignsResult.h:60
Aws::Personalize::Model::ListCampaignsResult::WithNextToken
ListCampaignsResult & WithNextToken(const Aws::String &value)
Definition: ListCampaignsResult.h:96
AWSString.h
Aws::Personalize::Model::ListCampaignsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListCampaignsResult.h:91
Aws::Personalize::Model::ListCampaignsResult::WithCampaigns
ListCampaignsResult & WithCampaigns(const Aws::Vector< CampaignSummary > &value)
Definition: ListCampaignsResult.h:55
Aws::Personalize::Model::ListCampaignsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListCampaignsResult.h:86
Aws::Personalize::Model::ListCampaignsResult::AddCampaigns
ListCampaignsResult & AddCampaigns(const CampaignSummary &value)
Definition: ListCampaignsResult.h:65
Aws::Personalize::Model::ListCampaignsResult::GetCampaigns
const Aws::Vector< CampaignSummary > & GetCampaigns() const
Definition: ListCampaignsResult.h:40
Aws::Personalize::Model::ListCampaignsResult::SetCampaigns
void SetCampaigns(const Aws::Vector< CampaignSummary > &value)
Definition: ListCampaignsResult.h:45
Aws
Definition: AccessManagementClient.h:15
Aws::Personalize::Model::ListCampaignsResult::WithNextToken
ListCampaignsResult & WithNextToken(const char *value)
Definition: ListCampaignsResult.h:106
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Personalize::Model::ListCampaignsResult::ListCampaignsResult
ListCampaignsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Personalize_EXPORTS.h