AWS SDK for C++

AWS SDK for C++ Version 1.11.741

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