AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
RotationShift.h
1
6#pragma once
7#include <aws/ssm-contacts/SSMContacts_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/ssm-contacts/model/ShiftType.h>
11#include <aws/ssm-contacts/model/ShiftDetails.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SSMContacts
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_SSMCONTACTS_API RotationShift() = default;
40 AWS_SSMCONTACTS_API RotationShift(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SSMCONTACTS_API RotationShift& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SSMCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::Vector<Aws::String>& GetContactIds() const { return m_contactIds; }
51 inline bool ContactIdsHasBeenSet() const { return m_contactIdsHasBeenSet; }
52 template<typename ContactIdsT = Aws::Vector<Aws::String>>
53 void SetContactIds(ContactIdsT&& value) { m_contactIdsHasBeenSet = true; m_contactIds = std::forward<ContactIdsT>(value); }
54 template<typename ContactIdsT = Aws::Vector<Aws::String>>
55 RotationShift& WithContactIds(ContactIdsT&& value) { SetContactIds(std::forward<ContactIdsT>(value)); return *this;}
56 template<typename ContactIdsT = Aws::String>
57 RotationShift& AddContactIds(ContactIdsT&& value) { m_contactIdsHasBeenSet = true; m_contactIds.emplace_back(std::forward<ContactIdsT>(value)); return *this; }
59
61
64 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
65 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
66 template<typename StartTimeT = Aws::Utils::DateTime>
67 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
68 template<typename StartTimeT = Aws::Utils::DateTime>
69 RotationShift& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
71
73
76 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
77 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
78 template<typename EndTimeT = Aws::Utils::DateTime>
79 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
80 template<typename EndTimeT = Aws::Utils::DateTime>
81 RotationShift& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
83
85
88 inline ShiftType GetType() const { return m_type; }
89 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
90 inline void SetType(ShiftType value) { m_typeHasBeenSet = true; m_type = value; }
91 inline RotationShift& WithType(ShiftType value) { SetType(value); return *this;}
93
95
98 inline const ShiftDetails& GetShiftDetails() const { return m_shiftDetails; }
99 inline bool ShiftDetailsHasBeenSet() const { return m_shiftDetailsHasBeenSet; }
100 template<typename ShiftDetailsT = ShiftDetails>
101 void SetShiftDetails(ShiftDetailsT&& value) { m_shiftDetailsHasBeenSet = true; m_shiftDetails = std::forward<ShiftDetailsT>(value); }
102 template<typename ShiftDetailsT = ShiftDetails>
103 RotationShift& WithShiftDetails(ShiftDetailsT&& value) { SetShiftDetails(std::forward<ShiftDetailsT>(value)); return *this;}
105 private:
106
107 Aws::Vector<Aws::String> m_contactIds;
108 bool m_contactIdsHasBeenSet = false;
109
110 Aws::Utils::DateTime m_startTime{};
111 bool m_startTimeHasBeenSet = false;
112
113 Aws::Utils::DateTime m_endTime{};
114 bool m_endTimeHasBeenSet = false;
115
117 bool m_typeHasBeenSet = false;
118
119 ShiftDetails m_shiftDetails;
120 bool m_shiftDetailsHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace SSMContacts
125} // namespace Aws
RotationShift & WithShiftDetails(ShiftDetailsT &&value)
void SetContactIds(ContactIdsT &&value)
const Aws::Utils::DateTime & GetStartTime() const
const Aws::Utils::DateTime & GetEndTime() const
void SetShiftDetails(ShiftDetailsT &&value)
const Aws::Vector< Aws::String > & GetContactIds() const
RotationShift & WithEndTime(EndTimeT &&value)
const ShiftDetails & GetShiftDetails() const
AWS_SSMCONTACTS_API RotationShift & operator=(Aws::Utils::Json::JsonView jsonValue)
RotationShift & WithContactIds(ContactIdsT &&value)
RotationShift & AddContactIds(ContactIdsT &&value)
RotationShift & WithStartTime(StartTimeT &&value)
AWS_SSMCONTACTS_API RotationShift(Aws::Utils::Json::JsonView jsonValue)
AWS_SSMCONTACTS_API RotationShift()=default
RotationShift & WithType(ShiftType value)
void SetStartTime(StartTimeT &&value)
AWS_SSMCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue