AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ListRotationShiftsRequest.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/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SSMContacts
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_SSMCONTACTS_API ListRotationShiftsRequest() = 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 "ListRotationShifts"; }
32
33 AWS_SSMCONTACTS_API Aws::String SerializePayload() const override;
34
35 AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
43 inline const Aws::String& GetRotationId() const { return m_rotationId; }
44 inline bool RotationIdHasBeenSet() const { return m_rotationIdHasBeenSet; }
45 template<typename RotationIdT = Aws::String>
46 void SetRotationId(RotationIdT&& value) { m_rotationIdHasBeenSet = true; m_rotationId = std::forward<RotationIdT>(value); }
47 template<typename RotationIdT = Aws::String>
48 ListRotationShiftsRequest& WithRotationId(RotationIdT&& value) { SetRotationId(std::forward<RotationIdT>(value)); return *this;}
50
52
55 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
56 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
57 template<typename StartTimeT = Aws::Utils::DateTime>
58 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
59 template<typename StartTimeT = Aws::Utils::DateTime>
60 ListRotationShiftsRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
62
64
67 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
68 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
69 template<typename EndTimeT = Aws::Utils::DateTime>
70 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
71 template<typename EndTimeT = Aws::Utils::DateTime>
72 ListRotationShiftsRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
74
76
79 inline const Aws::String& GetNextToken() const { return m_nextToken; }
80 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
81 template<typename NextTokenT = Aws::String>
82 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
83 template<typename NextTokenT = Aws::String>
84 ListRotationShiftsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
86
88
93 inline int GetMaxResults() const { return m_maxResults; }
94 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
95 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
96 inline ListRotationShiftsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
98 private:
99
100 Aws::String m_rotationId;
101 bool m_rotationIdHasBeenSet = false;
102
103 Aws::Utils::DateTime m_startTime{};
104 bool m_startTimeHasBeenSet = false;
105
106 Aws::Utils::DateTime m_endTime{};
107 bool m_endTimeHasBeenSet = false;
108
109 Aws::String m_nextToken;
110 bool m_nextTokenHasBeenSet = false;
111
112 int m_maxResults{0};
113 bool m_maxResultsHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace SSMContacts
118} // namespace Aws
AWS_SSMCONTACTS_API Aws::String SerializePayload() const override
AWS_SSMCONTACTS_API ListRotationShiftsRequest()=default
ListRotationShiftsRequest & WithEndTime(EndTimeT &&value)
ListRotationShiftsRequest & WithRotationId(RotationIdT &&value)
virtual const char * GetServiceRequestName() const override
ListRotationShiftsRequest & WithStartTime(StartTimeT &&value)
ListRotationShiftsRequest & WithMaxResults(int value)
ListRotationShiftsRequest & WithNextToken(NextTokenT &&value)
AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String