AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RotationOverride.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 <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SSMContacts
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SSMCONTACTS_API RotationOverride();
38 AWS_SSMCONTACTS_API RotationOverride(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SSMCONTACTS_API RotationOverride& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SSMCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetRotationOverrideId() const{ return m_rotationOverrideId; }
48 inline bool RotationOverrideIdHasBeenSet() const { return m_rotationOverrideIdHasBeenSet; }
49 inline void SetRotationOverrideId(const Aws::String& value) { m_rotationOverrideIdHasBeenSet = true; m_rotationOverrideId = value; }
50 inline void SetRotationOverrideId(Aws::String&& value) { m_rotationOverrideIdHasBeenSet = true; m_rotationOverrideId = std::move(value); }
51 inline void SetRotationOverrideId(const char* value) { m_rotationOverrideIdHasBeenSet = true; m_rotationOverrideId.assign(value); }
52 inline RotationOverride& WithRotationOverrideId(const Aws::String& value) { SetRotationOverrideId(value); return *this;}
53 inline RotationOverride& WithRotationOverrideId(Aws::String&& value) { SetRotationOverrideId(std::move(value)); return *this;}
54 inline RotationOverride& WithRotationOverrideId(const char* value) { SetRotationOverrideId(value); return *this;}
56
58
62 inline const Aws::Vector<Aws::String>& GetNewContactIds() const{ return m_newContactIds; }
63 inline bool NewContactIdsHasBeenSet() const { return m_newContactIdsHasBeenSet; }
64 inline void SetNewContactIds(const Aws::Vector<Aws::String>& value) { m_newContactIdsHasBeenSet = true; m_newContactIds = value; }
65 inline void SetNewContactIds(Aws::Vector<Aws::String>&& value) { m_newContactIdsHasBeenSet = true; m_newContactIds = std::move(value); }
66 inline RotationOverride& WithNewContactIds(const Aws::Vector<Aws::String>& value) { SetNewContactIds(value); return *this;}
67 inline RotationOverride& WithNewContactIds(Aws::Vector<Aws::String>&& value) { SetNewContactIds(std::move(value)); return *this;}
68 inline RotationOverride& AddNewContactIds(const Aws::String& value) { m_newContactIdsHasBeenSet = true; m_newContactIds.push_back(value); return *this; }
69 inline RotationOverride& AddNewContactIds(Aws::String&& value) { m_newContactIdsHasBeenSet = true; m_newContactIds.push_back(std::move(value)); return *this; }
70 inline RotationOverride& AddNewContactIds(const char* value) { m_newContactIdsHasBeenSet = true; m_newContactIds.push_back(value); return *this; }
72
74
77 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
78 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
79 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
80 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
81 inline RotationOverride& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
82 inline RotationOverride& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
84
86
89 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
90 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
91 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
92 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
93 inline RotationOverride& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
94 inline RotationOverride& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
96
98
101 inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
102 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
103 inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
104 inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); }
105 inline RotationOverride& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;}
106 inline RotationOverride& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;}
108 private:
109
110 Aws::String m_rotationOverrideId;
111 bool m_rotationOverrideIdHasBeenSet = false;
112
113 Aws::Vector<Aws::String> m_newContactIds;
114 bool m_newContactIdsHasBeenSet = false;
115
116 Aws::Utils::DateTime m_startTime;
117 bool m_startTimeHasBeenSet = false;
118
119 Aws::Utils::DateTime m_endTime;
120 bool m_endTimeHasBeenSet = false;
121
122 Aws::Utils::DateTime m_createTime;
123 bool m_createTimeHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace SSMContacts
128} // namespace Aws
void SetStartTime(Aws::Utils::DateTime &&value)
RotationOverride & WithCreateTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetCreateTime() const
void SetNewContactIds(const Aws::Vector< Aws::String > &value)
RotationOverride & WithRotationOverrideId(Aws::String &&value)
AWS_SSMCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRotationOverrideId(Aws::String &&value)
RotationOverride & WithRotationOverrideId(const Aws::String &value)
RotationOverride & AddNewContactIds(Aws::String &&value)
RotationOverride & WithRotationOverrideId(const char *value)
RotationOverride & WithCreateTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetEndTime() const
void SetCreateTime(Aws::Utils::DateTime &&value)
AWS_SSMCONTACTS_API RotationOverride & operator=(Aws::Utils::Json::JsonView jsonValue)
RotationOverride & WithEndTime(const Aws::Utils::DateTime &value)
void SetEndTime(Aws::Utils::DateTime &&value)
void SetEndTime(const Aws::Utils::DateTime &value)
AWS_SSMCONTACTS_API RotationOverride(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRotationOverrideId() const
void SetNewContactIds(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetNewContactIds() const
void SetCreateTime(const Aws::Utils::DateTime &value)
RotationOverride & AddNewContactIds(const char *value)
void SetStartTime(const Aws::Utils::DateTime &value)
RotationOverride & WithNewContactIds(const Aws::Vector< Aws::String > &value)
void SetRotationOverrideId(const Aws::String &value)
RotationOverride & AddNewContactIds(const Aws::String &value)
const Aws::Utils::DateTime & GetStartTime() const
RotationOverride & WithEndTime(Aws::Utils::DateTime &&value)
RotationOverride & WithStartTime(Aws::Utils::DateTime &&value)
RotationOverride & WithNewContactIds(Aws::Vector< Aws::String > &&value)
RotationOverride & WithStartTime(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue