AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename NextTokenT = Aws::String>
52 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
53 template<typename NextTokenT = Aws::String>
54 ListCampaignsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
56
58
59 inline const CampaignFilters& GetFilters() const { return m_filters; }
60 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
61 template<typename FiltersT = CampaignFilters>
62 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
63 template<typename FiltersT = CampaignFilters>
64 ListCampaignsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
66 private:
67
68 int m_maxResults{0};
69 bool m_maxResultsHasBeenSet = false;
70
71 Aws::String m_nextToken;
72 bool m_nextTokenHasBeenSet = false;
73
74 CampaignFilters m_filters;
75 bool m_filtersHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace ConnectCampaigns
80} // 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