AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRotationId(const Aws::String& value) { m_rotationIdHasBeenSet = true; m_rotationId = value; }
46 inline void SetRotationId(Aws::String&& value) { m_rotationIdHasBeenSet = true; m_rotationId = std::move(value); }
47 inline void SetRotationId(const char* value) { m_rotationIdHasBeenSet = true; m_rotationId.assign(value); }
48 inline ListRotationShiftsRequest& WithRotationId(const Aws::String& value) { SetRotationId(value); return *this;}
49 inline ListRotationShiftsRequest& WithRotationId(Aws::String&& value) { SetRotationId(std::move(value)); return *this;}
50 inline ListRotationShiftsRequest& WithRotationId(const char* value) { SetRotationId(value); return *this;}
52
54
57 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
58 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
59 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
60 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
61 inline ListRotationShiftsRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
62 inline ListRotationShiftsRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
64
66
69 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
70 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
71 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
72 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
73 inline ListRotationShiftsRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
74 inline ListRotationShiftsRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
76
78
81 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
82 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
83 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
84 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
85 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
86 inline ListRotationShiftsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
87 inline ListRotationShiftsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
88 inline ListRotationShiftsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
90
92
97 inline int GetMaxResults() const{ return m_maxResults; }
98 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
99 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
100 inline ListRotationShiftsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
102 private:
103
104 Aws::String m_rotationId;
105 bool m_rotationIdHasBeenSet = false;
106
107 Aws::Utils::DateTime m_startTime;
108 bool m_startTimeHasBeenSet = false;
109
110 Aws::Utils::DateTime m_endTime;
111 bool m_endTimeHasBeenSet = false;
112
113 Aws::String m_nextToken;
114 bool m_nextTokenHasBeenSet = false;
115
116 int m_maxResults;
117 bool m_maxResultsHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace SSMContacts
122} // namespace Aws
AWS_SSMCONTACTS_API Aws::String SerializePayload() const override
ListRotationShiftsRequest & WithNextToken(const Aws::String &value)
ListRotationShiftsRequest & WithEndTime(Aws::Utils::DateTime &&value)
ListRotationShiftsRequest & WithRotationId(const Aws::String &value)
ListRotationShiftsRequest & WithRotationId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
ListRotationShiftsRequest & WithNextToken(const char *value)
ListRotationShiftsRequest & WithNextToken(Aws::String &&value)
ListRotationShiftsRequest & WithRotationId(const char *value)
ListRotationShiftsRequest & WithStartTime(const Aws::Utils::DateTime &value)
ListRotationShiftsRequest & WithStartTime(Aws::Utils::DateTime &&value)
void SetStartTime(const Aws::Utils::DateTime &value)
AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListRotationShiftsRequest & WithEndTime(const Aws::Utils::DateTime &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String