AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
CreateSnapshotScheduleResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/redshift/Redshift_EXPORTS.h>
12#include <aws/redshift/model/ClusterAssociatedToSchedule.h>
13#include <aws/redshift/model/ResponseMetadata.h>
14#include <aws/redshift/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Xml {
24class XmlDocument;
25} // namespace Xml
26} // namespace Utils
27namespace Redshift {
28namespace Model {
37 public:
38 AWS_REDSHIFT_API CreateSnapshotScheduleResult() = default;
41
43
46 inline const Aws::Vector<Aws::String>& GetScheduleDefinitions() const { return m_scheduleDefinitions; }
47 template <typename ScheduleDefinitionsT = Aws::Vector<Aws::String>>
48 void SetScheduleDefinitions(ScheduleDefinitionsT&& value) {
49 m_scheduleDefinitionsHasBeenSet = true;
50 m_scheduleDefinitions = std::forward<ScheduleDefinitionsT>(value);
51 }
52 template <typename ScheduleDefinitionsT = Aws::Vector<Aws::String>>
54 SetScheduleDefinitions(std::forward<ScheduleDefinitionsT>(value));
55 return *this;
56 }
57 template <typename ScheduleDefinitionsT = Aws::String>
59 m_scheduleDefinitionsHasBeenSet = true;
60 m_scheduleDefinitions.emplace_back(std::forward<ScheduleDefinitionsT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::String& GetScheduleIdentifier() const { return m_scheduleIdentifier; }
70 template <typename ScheduleIdentifierT = Aws::String>
71 void SetScheduleIdentifier(ScheduleIdentifierT&& value) {
72 m_scheduleIdentifierHasBeenSet = true;
73 m_scheduleIdentifier = std::forward<ScheduleIdentifierT>(value);
74 }
75 template <typename ScheduleIdentifierT = Aws::String>
77 SetScheduleIdentifier(std::forward<ScheduleIdentifierT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetScheduleDescription() const { return m_scheduleDescription; }
87 template <typename ScheduleDescriptionT = Aws::String>
88 void SetScheduleDescription(ScheduleDescriptionT&& value) {
89 m_scheduleDescriptionHasBeenSet = true;
90 m_scheduleDescription = std::forward<ScheduleDescriptionT>(value);
91 }
92 template <typename ScheduleDescriptionT = Aws::String>
94 SetScheduleDescription(std::forward<ScheduleDescriptionT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
104 template <typename TagsT = Aws::Vector<Tag>>
105 void SetTags(TagsT&& value) {
106 m_tagsHasBeenSet = true;
107 m_tags = std::forward<TagsT>(value);
108 }
109 template <typename TagsT = Aws::Vector<Tag>>
111 SetTags(std::forward<TagsT>(value));
112 return *this;
113 }
114 template <typename TagsT = Tag>
116 m_tagsHasBeenSet = true;
117 m_tags.emplace_back(std::forward<TagsT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::Vector<Aws::Utils::DateTime>& GetNextInvocations() const { return m_nextInvocations; }
127 template <typename NextInvocationsT = Aws::Vector<Aws::Utils::DateTime>>
128 void SetNextInvocations(NextInvocationsT&& value) {
129 m_nextInvocationsHasBeenSet = true;
130 m_nextInvocations = std::forward<NextInvocationsT>(value);
131 }
132 template <typename NextInvocationsT = Aws::Vector<Aws::Utils::DateTime>>
134 SetNextInvocations(std::forward<NextInvocationsT>(value));
135 return *this;
136 }
137 template <typename NextInvocationsT = Aws::Utils::DateTime>
139 m_nextInvocationsHasBeenSet = true;
140 m_nextInvocations.emplace_back(std::forward<NextInvocationsT>(value));
141 return *this;
142 }
144
146
149 inline int GetAssociatedClusterCount() const { return m_associatedClusterCount; }
150 inline void SetAssociatedClusterCount(int value) {
151 m_associatedClusterCountHasBeenSet = true;
152 m_associatedClusterCount = value;
153 }
156 return *this;
157 }
159
161
165 inline const Aws::Vector<ClusterAssociatedToSchedule>& GetAssociatedClusters() const { return m_associatedClusters; }
166 template <typename AssociatedClustersT = Aws::Vector<ClusterAssociatedToSchedule>>
167 void SetAssociatedClusters(AssociatedClustersT&& value) {
168 m_associatedClustersHasBeenSet = true;
169 m_associatedClusters = std::forward<AssociatedClustersT>(value);
170 }
171 template <typename AssociatedClustersT = Aws::Vector<ClusterAssociatedToSchedule>>
173 SetAssociatedClusters(std::forward<AssociatedClustersT>(value));
174 return *this;
175 }
176 template <typename AssociatedClustersT = ClusterAssociatedToSchedule>
178 m_associatedClustersHasBeenSet = true;
179 m_associatedClusters.emplace_back(std::forward<AssociatedClustersT>(value));
180 return *this;
181 }
183
185
186 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
187 template <typename ResponseMetadataT = ResponseMetadata>
188 void SetResponseMetadata(ResponseMetadataT&& value) {
189 m_responseMetadataHasBeenSet = true;
190 m_responseMetadata = std::forward<ResponseMetadataT>(value);
191 }
192 template <typename ResponseMetadataT = ResponseMetadata>
194 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
195 return *this;
196 }
198 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
199
200 private:
201 Aws::Vector<Aws::String> m_scheduleDefinitions;
202
203 Aws::String m_scheduleIdentifier;
204
205 Aws::String m_scheduleDescription;
206
207 Aws::Vector<Tag> m_tags;
208
209 Aws::Vector<Aws::Utils::DateTime> m_nextInvocations;
210
211 int m_associatedClusterCount{0};
212
213 Aws::Vector<ClusterAssociatedToSchedule> m_associatedClusters;
214
215 ResponseMetadata m_responseMetadata;
216 Aws::Http::HttpResponseCode m_HttpResponseCode;
217 bool m_scheduleDefinitionsHasBeenSet = false;
218 bool m_scheduleIdentifierHasBeenSet = false;
219 bool m_scheduleDescriptionHasBeenSet = false;
220 bool m_tagsHasBeenSet = false;
221 bool m_nextInvocationsHasBeenSet = false;
222 bool m_associatedClusterCountHasBeenSet = false;
223 bool m_associatedClustersHasBeenSet = false;
224 bool m_responseMetadataHasBeenSet = false;
225};
226
227} // namespace Model
228} // namespace Redshift
229} // namespace Aws
CreateSnapshotScheduleResult & WithTags(TagsT &&value)
AWS_REDSHIFT_API CreateSnapshotScheduleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateSnapshotScheduleResult & WithResponseMetadata(ResponseMetadataT &&value)
CreateSnapshotScheduleResult & WithScheduleDescription(ScheduleDescriptionT &&value)
AWS_REDSHIFT_API CreateSnapshotScheduleResult()=default
CreateSnapshotScheduleResult & WithScheduleIdentifier(ScheduleIdentifierT &&value)
const Aws::Vector< Aws::Utils::DateTime > & GetNextInvocations() const
CreateSnapshotScheduleResult & WithAssociatedClusterCount(int value)
CreateSnapshotScheduleResult & WithAssociatedClusters(AssociatedClustersT &&value)
CreateSnapshotScheduleResult & AddAssociatedClusters(AssociatedClustersT &&value)
CreateSnapshotScheduleResult & WithScheduleDefinitions(ScheduleDefinitionsT &&value)
CreateSnapshotScheduleResult & AddTags(TagsT &&value)
CreateSnapshotScheduleResult & AddNextInvocations(NextInvocationsT &&value)
const Aws::Vector< ClusterAssociatedToSchedule > & GetAssociatedClusters() const
CreateSnapshotScheduleResult & AddScheduleDefinitions(ScheduleDefinitionsT &&value)
const Aws::Vector< Aws::String > & GetScheduleDefinitions() const
CreateSnapshotScheduleResult & WithNextInvocations(NextInvocationsT &&value)
AWS_REDSHIFT_API CreateSnapshotScheduleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument