AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateSnapshotScheduleResult.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/redshift/model/ResponseMetadata.h>
11#include <aws/redshift/model/Tag.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/redshift/model/ClusterAssociatedToSchedule.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Xml
24{
25 class XmlDocument;
26} // namespace Xml
27} // namespace Utils
28namespace Redshift
29{
30namespace Model
31{
40 {
41 public:
42 AWS_REDSHIFT_API CreateSnapshotScheduleResult() = default;
45
46
48
51 inline const Aws::Vector<Aws::String>& GetScheduleDefinitions() const { return m_scheduleDefinitions; }
52 template<typename ScheduleDefinitionsT = Aws::Vector<Aws::String>>
53 void SetScheduleDefinitions(ScheduleDefinitionsT&& value) { m_scheduleDefinitionsHasBeenSet = true; m_scheduleDefinitions = std::forward<ScheduleDefinitionsT>(value); }
54 template<typename ScheduleDefinitionsT = Aws::Vector<Aws::String>>
55 CreateSnapshotScheduleResult& WithScheduleDefinitions(ScheduleDefinitionsT&& value) { SetScheduleDefinitions(std::forward<ScheduleDefinitionsT>(value)); return *this;}
56 template<typename ScheduleDefinitionsT = Aws::String>
57 CreateSnapshotScheduleResult& AddScheduleDefinitions(ScheduleDefinitionsT&& value) { m_scheduleDefinitionsHasBeenSet = true; m_scheduleDefinitions.emplace_back(std::forward<ScheduleDefinitionsT>(value)); return *this; }
59
61
64 inline const Aws::String& GetScheduleIdentifier() const { return m_scheduleIdentifier; }
65 template<typename ScheduleIdentifierT = Aws::String>
66 void SetScheduleIdentifier(ScheduleIdentifierT&& value) { m_scheduleIdentifierHasBeenSet = true; m_scheduleIdentifier = std::forward<ScheduleIdentifierT>(value); }
67 template<typename ScheduleIdentifierT = Aws::String>
68 CreateSnapshotScheduleResult& WithScheduleIdentifier(ScheduleIdentifierT&& value) { SetScheduleIdentifier(std::forward<ScheduleIdentifierT>(value)); return *this;}
70
72
75 inline const Aws::String& GetScheduleDescription() const { return m_scheduleDescription; }
76 template<typename ScheduleDescriptionT = Aws::String>
77 void SetScheduleDescription(ScheduleDescriptionT&& value) { m_scheduleDescriptionHasBeenSet = true; m_scheduleDescription = std::forward<ScheduleDescriptionT>(value); }
78 template<typename ScheduleDescriptionT = Aws::String>
79 CreateSnapshotScheduleResult& WithScheduleDescription(ScheduleDescriptionT&& value) { SetScheduleDescription(std::forward<ScheduleDescriptionT>(value)); return *this;}
81
83
86 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
87 template<typename TagsT = Aws::Vector<Tag>>
88 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
89 template<typename TagsT = Aws::Vector<Tag>>
90 CreateSnapshotScheduleResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
91 template<typename TagsT = Tag>
92 CreateSnapshotScheduleResult& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
94
96
99 inline const Aws::Vector<Aws::Utils::DateTime>& GetNextInvocations() const { return m_nextInvocations; }
100 template<typename NextInvocationsT = Aws::Vector<Aws::Utils::DateTime>>
101 void SetNextInvocations(NextInvocationsT&& value) { m_nextInvocationsHasBeenSet = true; m_nextInvocations = std::forward<NextInvocationsT>(value); }
102 template<typename NextInvocationsT = Aws::Vector<Aws::Utils::DateTime>>
103 CreateSnapshotScheduleResult& WithNextInvocations(NextInvocationsT&& value) { SetNextInvocations(std::forward<NextInvocationsT>(value)); return *this;}
104 template<typename NextInvocationsT = Aws::Utils::DateTime>
105 CreateSnapshotScheduleResult& AddNextInvocations(NextInvocationsT&& value) { m_nextInvocationsHasBeenSet = true; m_nextInvocations.emplace_back(std::forward<NextInvocationsT>(value)); return *this; }
107
109
112 inline int GetAssociatedClusterCount() const { return m_associatedClusterCount; }
113 inline void SetAssociatedClusterCount(int value) { m_associatedClusterCountHasBeenSet = true; m_associatedClusterCount = value; }
116
118
122 inline const Aws::Vector<ClusterAssociatedToSchedule>& GetAssociatedClusters() const { return m_associatedClusters; }
123 template<typename AssociatedClustersT = Aws::Vector<ClusterAssociatedToSchedule>>
124 void SetAssociatedClusters(AssociatedClustersT&& value) { m_associatedClustersHasBeenSet = true; m_associatedClusters = std::forward<AssociatedClustersT>(value); }
125 template<typename AssociatedClustersT = Aws::Vector<ClusterAssociatedToSchedule>>
126 CreateSnapshotScheduleResult& WithAssociatedClusters(AssociatedClustersT&& value) { SetAssociatedClusters(std::forward<AssociatedClustersT>(value)); return *this;}
127 template<typename AssociatedClustersT = ClusterAssociatedToSchedule>
128 CreateSnapshotScheduleResult& AddAssociatedClusters(AssociatedClustersT&& value) { m_associatedClustersHasBeenSet = true; m_associatedClusters.emplace_back(std::forward<AssociatedClustersT>(value)); return *this; }
130
132
133 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
134 template<typename ResponseMetadataT = ResponseMetadata>
135 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
136 template<typename ResponseMetadataT = ResponseMetadata>
137 CreateSnapshotScheduleResult& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
139 private:
140
141 Aws::Vector<Aws::String> m_scheduleDefinitions;
142 bool m_scheduleDefinitionsHasBeenSet = false;
143
144 Aws::String m_scheduleIdentifier;
145 bool m_scheduleIdentifierHasBeenSet = false;
146
147 Aws::String m_scheduleDescription;
148 bool m_scheduleDescriptionHasBeenSet = false;
149
150 Aws::Vector<Tag> m_tags;
151 bool m_tagsHasBeenSet = false;
152
153 Aws::Vector<Aws::Utils::DateTime> m_nextInvocations;
154 bool m_nextInvocationsHasBeenSet = false;
155
156 int m_associatedClusterCount{0};
157 bool m_associatedClusterCountHasBeenSet = false;
158
159 Aws::Vector<ClusterAssociatedToSchedule> m_associatedClusters;
160 bool m_associatedClustersHasBeenSet = false;
161
162 ResponseMetadata m_responseMetadata;
163 bool m_responseMetadataHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace Redshift
168} // 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