AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename RotationOverrideIdT = Aws::String>
50 void SetRotationOverrideId(RotationOverrideIdT&& value) { m_rotationOverrideIdHasBeenSet = true; m_rotationOverrideId = std::forward<RotationOverrideIdT>(value); }
51 template<typename RotationOverrideIdT = Aws::String>
52 RotationOverride& WithRotationOverrideId(RotationOverrideIdT&& value) { SetRotationOverrideId(std::forward<RotationOverrideIdT>(value)); return *this;}
54
56
60 inline const Aws::Vector<Aws::String>& GetNewContactIds() const { return m_newContactIds; }
61 inline bool NewContactIdsHasBeenSet() const { return m_newContactIdsHasBeenSet; }
62 template<typename NewContactIdsT = Aws::Vector<Aws::String>>
63 void SetNewContactIds(NewContactIdsT&& value) { m_newContactIdsHasBeenSet = true; m_newContactIds = std::forward<NewContactIdsT>(value); }
64 template<typename NewContactIdsT = Aws::Vector<Aws::String>>
65 RotationOverride& WithNewContactIds(NewContactIdsT&& value) { SetNewContactIds(std::forward<NewContactIdsT>(value)); return *this;}
66 template<typename NewContactIdsT = Aws::String>
67 RotationOverride& AddNewContactIds(NewContactIdsT&& value) { m_newContactIdsHasBeenSet = true; m_newContactIds.emplace_back(std::forward<NewContactIdsT>(value)); return *this; }
69
71
74 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
75 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
76 template<typename StartTimeT = Aws::Utils::DateTime>
77 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
78 template<typename StartTimeT = Aws::Utils::DateTime>
79 RotationOverride& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
81
83
86 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
87 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
88 template<typename EndTimeT = Aws::Utils::DateTime>
89 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
90 template<typename EndTimeT = Aws::Utils::DateTime>
91 RotationOverride& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
93
95
98 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
99 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
100 template<typename CreateTimeT = Aws::Utils::DateTime>
101 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet = true; m_createTime = std::forward<CreateTimeT>(value); }
102 template<typename CreateTimeT = Aws::Utils::DateTime>
103 RotationOverride& WithCreateTime(CreateTimeT&& value) { SetCreateTime(std::forward<CreateTimeT>(value)); return *this;}
105 private:
106
107 Aws::String m_rotationOverrideId;
108 bool m_rotationOverrideIdHasBeenSet = false;
109
110 Aws::Vector<Aws::String> m_newContactIds;
111 bool m_newContactIdsHasBeenSet = 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 Aws::Utils::DateTime m_createTime{};
120 bool m_createTimeHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace SSMContacts
125} // namespace Aws
RotationOverride & WithCreateTime(CreateTimeT &&value)
const Aws::Utils::DateTime & GetCreateTime() const
AWS_SSMCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetNewContactIds(NewContactIdsT &&value)
void SetRotationOverrideId(RotationOverrideIdT &&value)
const Aws::Utils::DateTime & GetEndTime() const
AWS_SSMCONTACTS_API RotationOverride & operator=(Aws::Utils::Json::JsonView jsonValue)
RotationOverride & WithNewContactIds(NewContactIdsT &&value)
AWS_SSMCONTACTS_API RotationOverride(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRotationOverrideId() const
RotationOverride & AddNewContactIds(NewContactIdsT &&value)
const Aws::Vector< Aws::String > & GetNewContactIds() const
AWS_SSMCONTACTS_API RotationOverride()=default
RotationOverride & WithEndTime(EndTimeT &&value)
RotationOverride & WithStartTime(StartTimeT &&value)
const Aws::Utils::DateTime & GetStartTime() const
RotationOverride & WithRotationOverrideId(RotationOverrideIdT &&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