AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetInsightSummariesRequest.h
1
6#pragma once
7#include <aws/xray/XRay_EXPORTS.h>
8#include <aws/xray/XRayRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/xray/model/InsightState.h>
13#include <utility>
14
15namespace Aws
16{
17namespace XRay
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_XRAY_API GetInsightSummariesRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "GetInsightSummaries"; }
34
35 AWS_XRAY_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::Vector<InsightState>& GetStates() const { return m_states; }
43 inline bool StatesHasBeenSet() const { return m_statesHasBeenSet; }
44 template<typename StatesT = Aws::Vector<InsightState>>
45 void SetStates(StatesT&& value) { m_statesHasBeenSet = true; m_states = std::forward<StatesT>(value); }
46 template<typename StatesT = Aws::Vector<InsightState>>
47 GetInsightSummariesRequest& WithStates(StatesT&& value) { SetStates(std::forward<StatesT>(value)); return *this;}
48 inline GetInsightSummariesRequest& AddStates(InsightState value) { m_statesHasBeenSet = true; m_states.push_back(value); return *this; }
50
52
56 inline const Aws::String& GetGroupARN() const { return m_groupARN; }
57 inline bool GroupARNHasBeenSet() const { return m_groupARNHasBeenSet; }
58 template<typename GroupARNT = Aws::String>
59 void SetGroupARN(GroupARNT&& value) { m_groupARNHasBeenSet = true; m_groupARN = std::forward<GroupARNT>(value); }
60 template<typename GroupARNT = Aws::String>
61 GetInsightSummariesRequest& WithGroupARN(GroupARNT&& value) { SetGroupARN(std::forward<GroupARNT>(value)); return *this;}
63
65
68 inline const Aws::String& GetGroupName() const { return m_groupName; }
69 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
70 template<typename GroupNameT = Aws::String>
71 void SetGroupName(GroupNameT&& value) { m_groupNameHasBeenSet = true; m_groupName = std::forward<GroupNameT>(value); }
72 template<typename GroupNameT = Aws::String>
73 GetInsightSummariesRequest& WithGroupName(GroupNameT&& value) { SetGroupName(std::forward<GroupNameT>(value)); return *this;}
75
77
81 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
82 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
83 template<typename StartTimeT = Aws::Utils::DateTime>
84 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
85 template<typename StartTimeT = Aws::Utils::DateTime>
86 GetInsightSummariesRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
88
90
94 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
95 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
96 template<typename EndTimeT = Aws::Utils::DateTime>
97 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
98 template<typename EndTimeT = Aws::Utils::DateTime>
99 GetInsightSummariesRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
101
103
106 inline int GetMaxResults() const { return m_maxResults; }
107 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
108 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
109 inline GetInsightSummariesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
111
113
116 inline const Aws::String& GetNextToken() const { return m_nextToken; }
117 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
118 template<typename NextTokenT = Aws::String>
119 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
120 template<typename NextTokenT = Aws::String>
121 GetInsightSummariesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
123 private:
124
126 bool m_statesHasBeenSet = false;
127
128 Aws::String m_groupARN;
129 bool m_groupARNHasBeenSet = false;
130
131 Aws::String m_groupName;
132 bool m_groupNameHasBeenSet = false;
133
134 Aws::Utils::DateTime m_startTime{};
135 bool m_startTimeHasBeenSet = false;
136
137 Aws::Utils::DateTime m_endTime{};
138 bool m_endTimeHasBeenSet = false;
139
140 int m_maxResults{0};
141 bool m_maxResultsHasBeenSet = false;
142
143 Aws::String m_nextToken;
144 bool m_nextTokenHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace XRay
149} // 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
const Aws::Utils::DateTime & GetEndTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector