AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListRecommendationsRequest.h
1
6#pragma once
7#include <aws/sesv2/SESV2_EXPORTS.h>
8#include <aws/sesv2/SESV2Request.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/sesv2/model/ListRecommendationsFilterKey.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SESV2
17{
18namespace Model
19{
20
28 {
29 public:
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "ListRecommendations"; }
37
38 AWS_SESV2_API Aws::String SerializePayload() const override;
39
40
42
47 inline const Aws::Map<ListRecommendationsFilterKey, Aws::String>& GetFilter() const{ return m_filter; }
48 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
49 inline void SetFilter(const Aws::Map<ListRecommendationsFilterKey, Aws::String>& value) { m_filterHasBeenSet = true; m_filter = value; }
50 inline void SetFilter(Aws::Map<ListRecommendationsFilterKey, Aws::String>&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
53 inline ListRecommendationsRequest& AddFilter(const ListRecommendationsFilterKey& key, const Aws::String& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
54 inline ListRecommendationsRequest& AddFilter(ListRecommendationsFilterKey&& key, const Aws::String& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), value); return *this; }
55 inline ListRecommendationsRequest& AddFilter(const ListRecommendationsFilterKey& key, Aws::String&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; }
56 inline ListRecommendationsRequest& AddFilter(ListRecommendationsFilterKey&& key, Aws::String&& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), std::move(value)); return *this; }
57 inline ListRecommendationsRequest& AddFilter(ListRecommendationsFilterKey&& key, const char* value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), value); return *this; }
58 inline ListRecommendationsRequest& AddFilter(const ListRecommendationsFilterKey& key, const char* value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
60
62
66 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
67 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
68 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
69 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
70 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
71 inline ListRecommendationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
72 inline ListRecommendationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
73 inline ListRecommendationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
75
77
85 inline int GetPageSize() const{ return m_pageSize; }
86 inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; }
87 inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; }
88 inline ListRecommendationsRequest& WithPageSize(int value) { SetPageSize(value); return *this;}
90 private:
91
93 bool m_filterHasBeenSet = false;
94
95 Aws::String m_nextToken;
96 bool m_nextTokenHasBeenSet = false;
97
98 int m_pageSize;
99 bool m_pageSizeHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace SESV2
104} // namespace Aws
ListRecommendationsRequest & AddFilter(const ListRecommendationsFilterKey &key, Aws::String &&value)
ListRecommendationsRequest & AddFilter(const ListRecommendationsFilterKey &key, const char *value)
const Aws::Map< ListRecommendationsFilterKey, Aws::String > & GetFilter() const
ListRecommendationsRequest & WithNextToken(Aws::String &&value)
ListRecommendationsRequest & AddFilter(const ListRecommendationsFilterKey &key, const Aws::String &value)
ListRecommendationsRequest & WithFilter(const Aws::Map< ListRecommendationsFilterKey, Aws::String > &value)
ListRecommendationsRequest & AddFilter(ListRecommendationsFilterKey &&key, const char *value)
ListRecommendationsRequest & WithNextToken(const char *value)
ListRecommendationsRequest & AddFilter(ListRecommendationsFilterKey &&key, Aws::String &&value)
AWS_SESV2_API Aws::String SerializePayload() const override
ListRecommendationsRequest & AddFilter(ListRecommendationsFilterKey &&key, const Aws::String &value)
ListRecommendationsRequest & WithFilter(Aws::Map< ListRecommendationsFilterKey, Aws::String > &&value)
ListRecommendationsRequest & WithNextToken(const Aws::String &value)
void SetFilter(Aws::Map< ListRecommendationsFilterKey, Aws::String > &&value)
ListRecommendationsRequest & WithPageSize(int value)
virtual const char * GetServiceRequestName() const override
void SetFilter(const Aws::Map< ListRecommendationsFilterKey, Aws::String > &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String