AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DescribeEventsRequest.h
1
6#pragma once
7#include <aws/dax/DAX_EXPORTS.h>
8#include <aws/dax/DAXRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/dax/model/SourceType.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace DAX
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_DAX_API DescribeEventsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "DescribeEvents"; }
33
34 AWS_DAX_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetSourceName() const { return m_sourceName; }
45 inline bool SourceNameHasBeenSet() const { return m_sourceNameHasBeenSet; }
46 template<typename SourceNameT = Aws::String>
47 void SetSourceName(SourceNameT&& value) { m_sourceNameHasBeenSet = true; m_sourceName = std::forward<SourceNameT>(value); }
48 template<typename SourceNameT = Aws::String>
49 DescribeEventsRequest& WithSourceName(SourceNameT&& value) { SetSourceName(std::forward<SourceNameT>(value)); return *this;}
51
53
57 inline SourceType GetSourceType() const { return m_sourceType; }
58 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
59 inline void SetSourceType(SourceType value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
60 inline DescribeEventsRequest& WithSourceType(SourceType value) { SetSourceType(value); return *this;}
62
64
68 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
69 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
70 template<typename StartTimeT = Aws::Utils::DateTime>
71 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
72 template<typename StartTimeT = Aws::Utils::DateTime>
73 DescribeEventsRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
75
77
81 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
82 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
83 template<typename EndTimeT = Aws::Utils::DateTime>
84 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
85 template<typename EndTimeT = Aws::Utils::DateTime>
86 DescribeEventsRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
88
90
93 inline int GetDuration() const { return m_duration; }
94 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
95 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
96 inline DescribeEventsRequest& WithDuration(int value) { SetDuration(value); return *this;}
98
100
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 DescribeEventsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
111
113
119 inline const Aws::String& GetNextToken() const { return m_nextToken; }
120 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
121 template<typename NextTokenT = Aws::String>
122 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
123 template<typename NextTokenT = Aws::String>
124 DescribeEventsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
126 private:
127
128 Aws::String m_sourceName;
129 bool m_sourceNameHasBeenSet = false;
130
131 SourceType m_sourceType{SourceType::NOT_SET};
132 bool m_sourceTypeHasBeenSet = 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_duration{0};
141 bool m_durationHasBeenSet = false;
142
143 int m_maxResults{0};
144 bool m_maxResultsHasBeenSet = false;
145
146 Aws::String m_nextToken;
147 bool m_nextTokenHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace DAX
152} // namespace Aws
AWS_DAX_API DescribeEventsRequest()=default
virtual const char * GetServiceRequestName() const override
DescribeEventsRequest & WithSourceType(SourceType value)
const Aws::Utils::DateTime & GetEndTime() const
DescribeEventsRequest & WithStartTime(StartTimeT &&value)
DescribeEventsRequest & WithMaxResults(int value)
DescribeEventsRequest & WithSourceName(SourceNameT &&value)
DescribeEventsRequest & WithDuration(int value)
DescribeEventsRequest & WithEndTime(EndTimeT &&value)
const Aws::Utils::DateTime & GetStartTime() const
DescribeEventsRequest & WithNextToken(NextTokenT &&value)
AWS_DAX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_DAX_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String