AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
GetRotationResult.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{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace SSMContacts
27{
28namespace Model
29{
31 {
32 public:
33 AWS_SSMCONTACTS_API GetRotationResult() = default;
36
37
39
42 inline const Aws::String& GetRotationArn() const { return m_rotationArn; }
43 template<typename RotationArnT = Aws::String>
44 void SetRotationArn(RotationArnT&& value) { m_rotationArnHasBeenSet = true; m_rotationArn = std::forward<RotationArnT>(value); }
45 template<typename RotationArnT = Aws::String>
46 GetRotationResult& WithRotationArn(RotationArnT&& value) { SetRotationArn(std::forward<RotationArnT>(value)); return *this;}
48
50
53 inline const Aws::String& GetName() const { return m_name; }
54 template<typename NameT = Aws::String>
55 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
56 template<typename NameT = Aws::String>
57 GetRotationResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
59
61
65 inline const Aws::Vector<Aws::String>& GetContactIds() const { return m_contactIds; }
66 template<typename ContactIdsT = Aws::Vector<Aws::String>>
67 void SetContactIds(ContactIdsT&& value) { m_contactIdsHasBeenSet = true; m_contactIds = std::forward<ContactIdsT>(value); }
68 template<typename ContactIdsT = Aws::Vector<Aws::String>>
69 GetRotationResult& WithContactIds(ContactIdsT&& value) { SetContactIds(std::forward<ContactIdsT>(value)); return *this;}
70 template<typename ContactIdsT = Aws::String>
71 GetRotationResult& AddContactIds(ContactIdsT&& value) { m_contactIdsHasBeenSet = true; m_contactIds.emplace_back(std::forward<ContactIdsT>(value)); return *this; }
73
75
78 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
79 template<typename StartTimeT = Aws::Utils::DateTime>
80 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
81 template<typename StartTimeT = Aws::Utils::DateTime>
82 GetRotationResult& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
84
86
90 inline const Aws::String& GetTimeZoneId() const { return m_timeZoneId; }
91 template<typename TimeZoneIdT = Aws::String>
92 void SetTimeZoneId(TimeZoneIdT&& value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId = std::forward<TimeZoneIdT>(value); }
93 template<typename TimeZoneIdT = Aws::String>
94 GetRotationResult& WithTimeZoneId(TimeZoneIdT&& value) { SetTimeZoneId(std::forward<TimeZoneIdT>(value)); return *this;}
96
98
102 inline const RecurrenceSettings& GetRecurrence() const { return m_recurrence; }
103 template<typename RecurrenceT = RecurrenceSettings>
104 void SetRecurrence(RecurrenceT&& value) { m_recurrenceHasBeenSet = true; m_recurrence = std::forward<RecurrenceT>(value); }
105 template<typename RecurrenceT = RecurrenceSettings>
106 GetRotationResult& WithRecurrence(RecurrenceT&& value) { SetRecurrence(std::forward<RecurrenceT>(value)); return *this;}
108
110
111 inline const Aws::String& GetRequestId() const { return m_requestId; }
112 template<typename RequestIdT = Aws::String>
113 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
114 template<typename RequestIdT = Aws::String>
115 GetRotationResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
117 private:
118
119 Aws::String m_rotationArn;
120 bool m_rotationArnHasBeenSet = false;
121
122 Aws::String m_name;
123 bool m_nameHasBeenSet = false;
124
125 Aws::Vector<Aws::String> m_contactIds;
126 bool m_contactIdsHasBeenSet = false;
127
128 Aws::Utils::DateTime m_startTime{};
129 bool m_startTimeHasBeenSet = false;
130
131 Aws::String m_timeZoneId;
132 bool m_timeZoneIdHasBeenSet = false;
133
134 RecurrenceSettings m_recurrence;
135 bool m_recurrenceHasBeenSet = false;
136
137 Aws::String m_requestId;
138 bool m_requestIdHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace SSMContacts
143} // namespace Aws
GetRotationResult & WithRotationArn(RotationArnT &&value)
GetRotationResult & WithContactIds(ContactIdsT &&value)
GetRotationResult & WithName(NameT &&value)
AWS_SSMCONTACTS_API GetRotationResult()=default
GetRotationResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< Aws::String > & GetContactIds() const
GetRotationResult & WithTimeZoneId(TimeZoneIdT &&value)
AWS_SSMCONTACTS_API GetRotationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const RecurrenceSettings & GetRecurrence() const
GetRotationResult & WithStartTime(StartTimeT &&value)
AWS_SSMCONTACTS_API GetRotationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetRotationResult & AddContactIds(ContactIdsT &&value)
GetRotationResult & WithRecurrence(RecurrenceT &&value)
const Aws::Utils::DateTime & GetStartTime() 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