AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateSnapshotScheduleRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/redshift/RedshiftRequest.h>
10#include <aws/redshift/Redshift_EXPORTS.h>
11#include <aws/redshift/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Redshift {
17namespace Model {
18
22 public:
23 AWS_REDSHIFT_API CreateSnapshotScheduleRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateSnapshotSchedule"; }
30
31 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
42 inline const Aws::Vector<Aws::String>& GetScheduleDefinitions() const { return m_scheduleDefinitions; }
43 inline bool ScheduleDefinitionsHasBeenSet() const { return m_scheduleDefinitionsHasBeenSet; }
44 template <typename ScheduleDefinitionsT = Aws::Vector<Aws::String>>
45 void SetScheduleDefinitions(ScheduleDefinitionsT&& value) {
46 m_scheduleDefinitionsHasBeenSet = true;
47 m_scheduleDefinitions = std::forward<ScheduleDefinitionsT>(value);
48 }
49 template <typename ScheduleDefinitionsT = Aws::Vector<Aws::String>>
51 SetScheduleDefinitions(std::forward<ScheduleDefinitionsT>(value));
52 return *this;
53 }
54 template <typename ScheduleDefinitionsT = Aws::String>
56 m_scheduleDefinitionsHasBeenSet = true;
57 m_scheduleDefinitions.emplace_back(std::forward<ScheduleDefinitionsT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::String& GetScheduleIdentifier() const { return m_scheduleIdentifier; }
68 inline bool ScheduleIdentifierHasBeenSet() const { return m_scheduleIdentifierHasBeenSet; }
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 inline bool ScheduleDescriptionHasBeenSet() const { return m_scheduleDescriptionHasBeenSet; }
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 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
105 template <typename TagsT = Aws::Vector<Tag>>
106 void SetTags(TagsT&& value) {
107 m_tagsHasBeenSet = true;
108 m_tags = std::forward<TagsT>(value);
109 }
110 template <typename TagsT = Aws::Vector<Tag>>
112 SetTags(std::forward<TagsT>(value));
113 return *this;
114 }
115 template <typename TagsT = Tag>
117 m_tagsHasBeenSet = true;
118 m_tags.emplace_back(std::forward<TagsT>(value));
119 return *this;
120 }
122
124
127 inline bool GetDryRun() const { return m_dryRun; }
128 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
129 inline void SetDryRun(bool value) {
130 m_dryRunHasBeenSet = true;
131 m_dryRun = value;
132 }
134 SetDryRun(value);
135 return *this;
136 }
138
140
143 inline int GetNextInvocations() const { return m_nextInvocations; }
144 inline bool NextInvocationsHasBeenSet() const { return m_nextInvocationsHasBeenSet; }
145 inline void SetNextInvocations(int value) {
146 m_nextInvocationsHasBeenSet = true;
147 m_nextInvocations = value;
148 }
150 SetNextInvocations(value);
151 return *this;
152 }
154 private:
155 Aws::Vector<Aws::String> m_scheduleDefinitions;
156
157 Aws::String m_scheduleIdentifier;
158
159 Aws::String m_scheduleDescription;
160
161 Aws::Vector<Tag> m_tags;
162
163 bool m_dryRun{false};
164
165 int m_nextInvocations{0};
166 bool m_scheduleDefinitionsHasBeenSet = false;
167 bool m_scheduleIdentifierHasBeenSet = false;
168 bool m_scheduleDescriptionHasBeenSet = false;
169 bool m_tagsHasBeenSet = false;
170 bool m_dryRunHasBeenSet = false;
171 bool m_nextInvocationsHasBeenSet = false;
172};
173
174} // namespace Model
175} // namespace Redshift
176} // namespace Aws
CreateSnapshotScheduleRequest & AddTags(TagsT &&value)
const Aws::Vector< Aws::String > & GetScheduleDefinitions() const
CreateSnapshotScheduleRequest & WithScheduleDefinitions(ScheduleDefinitionsT &&value)
CreateSnapshotScheduleRequest & WithScheduleIdentifier(ScheduleIdentifierT &&value)
AWS_REDSHIFT_API CreateSnapshotScheduleRequest()=default
AWS_REDSHIFT_API Aws::String SerializePayload() const override
CreateSnapshotScheduleRequest & WithTags(TagsT &&value)
CreateSnapshotScheduleRequest & WithScheduleDescription(ScheduleDescriptionT &&value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateSnapshotScheduleRequest & WithNextInvocations(int value)
CreateSnapshotScheduleRequest & AddScheduleDefinitions(ScheduleDefinitionsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector