AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRotationArn(const Aws::String& value) { m_rotationArnHasBeenSet = true; m_rotationArn = value; }
51 inline void SetRotationArn(Aws::String&& value) { m_rotationArnHasBeenSet = true; m_rotationArn = std::move(value); }
52 inline void SetRotationArn(const char* value) { m_rotationArnHasBeenSet = true; m_rotationArn.assign(value); }
53 inline Rotation& WithRotationArn(const Aws::String& value) { SetRotationArn(value); return *this;}
54 inline Rotation& WithRotationArn(Aws::String&& value) { SetRotationArn(std::move(value)); return *this;}
55 inline Rotation& WithRotationArn(const char* value) { SetRotationArn(value); return *this;}
57
59
62 inline const Aws::String& GetName() const{ return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
65 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
66 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
67 inline Rotation& WithName(const Aws::String& value) { SetName(value); return *this;}
68 inline Rotation& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
69 inline Rotation& WithName(const char* value) { SetName(value); return *this;}
71
73
77 inline const Aws::Vector<Aws::String>& GetContactIds() const{ return m_contactIds; }
78 inline bool ContactIdsHasBeenSet() const { return m_contactIdsHasBeenSet; }
79 inline void SetContactIds(const Aws::Vector<Aws::String>& value) { m_contactIdsHasBeenSet = true; m_contactIds = value; }
80 inline void SetContactIds(Aws::Vector<Aws::String>&& value) { m_contactIdsHasBeenSet = true; m_contactIds = std::move(value); }
81 inline Rotation& WithContactIds(const Aws::Vector<Aws::String>& value) { SetContactIds(value); return *this;}
82 inline Rotation& WithContactIds(Aws::Vector<Aws::String>&& value) { SetContactIds(std::move(value)); return *this;}
83 inline Rotation& AddContactIds(const Aws::String& value) { m_contactIdsHasBeenSet = true; m_contactIds.push_back(value); return *this; }
84 inline Rotation& AddContactIds(Aws::String&& value) { m_contactIdsHasBeenSet = true; m_contactIds.push_back(std::move(value)); return *this; }
85 inline Rotation& AddContactIds(const char* value) { m_contactIdsHasBeenSet = true; m_contactIds.push_back(value); return *this; }
87
89
92 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
93 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
94 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
95 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
96 inline Rotation& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
97 inline Rotation& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
99
101
106 inline const Aws::String& GetTimeZoneId() const{ return m_timeZoneId; }
107 inline bool TimeZoneIdHasBeenSet() const { return m_timeZoneIdHasBeenSet; }
108 inline void SetTimeZoneId(const Aws::String& value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId = value; }
109 inline void SetTimeZoneId(Aws::String&& value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId = std::move(value); }
110 inline void SetTimeZoneId(const char* value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId.assign(value); }
111 inline Rotation& WithTimeZoneId(const Aws::String& value) { SetTimeZoneId(value); return *this;}
112 inline Rotation& WithTimeZoneId(Aws::String&& value) { SetTimeZoneId(std::move(value)); return *this;}
113 inline Rotation& WithTimeZoneId(const char* value) { SetTimeZoneId(value); return *this;}
115
117
121 inline const RecurrenceSettings& GetRecurrence() const{ return m_recurrence; }
122 inline bool RecurrenceHasBeenSet() const { return m_recurrenceHasBeenSet; }
123 inline void SetRecurrence(const RecurrenceSettings& value) { m_recurrenceHasBeenSet = true; m_recurrence = value; }
124 inline void SetRecurrence(RecurrenceSettings&& value) { m_recurrenceHasBeenSet = true; m_recurrence = std::move(value); }
125 inline Rotation& WithRecurrence(const RecurrenceSettings& value) { SetRecurrence(value); return *this;}
126 inline Rotation& WithRecurrence(RecurrenceSettings&& value) { SetRecurrence(std::move(value)); return *this;}
128 private:
129
130 Aws::String m_rotationArn;
131 bool m_rotationArnHasBeenSet = false;
132
133 Aws::String m_name;
134 bool m_nameHasBeenSet = false;
135
136 Aws::Vector<Aws::String> m_contactIds;
137 bool m_contactIdsHasBeenSet = false;
138
139 Aws::Utils::DateTime m_startTime;
140 bool m_startTimeHasBeenSet = false;
141
142 Aws::String m_timeZoneId;
143 bool m_timeZoneIdHasBeenSet = false;
144
145 RecurrenceSettings m_recurrence;
146 bool m_recurrenceHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace SSMContacts
151} // namespace Aws
Rotation & WithRotationArn(const Aws::String &value)
Definition Rotation.h:53
Rotation & WithRotationArn(Aws::String &&value)
Definition Rotation.h:54
Rotation & WithTimeZoneId(const char *value)
Definition Rotation.h:113
void SetName(const Aws::String &value)
Definition Rotation.h:64
void SetRotationArn(const Aws::String &value)
Definition Rotation.h:50
void SetName(Aws::String &&value)
Definition Rotation.h:65
const RecurrenceSettings & GetRecurrence() const
Definition Rotation.h:121
void SetName(const char *value)
Definition Rotation.h:66
const Aws::String & GetRotationArn() const
Definition Rotation.h:48
const Aws::Utils::DateTime & GetStartTime() const
Definition Rotation.h:92
void SetStartTime(const Aws::Utils::DateTime &value)
Definition Rotation.h:94
AWS_SSMCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const
Rotation & WithContactIds(const Aws::Vector< Aws::String > &value)
Definition Rotation.h:81
void SetRecurrence(RecurrenceSettings &&value)
Definition Rotation.h:124
void SetTimeZoneId(const char *value)
Definition Rotation.h:110
Rotation & WithTimeZoneId(const Aws::String &value)
Definition Rotation.h:111
Rotation & WithRecurrence(RecurrenceSettings &&value)
Definition Rotation.h:126
void SetRotationArn(const char *value)
Definition Rotation.h:52
AWS_SSMCONTACTS_API Rotation & operator=(Aws::Utils::Json::JsonView jsonValue)
Rotation & WithName(const char *value)
Definition Rotation.h:69
void SetTimeZoneId(Aws::String &&value)
Definition Rotation.h:109
Rotation & WithName(Aws::String &&value)
Definition Rotation.h:68
Rotation & WithTimeZoneId(Aws::String &&value)
Definition Rotation.h:112
Rotation & WithRecurrence(const RecurrenceSettings &value)
Definition Rotation.h:125
void SetRotationArn(Aws::String &&value)
Definition Rotation.h:51
Rotation & WithName(const Aws::String &value)
Definition Rotation.h:67
Rotation & AddContactIds(const Aws::String &value)
Definition Rotation.h:83
Rotation & WithRotationArn(const char *value)
Definition Rotation.h:55
Rotation & WithContactIds(Aws::Vector< Aws::String > &&value)
Definition Rotation.h:82
const Aws::String & GetName() const
Definition Rotation.h:62
Rotation & WithStartTime(const Aws::Utils::DateTime &value)
Definition Rotation.h:96
Rotation & WithStartTime(Aws::Utils::DateTime &&value)
Definition Rotation.h:97
void SetTimeZoneId(const Aws::String &value)
Definition Rotation.h:108
void SetStartTime(Aws::Utils::DateTime &&value)
Definition Rotation.h:95
AWS_SSMCONTACTS_API Rotation()
Rotation & AddContactIds(Aws::String &&value)
Definition Rotation.h:84
AWS_SSMCONTACTS_API Rotation(Aws::Utils::Json::JsonView jsonValue)
void SetContactIds(const Aws::Vector< Aws::String > &value)
Definition Rotation.h:79
void SetContactIds(Aws::Vector< Aws::String > &&value)
Definition Rotation.h:80
const Aws::Vector< Aws::String > & GetContactIds() const
Definition Rotation.h:77
void SetRecurrence(const RecurrenceSettings &value)
Definition Rotation.h:123
Rotation & AddContactIds(const char *value)
Definition Rotation.h:85
const Aws::String & GetTimeZoneId() const
Definition Rotation.h:106
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue