AWS SDK for C++

AWS SDK for C++ Version 1.11.678

Loading...
Searching...
No Matches
GetInsightSummariesRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/xray/XRayRequest.h>
11#include <aws/xray/XRay_EXPORTS.h>
12#include <aws/xray/model/InsightState.h>
13
14#include <utility>
15
16namespace Aws {
17namespace XRay {
18namespace Model {
19
23 public:
24 AWS_XRAY_API GetInsightSummariesRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "GetInsightSummaries"; }
31
32 AWS_XRAY_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::Vector<InsightState>& GetStates() const { return m_states; }
39 inline bool StatesHasBeenSet() const { return m_statesHasBeenSet; }
40 template <typename StatesT = Aws::Vector<InsightState>>
41 void SetStates(StatesT&& value) {
42 m_statesHasBeenSet = true;
43 m_states = std::forward<StatesT>(value);
44 }
45 template <typename StatesT = Aws::Vector<InsightState>>
47 SetStates(std::forward<StatesT>(value));
48 return *this;
49 }
51 m_statesHasBeenSet = true;
52 m_states.push_back(value);
53 return *this;
54 }
56
58
62 inline const Aws::String& GetGroupARN() const { return m_groupARN; }
63 inline bool GroupARNHasBeenSet() const { return m_groupARNHasBeenSet; }
64 template <typename GroupARNT = Aws::String>
65 void SetGroupARN(GroupARNT&& value) {
66 m_groupARNHasBeenSet = true;
67 m_groupARN = std::forward<GroupARNT>(value);
68 }
69 template <typename GroupARNT = Aws::String>
71 SetGroupARN(std::forward<GroupARNT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetGroupName() const { return m_groupName; }
81 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
82 template <typename GroupNameT = Aws::String>
83 void SetGroupName(GroupNameT&& value) {
84 m_groupNameHasBeenSet = true;
85 m_groupName = std::forward<GroupNameT>(value);
86 }
87 template <typename GroupNameT = Aws::String>
89 SetGroupName(std::forward<GroupNameT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
100 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
101 template <typename StartTimeT = Aws::Utils::DateTime>
102 void SetStartTime(StartTimeT&& value) {
103 m_startTimeHasBeenSet = true;
104 m_startTime = std::forward<StartTimeT>(value);
105 }
106 template <typename StartTimeT = Aws::Utils::DateTime>
108 SetStartTime(std::forward<StartTimeT>(value));
109 return *this;
110 }
112
114
118 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
119 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
120 template <typename EndTimeT = Aws::Utils::DateTime>
121 void SetEndTime(EndTimeT&& value) {
122 m_endTimeHasBeenSet = true;
123 m_endTime = std::forward<EndTimeT>(value);
124 }
125 template <typename EndTimeT = Aws::Utils::DateTime>
127 SetEndTime(std::forward<EndTimeT>(value));
128 return *this;
129 }
131
133
136 inline int GetMaxResults() const { return m_maxResults; }
137 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
138 inline void SetMaxResults(int value) {
139 m_maxResultsHasBeenSet = true;
140 m_maxResults = value;
141 }
143 SetMaxResults(value);
144 return *this;
145 }
147
149
152 inline const Aws::String& GetNextToken() const { return m_nextToken; }
153 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
154 template <typename NextTokenT = Aws::String>
155 void SetNextToken(NextTokenT&& value) {
156 m_nextTokenHasBeenSet = true;
157 m_nextToken = std::forward<NextTokenT>(value);
158 }
159 template <typename NextTokenT = Aws::String>
161 SetNextToken(std::forward<NextTokenT>(value));
162 return *this;
163 }
165 private:
167 bool m_statesHasBeenSet = false;
168
169 Aws::String m_groupARN;
170 bool m_groupARNHasBeenSet = false;
171
172 Aws::String m_groupName;
173 bool m_groupNameHasBeenSet = false;
174
175 Aws::Utils::DateTime m_startTime{};
176 bool m_startTimeHasBeenSet = false;
177
178 Aws::Utils::DateTime m_endTime{};
179 bool m_endTimeHasBeenSet = false;
180
181 int m_maxResults{0};
182 bool m_maxResultsHasBeenSet = false;
183
184 Aws::String m_nextToken;
185 bool m_nextTokenHasBeenSet = false;
186};
187
188} // namespace Model
189} // namespace XRay
190} // namespace Aws
GetInsightSummariesRequest & WithGroupARN(GroupARNT &&value)
const Aws::Utils::DateTime & GetStartTime() const
GetInsightSummariesRequest & AddStates(InsightState value)
GetInsightSummariesRequest & WithNextToken(NextTokenT &&value)
GetInsightSummariesRequest & WithMaxResults(int value)
AWS_XRAY_API Aws::String SerializePayload() const override
const Aws::Vector< InsightState > & GetStates() const
GetInsightSummariesRequest & WithStartTime(StartTimeT &&value)
AWS_XRAY_API GetInsightSummariesRequest()=default
GetInsightSummariesRequest & WithGroupName(GroupNameT &&value)
GetInsightSummariesRequest & WithStates(StatesT &&value)
GetInsightSummariesRequest & WithEndTime(EndTimeT &&value)
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