AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
55 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
56 inline ListTimelineEventsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
57 inline ListTimelineEventsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
58 inline ListTimelineEventsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
59 inline ListTimelineEventsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
61
63
67 inline const Aws::String& GetIncidentRecordArn() const{ return m_incidentRecordArn; }
68 inline bool IncidentRecordArnHasBeenSet() const { return m_incidentRecordArnHasBeenSet; }
69 inline void SetIncidentRecordArn(const Aws::String& value) { m_incidentRecordArnHasBeenSet = true; m_incidentRecordArn = value; }
70 inline void SetIncidentRecordArn(Aws::String&& value) { m_incidentRecordArnHasBeenSet = true; m_incidentRecordArn = std::move(value); }
71 inline void SetIncidentRecordArn(const char* value) { m_incidentRecordArnHasBeenSet = true; m_incidentRecordArn.assign(value); }
73 inline ListTimelineEventsRequest& WithIncidentRecordArn(Aws::String&& value) { SetIncidentRecordArn(std::move(value)); return *this;}
74 inline ListTimelineEventsRequest& WithIncidentRecordArn(const char* value) { SetIncidentRecordArn(value); return *this;}
76
78
81 inline int GetMaxResults() const{ return m_maxResults; }
82 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
83 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
84 inline ListTimelineEventsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
86
88
92 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
93 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
94 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
95 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
96 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
97 inline ListTimelineEventsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
98 inline ListTimelineEventsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
99 inline ListTimelineEventsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
101
103
106 inline const TimelineEventSort& GetSortBy() const{ return m_sortBy; }
107 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
108 inline void SetSortBy(const TimelineEventSort& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
109 inline void SetSortBy(TimelineEventSort&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
110 inline ListTimelineEventsRequest& WithSortBy(const TimelineEventSort& value) { SetSortBy(value); return *this;}
111 inline ListTimelineEventsRequest& WithSortBy(TimelineEventSort&& value) { SetSortBy(std::move(value)); return *this;}
113
115
119 inline const SortOrder& GetSortOrder() const{ return m_sortOrder; }
120 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
121 inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
122 inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
123 inline ListTimelineEventsRequest& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;}
124 inline ListTimelineEventsRequest& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;}
126 private:
127
128 Aws::Vector<Filter> m_filters;
129 bool m_filtersHasBeenSet = false;
130
131 Aws::String m_incidentRecordArn;
132 bool m_incidentRecordArnHasBeenSet = false;
133
134 int m_maxResults;
135 bool m_maxResultsHasBeenSet = false;
136
137 Aws::String m_nextToken;
138 bool m_nextTokenHasBeenSet = false;
139
140 TimelineEventSort m_sortBy;
141 bool m_sortByHasBeenSet = false;
142
143 SortOrder m_sortOrder;
144 bool m_sortOrderHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace SSMIncidents
149} // namespace Aws
ListTimelineEventsRequest & WithNextToken(Aws::String &&value)
ListTimelineEventsRequest & WithSortBy(const TimelineEventSort &value)
ListTimelineEventsRequest & WithSortOrder(const SortOrder &value)
ListTimelineEventsRequest & WithFilters(const Aws::Vector< Filter > &value)
ListTimelineEventsRequest & AddFilters(const Filter &value)
ListTimelineEventsRequest & WithIncidentRecordArn(const Aws::String &value)
ListTimelineEventsRequest & WithNextToken(const Aws::String &value)
ListTimelineEventsRequest & WithFilters(Aws::Vector< Filter > &&value)
ListTimelineEventsRequest & WithSortOrder(SortOrder &&value)
ListTimelineEventsRequest & WithIncidentRecordArn(const char *value)
AWS_SSMINCIDENTS_API Aws::String SerializePayload() const override
ListTimelineEventsRequest & WithNextToken(const char *value)
ListTimelineEventsRequest & AddFilters(Filter &&value)
void SetFilters(const Aws::Vector< Filter > &value)
virtual const char * GetServiceRequestName() const override
ListTimelineEventsRequest & WithSortBy(TimelineEventSort &&value)
ListTimelineEventsRequest & WithIncidentRecordArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector