AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ListTargetsRequest.h
1
6#pragma once
7#include <aws/codestar-notifications/CodeStarNotificationsRequest.h>
8#include <aws/codestar-notifications/CodeStarNotifications_EXPORTS.h>
9#include <aws/codestar-notifications/model/ListTargetsFilter.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CodeStarNotifications {
17namespace Model {
18
22 public:
23 AWS_CODESTARNOTIFICATIONS_API ListTargetsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "ListTargets"; }
30
31 AWS_CODESTARNOTIFICATIONS_API Aws::String SerializePayload() const override;
32
34
41 inline const Aws::Vector<ListTargetsFilter>& GetFilters() const { return m_filters; }
42 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
43 template <typename FiltersT = Aws::Vector<ListTargetsFilter>>
44 void SetFilters(FiltersT&& value) {
45 m_filtersHasBeenSet = true;
46 m_filters = std::forward<FiltersT>(value);
47 }
48 template <typename FiltersT = Aws::Vector<ListTargetsFilter>>
49 ListTargetsRequest& WithFilters(FiltersT&& value) {
50 SetFilters(std::forward<FiltersT>(value));
51 return *this;
52 }
53 template <typename FiltersT = ListTargetsFilter>
54 ListTargetsRequest& AddFilters(FiltersT&& value) {
55 m_filtersHasBeenSet = true;
56 m_filters.emplace_back(std::forward<FiltersT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::String& GetNextToken() const { return m_nextToken; }
67 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
68 template <typename NextTokenT = Aws::String>
69 void SetNextToken(NextTokenT&& value) {
70 m_nextTokenHasBeenSet = true;
71 m_nextToken = std::forward<NextTokenT>(value);
72 }
73 template <typename NextTokenT = Aws::String>
74 ListTargetsRequest& WithNextToken(NextTokenT&& value) {
75 SetNextToken(std::forward<NextTokenT>(value));
76 return *this;
77 }
79
81
85 inline int GetMaxResults() const { return m_maxResults; }
86 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
87 inline void SetMaxResults(int value) {
88 m_maxResultsHasBeenSet = true;
89 m_maxResults = value;
90 }
92 SetMaxResults(value);
93 return *this;
94 }
96 private:
98
99 Aws::String m_nextToken;
100
101 int m_maxResults{0};
102 bool m_filtersHasBeenSet = false;
103 bool m_nextTokenHasBeenSet = false;
104 bool m_maxResultsHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace CodeStarNotifications
109} // namespace Aws
ListTargetsRequest & AddFilters(FiltersT &&value)
ListTargetsRequest & WithFilters(FiltersT &&value)
ListTargetsRequest & WithNextToken(NextTokenT &&value)
AWS_CODESTARNOTIFICATIONS_API ListTargetsRequest()=default
AWS_CODESTARNOTIFICATIONS_API Aws::String SerializePayload() const override
const Aws::Vector< ListTargetsFilter > & GetFilters() const
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector