AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartQueryRequest.h
1
6#pragma once
7#include <aws/internetmonitor/InternetMonitor_EXPORTS.h>
8#include <aws/internetmonitor/InternetMonitorRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/internetmonitor/model/QueryType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/internetmonitor/model/FilterParameter.h>
14#include <utility>
15
16namespace Aws
17{
18namespace InternetMonitor
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_INTERNETMONITOR_API StartQueryRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "StartQuery"; }
35
36 AWS_INTERNETMONITOR_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetMonitorName() const{ return m_monitorName; }
44 inline bool MonitorNameHasBeenSet() const { return m_monitorNameHasBeenSet; }
45 inline void SetMonitorName(const Aws::String& value) { m_monitorNameHasBeenSet = true; m_monitorName = value; }
46 inline void SetMonitorName(Aws::String&& value) { m_monitorNameHasBeenSet = true; m_monitorName = std::move(value); }
47 inline void SetMonitorName(const char* value) { m_monitorNameHasBeenSet = true; m_monitorName.assign(value); }
48 inline StartQueryRequest& WithMonitorName(const Aws::String& value) { SetMonitorName(value); return *this;}
49 inline StartQueryRequest& WithMonitorName(Aws::String&& value) { SetMonitorName(std::move(value)); return *this;}
50 inline StartQueryRequest& WithMonitorName(const char* value) { SetMonitorName(value); return *this;}
52
54
58 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
59 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
60 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
61 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
62 inline StartQueryRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
63 inline StartQueryRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
65
67
71 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
72 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
73 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
74 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
75 inline StartQueryRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
76 inline StartQueryRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
78
80
102 inline const QueryType& GetQueryType() const{ return m_queryType; }
103 inline bool QueryTypeHasBeenSet() const { return m_queryTypeHasBeenSet; }
104 inline void SetQueryType(const QueryType& value) { m_queryTypeHasBeenSet = true; m_queryType = value; }
105 inline void SetQueryType(QueryType&& value) { m_queryTypeHasBeenSet = true; m_queryType = std::move(value); }
106 inline StartQueryRequest& WithQueryType(const QueryType& value) { SetQueryType(value); return *this;}
107 inline StartQueryRequest& WithQueryType(QueryType&& value) { SetQueryType(std::move(value)); return *this;}
109
111
121 inline const Aws::Vector<FilterParameter>& GetFilterParameters() const{ return m_filterParameters; }
122 inline bool FilterParametersHasBeenSet() const { return m_filterParametersHasBeenSet; }
123 inline void SetFilterParameters(const Aws::Vector<FilterParameter>& value) { m_filterParametersHasBeenSet = true; m_filterParameters = value; }
124 inline void SetFilterParameters(Aws::Vector<FilterParameter>&& value) { m_filterParametersHasBeenSet = true; m_filterParameters = std::move(value); }
127 inline StartQueryRequest& AddFilterParameters(const FilterParameter& value) { m_filterParametersHasBeenSet = true; m_filterParameters.push_back(value); return *this; }
128 inline StartQueryRequest& AddFilterParameters(FilterParameter&& value) { m_filterParametersHasBeenSet = true; m_filterParameters.push_back(std::move(value)); return *this; }
130
132
140 inline const Aws::String& GetLinkedAccountId() const{ return m_linkedAccountId; }
141 inline bool LinkedAccountIdHasBeenSet() const { return m_linkedAccountIdHasBeenSet; }
142 inline void SetLinkedAccountId(const Aws::String& value) { m_linkedAccountIdHasBeenSet = true; m_linkedAccountId = value; }
143 inline void SetLinkedAccountId(Aws::String&& value) { m_linkedAccountIdHasBeenSet = true; m_linkedAccountId = std::move(value); }
144 inline void SetLinkedAccountId(const char* value) { m_linkedAccountIdHasBeenSet = true; m_linkedAccountId.assign(value); }
145 inline StartQueryRequest& WithLinkedAccountId(const Aws::String& value) { SetLinkedAccountId(value); return *this;}
146 inline StartQueryRequest& WithLinkedAccountId(Aws::String&& value) { SetLinkedAccountId(std::move(value)); return *this;}
147 inline StartQueryRequest& WithLinkedAccountId(const char* value) { SetLinkedAccountId(value); return *this;}
149 private:
150
151 Aws::String m_monitorName;
152 bool m_monitorNameHasBeenSet = false;
153
154 Aws::Utils::DateTime m_startTime;
155 bool m_startTimeHasBeenSet = false;
156
157 Aws::Utils::DateTime m_endTime;
158 bool m_endTimeHasBeenSet = false;
159
160 QueryType m_queryType;
161 bool m_queryTypeHasBeenSet = false;
162
163 Aws::Vector<FilterParameter> m_filterParameters;
164 bool m_filterParametersHasBeenSet = false;
165
166 Aws::String m_linkedAccountId;
167 bool m_linkedAccountIdHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace InternetMonitor
172} // namespace Aws
StartQueryRequest & WithQueryType(const QueryType &value)
void SetLinkedAccountId(const Aws::String &value)
StartQueryRequest & WithEndTime(Aws::Utils::DateTime &&value)
void SetEndTime(Aws::Utils::DateTime &&value)
const Aws::Vector< FilterParameter > & GetFilterParameters() const
void SetStartTime(Aws::Utils::DateTime &&value)
virtual const char * GetServiceRequestName() const override
StartQueryRequest & AddFilterParameters(const FilterParameter &value)
AWS_INTERNETMONITOR_API Aws::String SerializePayload() const override
void SetStartTime(const Aws::Utils::DateTime &value)
StartQueryRequest & WithStartTime(const Aws::Utils::DateTime &value)
StartQueryRequest & WithLinkedAccountId(const char *value)
void SetFilterParameters(Aws::Vector< FilterParameter > &&value)
void SetEndTime(const Aws::Utils::DateTime &value)
StartQueryRequest & WithQueryType(QueryType &&value)
StartQueryRequest & AddFilterParameters(FilterParameter &&value)
StartQueryRequest & WithStartTime(Aws::Utils::DateTime &&value)
StartQueryRequest & WithFilterParameters(const Aws::Vector< FilterParameter > &value)
StartQueryRequest & WithLinkedAccountId(const Aws::String &value)
StartQueryRequest & WithEndTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetEndTime() const
void SetMonitorName(const Aws::String &value)
StartQueryRequest & WithMonitorName(Aws::String &&value)
StartQueryRequest & WithMonitorName(const char *value)
StartQueryRequest & WithFilterParameters(Aws::Vector< FilterParameter > &&value)
StartQueryRequest & WithMonitorName(const Aws::String &value)
void SetFilterParameters(const Aws::Vector< FilterParameter > &value)
StartQueryRequest & WithLinkedAccountId(Aws::String &&value)
const Aws::Utils::DateTime & GetStartTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector