AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ListTimelineEventsRequest.h
1
6#pragma once
7#include <aws/ssm-incidents/SSMIncidents_EXPORTS.h>
8#include <aws/ssm-incidents/SSMIncidentsRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ssm-incidents/model/TimelineEventSort.h>
12#include <aws/ssm-incidents/model/SortOrder.h>
13#include <aws/ssm-incidents/model/Filter.h>
14#include <utility>
15
16namespace Aws
17{
18namespace SSMIncidents
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_SSMINCIDENTS_API ListTimelineEventsRequest() = default;
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 "ListTimelineEvents"; }
35
36 AWS_SSMINCIDENTS_API Aws::String SerializePayload() const override;
37
38
40
52 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
53 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
54 template<typename FiltersT = Aws::Vector<Filter>>
55 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
56 template<typename FiltersT = Aws::Vector<Filter>>
57 ListTimelineEventsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
58 template<typename FiltersT = Filter>
59 ListTimelineEventsRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
61
63
67 inline const Aws::String& GetIncidentRecordArn() const { return m_incidentRecordArn; }
68 inline bool IncidentRecordArnHasBeenSet() const { return m_incidentRecordArnHasBeenSet; }
69 template<typename IncidentRecordArnT = Aws::String>
70 void SetIncidentRecordArn(IncidentRecordArnT&& value) { m_incidentRecordArnHasBeenSet = true; m_incidentRecordArn = std::forward<IncidentRecordArnT>(value); }
71 template<typename IncidentRecordArnT = Aws::String>
72 ListTimelineEventsRequest& WithIncidentRecordArn(IncidentRecordArnT&& value) { SetIncidentRecordArn(std::forward<IncidentRecordArnT>(value)); return *this;}
74
76
79 inline int GetMaxResults() const { return m_maxResults; }
80 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
81 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
82 inline ListTimelineEventsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
84
86
90 inline const Aws::String& GetNextToken() const { return m_nextToken; }
91 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
92 template<typename NextTokenT = Aws::String>
93 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
94 template<typename NextTokenT = Aws::String>
95 ListTimelineEventsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
97
99
102 inline TimelineEventSort GetSortBy() const { return m_sortBy; }
103 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
104 inline void SetSortBy(TimelineEventSort value) { m_sortByHasBeenSet = true; m_sortBy = value; }
105 inline ListTimelineEventsRequest& WithSortBy(TimelineEventSort value) { SetSortBy(value); return *this;}
107
109
113 inline SortOrder GetSortOrder() const { return m_sortOrder; }
114 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
115 inline void SetSortOrder(SortOrder value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
116 inline ListTimelineEventsRequest& WithSortOrder(SortOrder value) { SetSortOrder(value); return *this;}
118 private:
119
120 Aws::Vector<Filter> m_filters;
121 bool m_filtersHasBeenSet = false;
122
123 Aws::String m_incidentRecordArn;
124 bool m_incidentRecordArnHasBeenSet = false;
125
126 int m_maxResults{0};
127 bool m_maxResultsHasBeenSet = false;
128
129 Aws::String m_nextToken;
130 bool m_nextTokenHasBeenSet = false;
131
133 bool m_sortByHasBeenSet = false;
134
135 SortOrder m_sortOrder{SortOrder::NOT_SET};
136 bool m_sortOrderHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace SSMIncidents
141} // namespace Aws
ListTimelineEventsRequest & WithNextToken(NextTokenT &&value)
ListTimelineEventsRequest & WithSortBy(TimelineEventSort value)
AWS_SSMINCIDENTS_API Aws::String SerializePayload() const override
ListTimelineEventsRequest & WithSortOrder(SortOrder value)
ListTimelineEventsRequest & AddFilters(FiltersT &&value)
ListTimelineEventsRequest & WithIncidentRecordArn(IncidentRecordArnT &&value)
virtual const char * GetServiceRequestName() const override
AWS_SSMINCIDENTS_API ListTimelineEventsRequest()=default
ListTimelineEventsRequest & WithFilters(FiltersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector