AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ModifySnapshotScheduleResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/redshift/Redshift_EXPORTS.h>
11#include <aws/redshift/model/ClusterAssociatedToSchedule.h>
12#include <aws/redshift/model/ResponseMetadata.h>
13#include <aws/redshift/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Xml {
23class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace Redshift {
27namespace Model {
36 public:
37 AWS_REDSHIFT_API ModifySnapshotScheduleResult() = default;
40
42
45 inline const Aws::Vector<Aws::String>& GetScheduleDefinitions() const { return m_scheduleDefinitions; }
46 template <typename ScheduleDefinitionsT = Aws::Vector<Aws::String>>
47 void SetScheduleDefinitions(ScheduleDefinitionsT&& value) {
48 m_scheduleDefinitionsHasBeenSet = true;
49 m_scheduleDefinitions = std::forward<ScheduleDefinitionsT>(value);
50 }
51 template <typename ScheduleDefinitionsT = Aws::Vector<Aws::String>>
53 SetScheduleDefinitions(std::forward<ScheduleDefinitionsT>(value));
54 return *this;
55 }
56 template <typename ScheduleDefinitionsT = Aws::String>
58 m_scheduleDefinitionsHasBeenSet = true;
59 m_scheduleDefinitions.emplace_back(std::forward<ScheduleDefinitionsT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetScheduleIdentifier() const { return m_scheduleIdentifier; }
69 template <typename ScheduleIdentifierT = Aws::String>
70 void SetScheduleIdentifier(ScheduleIdentifierT&& value) {
71 m_scheduleIdentifierHasBeenSet = true;
72 m_scheduleIdentifier = std::forward<ScheduleIdentifierT>(value);
73 }
74 template <typename ScheduleIdentifierT = Aws::String>
76 SetScheduleIdentifier(std::forward<ScheduleIdentifierT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetScheduleDescription() const { return m_scheduleDescription; }
86 template <typename ScheduleDescriptionT = Aws::String>
87 void SetScheduleDescription(ScheduleDescriptionT&& value) {
88 m_scheduleDescriptionHasBeenSet = true;
89 m_scheduleDescription = std::forward<ScheduleDescriptionT>(value);
90 }
91 template <typename ScheduleDescriptionT = Aws::String>
93 SetScheduleDescription(std::forward<ScheduleDescriptionT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
103 template <typename TagsT = Aws::Vector<Tag>>
104 void SetTags(TagsT&& value) {
105 m_tagsHasBeenSet = true;
106 m_tags = std::forward<TagsT>(value);
107 }
108 template <typename TagsT = Aws::Vector<Tag>>
110 SetTags(std::forward<TagsT>(value));
111 return *this;
112 }
113 template <typename TagsT = Tag>
115 m_tagsHasBeenSet = true;
116 m_tags.emplace_back(std::forward<TagsT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::Vector<Aws::Utils::DateTime>& GetNextInvocations() const { return m_nextInvocations; }
126 template <typename NextInvocationsT = Aws::Vector<Aws::Utils::DateTime>>
127 void SetNextInvocations(NextInvocationsT&& value) {
128 m_nextInvocationsHasBeenSet = true;
129 m_nextInvocations = std::forward<NextInvocationsT>(value);
130 }
131 template <typename NextInvocationsT = Aws::Vector<Aws::Utils::DateTime>>
133 SetNextInvocations(std::forward<NextInvocationsT>(value));
134 return *this;
135 }
136 template <typename NextInvocationsT = Aws::Utils::DateTime>
138 m_nextInvocationsHasBeenSet = true;
139 m_nextInvocations.emplace_back(std::forward<NextInvocationsT>(value));
140 return *this;
141 }
143
145
148 inline int GetAssociatedClusterCount() const { return m_associatedClusterCount; }
149 inline void SetAssociatedClusterCount(int value) {
150 m_associatedClusterCountHasBeenSet = true;
151 m_associatedClusterCount = value;
152 }
155 return *this;
156 }
158
160
164 inline const Aws::Vector<ClusterAssociatedToSchedule>& GetAssociatedClusters() const { return m_associatedClusters; }
165 template <typename AssociatedClustersT = Aws::Vector<ClusterAssociatedToSchedule>>
166 void SetAssociatedClusters(AssociatedClustersT&& value) {
167 m_associatedClustersHasBeenSet = true;
168 m_associatedClusters = std::forward<AssociatedClustersT>(value);
169 }
170 template <typename AssociatedClustersT = Aws::Vector<ClusterAssociatedToSchedule>>
172 SetAssociatedClusters(std::forward<AssociatedClustersT>(value));
173 return *this;
174 }
175 template <typename AssociatedClustersT = ClusterAssociatedToSchedule>
177 m_associatedClustersHasBeenSet = true;
178 m_associatedClusters.emplace_back(std::forward<AssociatedClustersT>(value));
179 return *this;
180 }
182
184
185 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
186 template <typename ResponseMetadataT = ResponseMetadata>
187 void SetResponseMetadata(ResponseMetadataT&& value) {
188 m_responseMetadataHasBeenSet = true;
189 m_responseMetadata = std::forward<ResponseMetadataT>(value);
190 }
191 template <typename ResponseMetadataT = ResponseMetadata>
193 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
194 return *this;
195 }
197 private:
198 Aws::Vector<Aws::String> m_scheduleDefinitions;
199
200 Aws::String m_scheduleIdentifier;
201
202 Aws::String m_scheduleDescription;
203
204 Aws::Vector<Tag> m_tags;
205
206 Aws::Vector<Aws::Utils::DateTime> m_nextInvocations;
207
208 int m_associatedClusterCount{0};
209
210 Aws::Vector<ClusterAssociatedToSchedule> m_associatedClusters;
211
212 ResponseMetadata m_responseMetadata;
213 bool m_scheduleDefinitionsHasBeenSet = false;
214 bool m_scheduleIdentifierHasBeenSet = false;
215 bool m_scheduleDescriptionHasBeenSet = false;
216 bool m_tagsHasBeenSet = false;
217 bool m_nextInvocationsHasBeenSet = false;
218 bool m_associatedClusterCountHasBeenSet = false;
219 bool m_associatedClustersHasBeenSet = false;
220 bool m_responseMetadataHasBeenSet = false;
221};
222
223} // namespace Model
224} // namespace Redshift
225} // namespace Aws
ModifySnapshotScheduleResult & WithTags(TagsT &&value)
ModifySnapshotScheduleResult & WithScheduleDescription(ScheduleDescriptionT &&value)
ModifySnapshotScheduleResult & WithAssociatedClusterCount(int value)
ModifySnapshotScheduleResult & WithNextInvocations(NextInvocationsT &&value)
ModifySnapshotScheduleResult & WithAssociatedClusters(AssociatedClustersT &&value)
AWS_REDSHIFT_API ModifySnapshotScheduleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ModifySnapshotScheduleResult & WithScheduleDefinitions(ScheduleDefinitionsT &&value)
ModifySnapshotScheduleResult & AddAssociatedClusters(AssociatedClustersT &&value)
ModifySnapshotScheduleResult & AddTags(TagsT &&value)
const Aws::Vector< Aws::String > & GetScheduleDefinitions() const
AWS_REDSHIFT_API ModifySnapshotScheduleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ModifySnapshotScheduleResult & WithResponseMetadata(ResponseMetadataT &&value)
ModifySnapshotScheduleResult & AddNextInvocations(NextInvocationsT &&value)
const Aws::Vector< Aws::Utils::DateTime > & GetNextInvocations() const
const Aws::Vector< ClusterAssociatedToSchedule > & GetAssociatedClusters() const
ModifySnapshotScheduleResult & AddScheduleDefinitions(ScheduleDefinitionsT &&value)
AWS_REDSHIFT_API ModifySnapshotScheduleResult()=default
ModifySnapshotScheduleResult & WithScheduleIdentifier(ScheduleIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument