AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListCampaignsRequest.h
1
6#pragma once
7#include <aws/connectcampaigns/ConnectCampaigns_EXPORTS.h>
8#include <aws/connectcampaigns/ConnectCampaignsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/connectcampaigns/model/CampaignFilters.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ConnectCampaigns
16{
17namespace Model
18{
19
26 {
27 public:
28 AWS_CONNECTCAMPAIGNS_API ListCampaignsRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ListCampaigns"; }
35
36 AWS_CONNECTCAMPAIGNS_API Aws::String SerializePayload() const override;
37
38
40
41 inline int GetMaxResults() const{ return m_maxResults; }
42 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
43 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
44 inline ListCampaignsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
46
48
49 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
50 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
51 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
52 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
53 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
54 inline ListCampaignsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
55 inline ListCampaignsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
56 inline ListCampaignsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
58
60
61 inline const CampaignFilters& GetFilters() const{ return m_filters; }
62 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
63 inline void SetFilters(const CampaignFilters& value) { m_filtersHasBeenSet = true; m_filters = value; }
64 inline void SetFilters(CampaignFilters&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
65 inline ListCampaignsRequest& WithFilters(const CampaignFilters& value) { SetFilters(value); return *this;}
66 inline ListCampaignsRequest& WithFilters(CampaignFilters&& value) { SetFilters(std::move(value)); return *this;}
68 private:
69
70 int m_maxResults;
71 bool m_maxResultsHasBeenSet = false;
72
73 Aws::String m_nextToken;
74 bool m_nextTokenHasBeenSet = false;
75
76 CampaignFilters m_filters;
77 bool m_filtersHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace ConnectCampaigns
82} // namespace Aws
ListCampaignsRequest & WithFilters(CampaignFilters &&value)
ListCampaignsRequest & WithNextToken(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
AWS_CONNECTCAMPAIGNS_API Aws::String SerializePayload() const override
ListCampaignsRequest & WithFilters(const CampaignFilters &value)
ListCampaignsRequest & WithNextToken(const char *value)
ListCampaignsRequest & WithNextToken(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String