AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ListEngagementsRequest.h
1
6#pragma once
7#include <aws/ssm-contacts/SSMContacts_EXPORTS.h>
8#include <aws/ssm-contacts/SSMContactsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ssm-contacts/model/TimeRange.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SSMContacts
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_SSMCONTACTS_API ListEngagementsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListEngagements"; }
32
33 AWS_SSMCONTACTS_API Aws::String SerializePayload() const override;
34
35 AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
42 inline const Aws::String& GetNextToken() const { return m_nextToken; }
43 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
44 template<typename NextTokenT = Aws::String>
45 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
46 template<typename NextTokenT = Aws::String>
47 ListEngagementsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
49
51
54 inline int GetMaxResults() const { return m_maxResults; }
55 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
56 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
57 inline ListEngagementsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
59
61
65 inline const Aws::String& GetIncidentId() const { return m_incidentId; }
66 inline bool IncidentIdHasBeenSet() const { return m_incidentIdHasBeenSet; }
67 template<typename IncidentIdT = Aws::String>
68 void SetIncidentId(IncidentIdT&& value) { m_incidentIdHasBeenSet = true; m_incidentId = std::forward<IncidentIdT>(value); }
69 template<typename IncidentIdT = Aws::String>
70 ListEngagementsRequest& WithIncidentId(IncidentIdT&& value) { SetIncidentId(std::forward<IncidentIdT>(value)); return *this;}
72
74
77 inline const TimeRange& GetTimeRangeValue() const { return m_timeRangeValue; }
78 inline bool TimeRangeValueHasBeenSet() const { return m_timeRangeValueHasBeenSet; }
79 template<typename TimeRangeValueT = TimeRange>
80 void SetTimeRangeValue(TimeRangeValueT&& value) { m_timeRangeValueHasBeenSet = true; m_timeRangeValue = std::forward<TimeRangeValueT>(value); }
81 template<typename TimeRangeValueT = TimeRange>
82 ListEngagementsRequest& WithTimeRangeValue(TimeRangeValueT&& value) { SetTimeRangeValue(std::forward<TimeRangeValueT>(value)); return *this;}
84 private:
85
86 Aws::String m_nextToken;
87 bool m_nextTokenHasBeenSet = false;
88
89 int m_maxResults{0};
90 bool m_maxResultsHasBeenSet = false;
91
92 Aws::String m_incidentId;
93 bool m_incidentIdHasBeenSet = false;
94
95 TimeRange m_timeRangeValue;
96 bool m_timeRangeValueHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace SSMContacts
101} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_SSMCONTACTS_API Aws::String SerializePayload() const override
ListEngagementsRequest & WithMaxResults(int value)
ListEngagementsRequest & WithIncidentId(IncidentIdT &&value)
ListEngagementsRequest & WithNextToken(NextTokenT &&value)
AWS_SSMCONTACTS_API ListEngagementsRequest()=default
AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListEngagementsRequest & WithTimeRangeValue(TimeRangeValueT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String