AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetContactIds(const Aws::Vector<Aws::String>& value) { m_contactIdsHasBeenSet = true; m_contactIds = value; }
53 inline void SetContactIds(Aws::Vector<Aws::String>&& value) { m_contactIdsHasBeenSet = true; m_contactIds = std::move(value); }
54 inline RotationShift& WithContactIds(const Aws::Vector<Aws::String>& value) { SetContactIds(value); return *this;}
55 inline RotationShift& WithContactIds(Aws::Vector<Aws::String>&& value) { SetContactIds(std::move(value)); return *this;}
56 inline RotationShift& AddContactIds(const Aws::String& value) { m_contactIdsHasBeenSet = true; m_contactIds.push_back(value); return *this; }
57 inline RotationShift& AddContactIds(Aws::String&& value) { m_contactIdsHasBeenSet = true; m_contactIds.push_back(std::move(value)); return *this; }
58 inline RotationShift& AddContactIds(const char* value) { m_contactIdsHasBeenSet = true; m_contactIds.push_back(value); return *this; }
60
62
65 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
66 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
67 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
68 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
69 inline RotationShift& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
70 inline RotationShift& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
72
74
77 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
78 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
79 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
80 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
81 inline RotationShift& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
82 inline RotationShift& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
84
86
89 inline const ShiftType& GetType() const{ return m_type; }
90 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
91 inline void SetType(const ShiftType& value) { m_typeHasBeenSet = true; m_type = value; }
92 inline void SetType(ShiftType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
93 inline RotationShift& WithType(const ShiftType& value) { SetType(value); return *this;}
94 inline RotationShift& WithType(ShiftType&& value) { SetType(std::move(value)); return *this;}
96
98
101 inline const ShiftDetails& GetShiftDetails() const{ return m_shiftDetails; }
102 inline bool ShiftDetailsHasBeenSet() const { return m_shiftDetailsHasBeenSet; }
103 inline void SetShiftDetails(const ShiftDetails& value) { m_shiftDetailsHasBeenSet = true; m_shiftDetails = value; }
104 inline void SetShiftDetails(ShiftDetails&& value) { m_shiftDetailsHasBeenSet = true; m_shiftDetails = std::move(value); }
105 inline RotationShift& WithShiftDetails(const ShiftDetails& value) { SetShiftDetails(value); return *this;}
106 inline RotationShift& WithShiftDetails(ShiftDetails&& value) { SetShiftDetails(std::move(value)); return *this;}
108 private:
109
110 Aws::Vector<Aws::String> m_contactIds;
111 bool m_contactIdsHasBeenSet = false;
112
113 Aws::Utils::DateTime m_startTime;
114 bool m_startTimeHasBeenSet = false;
115
116 Aws::Utils::DateTime m_endTime;
117 bool m_endTimeHasBeenSet = false;
118
119 ShiftType m_type;
120 bool m_typeHasBeenSet = false;
121
122 ShiftDetails m_shiftDetails;
123 bool m_shiftDetailsHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace SSMContacts
128} // namespace Aws
void SetShiftDetails(ShiftDetails &&value)
const Aws::Utils::DateTime & GetStartTime() const
const Aws::Utils::DateTime & GetEndTime() const
RotationShift & WithEndTime(const Aws::Utils::DateTime &value)
void SetContactIds(const Aws::Vector< Aws::String > &value)
RotationShift & WithStartTime(const Aws::Utils::DateTime &value)
RotationShift & WithStartTime(Aws::Utils::DateTime &&value)
RotationShift & WithEndTime(Aws::Utils::DateTime &&value)
const Aws::Vector< Aws::String > & GetContactIds() const
void SetShiftDetails(const ShiftDetails &value)
RotationShift & AddContactIds(Aws::String &&value)
RotationShift & AddContactIds(const char *value)
RotationShift & WithType(ShiftType &&value)
RotationShift & WithShiftDetails(ShiftDetails &&value)
const ShiftType & GetType() const
const ShiftDetails & GetShiftDetails() const
void SetContactIds(Aws::Vector< Aws::String > &&value)
AWS_SSMCONTACTS_API RotationShift & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEndTime(const Aws::Utils::DateTime &value)
RotationShift & WithContactIds(Aws::Vector< Aws::String > &&value)
RotationShift & AddContactIds(const Aws::String &value)
void SetEndTime(Aws::Utils::DateTime &&value)
void SetStartTime(Aws::Utils::DateTime &&value)
RotationShift & WithType(const ShiftType &value)
AWS_SSMCONTACTS_API RotationShift(Aws::Utils::Json::JsonView jsonValue)
RotationShift & WithShiftDetails(const ShiftDetails &value)
void SetStartTime(const Aws::Utils::DateTime &value)
void SetType(const ShiftType &value)
RotationShift & WithContactIds(const Aws::Vector< Aws::String > &value)
AWS_SSMCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue