AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ListInsightsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/eks/EKSRequest.h>
9#include <aws/eks/EKS_EXPORTS.h>
10#include <aws/eks/model/InsightsFilter.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EKS {
16namespace Model {
17
21 public:
22 AWS_EKS_API ListInsightsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ListInsights"; }
29
30 AWS_EKS_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetClusterName() const { return m_clusterName; }
37 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
38 template <typename ClusterNameT = Aws::String>
39 void SetClusterName(ClusterNameT&& value) {
40 m_clusterNameHasBeenSet = true;
41 m_clusterName = std::forward<ClusterNameT>(value);
42 }
43 template <typename ClusterNameT = Aws::String>
44 ListInsightsRequest& WithClusterName(ClusterNameT&& value) {
45 SetClusterName(std::forward<ClusterNameT>(value));
46 return *this;
47 }
49
51
56 inline const InsightsFilter& GetFilter() const { return m_filter; }
57 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
58 template <typename FilterT = InsightsFilter>
59 void SetFilter(FilterT&& value) {
60 m_filterHasBeenSet = true;
61 m_filter = std::forward<FilterT>(value);
62 }
63 template <typename FilterT = InsightsFilter>
64 ListInsightsRequest& WithFilter(FilterT&& value) {
65 SetFilter(std::forward<FilterT>(value));
66 return *this;
67 }
69
71
82 inline int GetMaxResults() const { return m_maxResults; }
83 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
84 inline void SetMaxResults(int value) {
85 m_maxResultsHasBeenSet = true;
86 m_maxResults = value;
87 }
89 SetMaxResults(value);
90 return *this;
91 }
93
95
102 inline const Aws::String& GetNextToken() const { return m_nextToken; }
103 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
104 template <typename NextTokenT = Aws::String>
105 void SetNextToken(NextTokenT&& value) {
106 m_nextTokenHasBeenSet = true;
107 m_nextToken = std::forward<NextTokenT>(value);
108 }
109 template <typename NextTokenT = Aws::String>
110 ListInsightsRequest& WithNextToken(NextTokenT&& value) {
111 SetNextToken(std::forward<NextTokenT>(value));
112 return *this;
113 }
115 private:
116 Aws::String m_clusterName;
117
118 InsightsFilter m_filter;
119
120 int m_maxResults{0};
121
122 Aws::String m_nextToken;
123 bool m_clusterNameHasBeenSet = false;
124 bool m_filterHasBeenSet = false;
125 bool m_maxResultsHasBeenSet = false;
126 bool m_nextTokenHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace EKS
131} // namespace Aws
const Aws::String & GetClusterName() const
virtual const char * GetServiceRequestName() const override
AWS_EKS_API ListInsightsRequest()=default
ListInsightsRequest & WithNextToken(NextTokenT &&value)
void SetClusterName(ClusterNameT &&value)
const InsightsFilter & GetFilter() const
const Aws::String & GetNextToken() const
ListInsightsRequest & WithFilter(FilterT &&value)
ListInsightsRequest & WithMaxResults(int value)
AWS_EKS_API Aws::String SerializePayload() const override
ListInsightsRequest & WithClusterName(ClusterNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String