AWS SDK for C++  1.9.108
AWS SDK for C++
ListCampaignsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Personalize
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "ListCampaigns"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
42  inline const Aws::String& GetSolutionArn() const{ return m_solutionArn; }
43 
49  inline bool SolutionArnHasBeenSet() const { return m_solutionArnHasBeenSet; }
50 
56  inline void SetSolutionArn(const Aws::String& value) { m_solutionArnHasBeenSet = true; m_solutionArn = value; }
57 
63  inline void SetSolutionArn(Aws::String&& value) { m_solutionArnHasBeenSet = true; m_solutionArn = std::move(value); }
64 
70  inline void SetSolutionArn(const char* value) { m_solutionArnHasBeenSet = true; m_solutionArn.assign(value); }
71 
77  inline ListCampaignsRequest& WithSolutionArn(const Aws::String& value) { SetSolutionArn(value); return *this;}
78 
84  inline ListCampaignsRequest& WithSolutionArn(Aws::String&& value) { SetSolutionArn(std::move(value)); return *this;}
85 
91  inline ListCampaignsRequest& WithSolutionArn(const char* value) { SetSolutionArn(value); return *this;}
92 
93 
98  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
99 
104  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
105 
110  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
111 
116  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
117 
122  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
123 
128  inline ListCampaignsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
129 
134  inline ListCampaignsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
135 
140  inline ListCampaignsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
141 
142 
146  inline int GetMaxResults() const{ return m_maxResults; }
147 
151  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
152 
156  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
157 
161  inline ListCampaignsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
162 
163  private:
164 
165  Aws::String m_solutionArn;
166  bool m_solutionArnHasBeenSet;
167 
168  Aws::String m_nextToken;
169  bool m_nextTokenHasBeenSet;
170 
171  int m_maxResults;
172  bool m_maxResultsHasBeenSet;
173  };
174 
175 } // namespace Model
176 } // namespace Personalize
177 } // namespace Aws
Aws::Personalize::Model::ListCampaignsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListCampaignsRequest.h:110
PersonalizeRequest.h
Aws::Personalize::Model::ListCampaignsRequest::WithSolutionArn
ListCampaignsRequest & WithSolutionArn(const Aws::String &value)
Definition: ListCampaignsRequest.h:77
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Personalize::Model::ListCampaignsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Personalize::Model::ListCampaignsRequest::SetSolutionArn
void SetSolutionArn(Aws::String &&value)
Definition: ListCampaignsRequest.h:63
Aws::Personalize::Model::ListCampaignsRequest::SetSolutionArn
void SetSolutionArn(const char *value)
Definition: ListCampaignsRequest.h:70
Aws::Personalize::Model::ListCampaignsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListCampaignsRequest.h:151
Aws::Personalize::Model::ListCampaignsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListCampaignsRequest.h:104
Aws::Personalize::Model::ListCampaignsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListCampaignsRequest.h:98
AWS_PERSONALIZE_API
#define AWS_PERSONALIZE_API
Definition: Personalize_EXPORTS.h:28
Aws::Personalize::Model::ListCampaignsRequest::SetSolutionArn
void SetSolutionArn(const Aws::String &value)
Definition: ListCampaignsRequest.h:56
Aws::Personalize::Model::ListCampaignsRequest::WithNextToken
ListCampaignsRequest & WithNextToken(const Aws::String &value)
Definition: ListCampaignsRequest.h:128
Aws::Personalize::Model::ListCampaignsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListCampaignsRequest.h:156
Aws::Personalize::Model::ListCampaignsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Personalize::Model::ListCampaignsRequest::WithNextToken
ListCampaignsRequest & WithNextToken(const char *value)
Definition: ListCampaignsRequest.h:140
Aws::Personalize::Model::ListCampaignsRequest::WithSolutionArn
ListCampaignsRequest & WithSolutionArn(const char *value)
Definition: ListCampaignsRequest.h:91
Aws::Personalize::Model::ListCampaignsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListCampaignsRequest.h:30
Aws::Personalize::Model::ListCampaignsRequest::WithSolutionArn
ListCampaignsRequest & WithSolutionArn(Aws::String &&value)
Definition: ListCampaignsRequest.h:84
AWSString.h
Aws::Personalize::PersonalizeRequest
Definition: PersonalizeRequest.h:17
Aws::Personalize::Model::ListCampaignsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListCampaignsRequest.h:122
Aws::Personalize::Model::ListCampaignsRequest::WithMaxResults
ListCampaignsRequest & WithMaxResults(int value)
Definition: ListCampaignsRequest.h:161
Aws::Personalize::Model::ListCampaignsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListCampaignsRequest.h:116
Aws::Personalize::Model::ListCampaignsRequest::WithNextToken
ListCampaignsRequest & WithNextToken(Aws::String &&value)
Definition: ListCampaignsRequest.h:134
Aws::Personalize::Model::ListCampaignsRequest
Definition: ListCampaignsRequest.h:22
Aws
Definition: AccessManagementClient.h:15
Aws::Personalize::Model::ListCampaignsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListCampaignsRequest.h:146
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Personalize_EXPORTS.h
Aws::Personalize::Model::ListCampaignsRequest::GetSolutionArn
const Aws::String & GetSolutionArn() const
Definition: ListCampaignsRequest.h:42
Aws::Personalize::Model::ListCampaignsRequest::SolutionArnHasBeenSet
bool SolutionArnHasBeenSet() const
Definition: ListCampaignsRequest.h:49
Aws::Personalize::Model::ListCampaignsRequest::ListCampaignsRequest
ListCampaignsRequest()