AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Rotation.h
1
6#pragma once
7#include <aws/ssm-contacts/SSMContacts_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/ssm-contacts/model/RecurrenceSettings.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SSMContacts
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_SSMCONTACTS_API Rotation() = default;
39 AWS_SSMCONTACTS_API Rotation(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SSMCONTACTS_API Rotation& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SSMCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetRotationArn() const { return m_rotationArn; }
49 inline bool RotationArnHasBeenSet() const { return m_rotationArnHasBeenSet; }
50 template<typename RotationArnT = Aws::String>
51 void SetRotationArn(RotationArnT&& value) { m_rotationArnHasBeenSet = true; m_rotationArn = std::forward<RotationArnT>(value); }
52 template<typename RotationArnT = Aws::String>
53 Rotation& WithRotationArn(RotationArnT&& value) { SetRotationArn(std::forward<RotationArnT>(value)); return *this;}
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template<typename NameT = Aws::String>
63 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
64 template<typename NameT = Aws::String>
65 Rotation& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
67
69
73 inline const Aws::Vector<Aws::String>& GetContactIds() const { return m_contactIds; }
74 inline bool ContactIdsHasBeenSet() const { return m_contactIdsHasBeenSet; }
75 template<typename ContactIdsT = Aws::Vector<Aws::String>>
76 void SetContactIds(ContactIdsT&& value) { m_contactIdsHasBeenSet = true; m_contactIds = std::forward<ContactIdsT>(value); }
77 template<typename ContactIdsT = Aws::Vector<Aws::String>>
78 Rotation& WithContactIds(ContactIdsT&& value) { SetContactIds(std::forward<ContactIdsT>(value)); return *this;}
79 template<typename ContactIdsT = Aws::String>
80 Rotation& AddContactIds(ContactIdsT&& value) { m_contactIdsHasBeenSet = true; m_contactIds.emplace_back(std::forward<ContactIdsT>(value)); return *this; }
82
84
87 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
88 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
89 template<typename StartTimeT = Aws::Utils::DateTime>
90 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
91 template<typename StartTimeT = Aws::Utils::DateTime>
92 Rotation& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
94
96
101 inline const Aws::String& GetTimeZoneId() const { return m_timeZoneId; }
102 inline bool TimeZoneIdHasBeenSet() const { return m_timeZoneIdHasBeenSet; }
103 template<typename TimeZoneIdT = Aws::String>
104 void SetTimeZoneId(TimeZoneIdT&& value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId = std::forward<TimeZoneIdT>(value); }
105 template<typename TimeZoneIdT = Aws::String>
106 Rotation& WithTimeZoneId(TimeZoneIdT&& value) { SetTimeZoneId(std::forward<TimeZoneIdT>(value)); return *this;}
108
110
114 inline const RecurrenceSettings& GetRecurrence() const { return m_recurrence; }
115 inline bool RecurrenceHasBeenSet() const { return m_recurrenceHasBeenSet; }
116 template<typename RecurrenceT = RecurrenceSettings>
117 void SetRecurrence(RecurrenceT&& value) { m_recurrenceHasBeenSet = true; m_recurrence = std::forward<RecurrenceT>(value); }
118 template<typename RecurrenceT = RecurrenceSettings>
119 Rotation& WithRecurrence(RecurrenceT&& value) { SetRecurrence(std::forward<RecurrenceT>(value)); return *this;}
121 private:
122
123 Aws::String m_rotationArn;
124 bool m_rotationArnHasBeenSet = false;
125
126 Aws::String m_name;
127 bool m_nameHasBeenSet = false;
128
129 Aws::Vector<Aws::String> m_contactIds;
130 bool m_contactIdsHasBeenSet = false;
131
132 Aws::Utils::DateTime m_startTime{};
133 bool m_startTimeHasBeenSet = false;
134
135 Aws::String m_timeZoneId;
136 bool m_timeZoneIdHasBeenSet = false;
137
138 RecurrenceSettings m_recurrence;
139 bool m_recurrenceHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace SSMContacts
144} // namespace Aws
const RecurrenceSettings & GetRecurrence() const
Definition Rotation.h:114
const Aws::String & GetRotationArn() const
Definition Rotation.h:48
Rotation & WithName(NameT &&value)
Definition Rotation.h:65
const Aws::Utils::DateTime & GetStartTime() const
Definition Rotation.h:87
void SetRecurrence(RecurrenceT &&value)
Definition Rotation.h:117
Rotation & WithRecurrence(RecurrenceT &&value)
Definition Rotation.h:119
Rotation & AddContactIds(ContactIdsT &&value)
Definition Rotation.h:80
AWS_SSMCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const
Rotation & WithContactIds(ContactIdsT &&value)
Definition Rotation.h:78
AWS_SSMCONTACTS_API Rotation & operator=(Aws::Utils::Json::JsonView jsonValue)
Rotation & WithTimeZoneId(TimeZoneIdT &&value)
Definition Rotation.h:106
void SetStartTime(StartTimeT &&value)
Definition Rotation.h:90
Rotation & WithRotationArn(RotationArnT &&value)
Definition Rotation.h:53
void SetContactIds(ContactIdsT &&value)
Definition Rotation.h:76
const Aws::String & GetName() const
Definition Rotation.h:60
void SetTimeZoneId(TimeZoneIdT &&value)
Definition Rotation.h:104
void SetRotationArn(RotationArnT &&value)
Definition Rotation.h:51
AWS_SSMCONTACTS_API Rotation()=default
void SetName(NameT &&value)
Definition Rotation.h:63
AWS_SSMCONTACTS_API Rotation(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetContactIds() const
Definition Rotation.h:73
Rotation & WithStartTime(StartTimeT &&value)
Definition Rotation.h:92
const Aws::String & GetTimeZoneId() const
Definition Rotation.h:101
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue