AWS SDK for C++  1.9.158
AWS SDK for C++
CreateSnapshotScheduleRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/redshift/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Redshift
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateSnapshotSchedule"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
45  inline const Aws::Vector<Aws::String>& GetScheduleDefinitions() const{ return m_scheduleDefinitions; }
46 
51  inline bool ScheduleDefinitionsHasBeenSet() const { return m_scheduleDefinitionsHasBeenSet; }
52 
57  inline void SetScheduleDefinitions(const Aws::Vector<Aws::String>& value) { m_scheduleDefinitionsHasBeenSet = true; m_scheduleDefinitions = value; }
58 
63  inline void SetScheduleDefinitions(Aws::Vector<Aws::String>&& value) { m_scheduleDefinitionsHasBeenSet = true; m_scheduleDefinitions = std::move(value); }
64 
69  inline CreateSnapshotScheduleRequest& WithScheduleDefinitions(const Aws::Vector<Aws::String>& value) { SetScheduleDefinitions(value); return *this;}
70 
75  inline CreateSnapshotScheduleRequest& WithScheduleDefinitions(Aws::Vector<Aws::String>&& value) { SetScheduleDefinitions(std::move(value)); return *this;}
76 
81  inline CreateSnapshotScheduleRequest& AddScheduleDefinitions(const Aws::String& value) { m_scheduleDefinitionsHasBeenSet = true; m_scheduleDefinitions.push_back(value); return *this; }
82 
87  inline CreateSnapshotScheduleRequest& AddScheduleDefinitions(Aws::String&& value) { m_scheduleDefinitionsHasBeenSet = true; m_scheduleDefinitions.push_back(std::move(value)); return *this; }
88 
93  inline CreateSnapshotScheduleRequest& AddScheduleDefinitions(const char* value) { m_scheduleDefinitionsHasBeenSet = true; m_scheduleDefinitions.push_back(value); return *this; }
94 
95 
100  inline const Aws::String& GetScheduleIdentifier() const{ return m_scheduleIdentifier; }
101 
106  inline bool ScheduleIdentifierHasBeenSet() const { return m_scheduleIdentifierHasBeenSet; }
107 
112  inline void SetScheduleIdentifier(const Aws::String& value) { m_scheduleIdentifierHasBeenSet = true; m_scheduleIdentifier = value; }
113 
118  inline void SetScheduleIdentifier(Aws::String&& value) { m_scheduleIdentifierHasBeenSet = true; m_scheduleIdentifier = std::move(value); }
119 
124  inline void SetScheduleIdentifier(const char* value) { m_scheduleIdentifierHasBeenSet = true; m_scheduleIdentifier.assign(value); }
125 
130  inline CreateSnapshotScheduleRequest& WithScheduleIdentifier(const Aws::String& value) { SetScheduleIdentifier(value); return *this;}
131 
136  inline CreateSnapshotScheduleRequest& WithScheduleIdentifier(Aws::String&& value) { SetScheduleIdentifier(std::move(value)); return *this;}
137 
142  inline CreateSnapshotScheduleRequest& WithScheduleIdentifier(const char* value) { SetScheduleIdentifier(value); return *this;}
143 
144 
148  inline const Aws::String& GetScheduleDescription() const{ return m_scheduleDescription; }
149 
153  inline bool ScheduleDescriptionHasBeenSet() const { return m_scheduleDescriptionHasBeenSet; }
154 
158  inline void SetScheduleDescription(const Aws::String& value) { m_scheduleDescriptionHasBeenSet = true; m_scheduleDescription = value; }
159 
163  inline void SetScheduleDescription(Aws::String&& value) { m_scheduleDescriptionHasBeenSet = true; m_scheduleDescription = std::move(value); }
164 
168  inline void SetScheduleDescription(const char* value) { m_scheduleDescriptionHasBeenSet = true; m_scheduleDescription.assign(value); }
169 
173  inline CreateSnapshotScheduleRequest& WithScheduleDescription(const Aws::String& value) { SetScheduleDescription(value); return *this;}
174 
178  inline CreateSnapshotScheduleRequest& WithScheduleDescription(Aws::String&& value) { SetScheduleDescription(std::move(value)); return *this;}
179 
183  inline CreateSnapshotScheduleRequest& WithScheduleDescription(const char* value) { SetScheduleDescription(value); return *this;}
184 
185 
189  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
190 
194  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
195 
199  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
200 
204  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
205 
209  inline CreateSnapshotScheduleRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
210 
214  inline CreateSnapshotScheduleRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
215 
219  inline CreateSnapshotScheduleRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
220 
224  inline CreateSnapshotScheduleRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
225 
226 
230  inline bool GetDryRun() const{ return m_dryRun; }
231 
235  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
236 
240  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
241 
245  inline CreateSnapshotScheduleRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
246 
247 
251  inline int GetNextInvocations() const{ return m_nextInvocations; }
252 
256  inline bool NextInvocationsHasBeenSet() const { return m_nextInvocationsHasBeenSet; }
257 
261  inline void SetNextInvocations(int value) { m_nextInvocationsHasBeenSet = true; m_nextInvocations = value; }
262 
266  inline CreateSnapshotScheduleRequest& WithNextInvocations(int value) { SetNextInvocations(value); return *this;}
267 
268  private:
269 
270  Aws::Vector<Aws::String> m_scheduleDefinitions;
271  bool m_scheduleDefinitionsHasBeenSet;
272 
273  Aws::String m_scheduleIdentifier;
274  bool m_scheduleIdentifierHasBeenSet;
275 
276  Aws::String m_scheduleDescription;
277  bool m_scheduleDescriptionHasBeenSet;
278 
279  Aws::Vector<Tag> m_tags;
280  bool m_tagsHasBeenSet;
281 
282  bool m_dryRun;
283  bool m_dryRunHasBeenSet;
284 
285  int m_nextInvocations;
286  bool m_nextInvocationsHasBeenSet;
287  };
288 
289 } // namespace Model
290 } // namespace Redshift
291 } // namespace Aws
Aws::Redshift::Model::Tag
Definition: Tag.h:33
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::CreateSnapshotScheduleRequest::SetScheduleDefinitions
void SetScheduleDefinitions(const Aws::Vector< Aws::String > &value)
Definition: CreateSnapshotScheduleRequest.h:57
Aws::Redshift::Model::CreateSnapshotScheduleRequest::AddTags
CreateSnapshotScheduleRequest & AddTags(const Tag &value)
Definition: CreateSnapshotScheduleRequest.h:219
Aws::Redshift::Model::CreateSnapshotScheduleRequest::AddTags
CreateSnapshotScheduleRequest & AddTags(Tag &&value)
Definition: CreateSnapshotScheduleRequest.h:224
Aws::Redshift::Model::CreateSnapshotScheduleRequest::WithTags
CreateSnapshotScheduleRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateSnapshotScheduleRequest.h:209
Aws::Redshift::Model::CreateSnapshotScheduleRequest::SetScheduleIdentifier
void SetScheduleIdentifier(Aws::String &&value)
Definition: CreateSnapshotScheduleRequest.h:118
Aws::Redshift::Model::CreateSnapshotScheduleRequest::AddScheduleDefinitions
CreateSnapshotScheduleRequest & AddScheduleDefinitions(const char *value)
Definition: CreateSnapshotScheduleRequest.h:93
Aws::Redshift::Model::CreateSnapshotScheduleRequest::WithScheduleDescription
CreateSnapshotScheduleRequest & WithScheduleDescription(Aws::String &&value)
Definition: CreateSnapshotScheduleRequest.h:178
Aws::Redshift::Model::CreateSnapshotScheduleRequest::NextInvocationsHasBeenSet
bool NextInvocationsHasBeenSet() const
Definition: CreateSnapshotScheduleRequest.h:256
Aws::Redshift::Model::CreateSnapshotScheduleRequest::WithScheduleDefinitions
CreateSnapshotScheduleRequest & WithScheduleDefinitions(const Aws::Vector< Aws::String > &value)
Definition: CreateSnapshotScheduleRequest.h:69
Aws::Redshift::Model::CreateSnapshotScheduleRequest::ScheduleDescriptionHasBeenSet
bool ScheduleDescriptionHasBeenSet() const
Definition: CreateSnapshotScheduleRequest.h:153
Aws::Redshift::Model::CreateSnapshotScheduleRequest
Definition: CreateSnapshotScheduleRequest.h:24
Aws::Redshift::Model::CreateSnapshotScheduleRequest::SetNextInvocations
void SetNextInvocations(int value)
Definition: CreateSnapshotScheduleRequest.h:261
Aws::Redshift::Model::CreateSnapshotScheduleRequest::GetScheduleDefinitions
const Aws::Vector< Aws::String > & GetScheduleDefinitions() const
Definition: CreateSnapshotScheduleRequest.h:45
Aws::Redshift::Model::CreateSnapshotScheduleRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateSnapshotScheduleRequest.h:189
Tag.h
Aws::Redshift::Model::CreateSnapshotScheduleRequest::SetScheduleDefinitions
void SetScheduleDefinitions(Aws::Vector< Aws::String > &&value)
Definition: CreateSnapshotScheduleRequest.h:63
Aws::Redshift::Model::CreateSnapshotScheduleRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Redshift::Model::CreateSnapshotScheduleRequest::GetNextInvocations
int GetNextInvocations() const
Definition: CreateSnapshotScheduleRequest.h:251
Aws::Redshift::Model::CreateSnapshotScheduleRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateSnapshotScheduleRequest.h:235
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
RedshiftRequest.h
Aws::Redshift::Model::CreateSnapshotScheduleRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateSnapshotScheduleRequest.h:199
Aws::Redshift::Model::CreateSnapshotScheduleRequest::AddScheduleDefinitions
CreateSnapshotScheduleRequest & AddScheduleDefinitions(const Aws::String &value)
Definition: CreateSnapshotScheduleRequest.h:81
Aws::Redshift::Model::CreateSnapshotScheduleRequest::SetScheduleIdentifier
void SetScheduleIdentifier(const char *value)
Definition: CreateSnapshotScheduleRequest.h:124
AWSVector.h
Aws::Redshift::Model::CreateSnapshotScheduleRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateSnapshotScheduleRequest.h:32
Aws::Redshift::Model::CreateSnapshotScheduleRequest::ScheduleDefinitionsHasBeenSet
bool ScheduleDefinitionsHasBeenSet() const
Definition: CreateSnapshotScheduleRequest.h:51
Aws::Redshift::Model::CreateSnapshotScheduleRequest::WithScheduleDefinitions
CreateSnapshotScheduleRequest & WithScheduleDefinitions(Aws::Vector< Aws::String > &&value)
Definition: CreateSnapshotScheduleRequest.h:75
Aws::Redshift::Model::CreateSnapshotScheduleRequest::GetScheduleDescription
const Aws::String & GetScheduleDescription() const
Definition: CreateSnapshotScheduleRequest.h:148
Aws::Redshift::Model::CreateSnapshotScheduleRequest::ScheduleIdentifierHasBeenSet
bool ScheduleIdentifierHasBeenSet() const
Definition: CreateSnapshotScheduleRequest.h:106
Aws::Redshift::Model::CreateSnapshotScheduleRequest::GetScheduleIdentifier
const Aws::String & GetScheduleIdentifier() const
Definition: CreateSnapshotScheduleRequest.h:100
Aws::Redshift::Model::CreateSnapshotScheduleRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateSnapshotScheduleRequest.h:240
Aws::Redshift::Model::CreateSnapshotScheduleRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateSnapshotScheduleRequest.h:194
Aws::Redshift::Model::CreateSnapshotScheduleRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateSnapshotScheduleRequest.h:204
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::CreateSnapshotScheduleRequest::WithDryRun
CreateSnapshotScheduleRequest & WithDryRun(bool value)
Definition: CreateSnapshotScheduleRequest.h:245
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
Aws::Redshift::Model::CreateSnapshotScheduleRequest::SetScheduleDescription
void SetScheduleDescription(const char *value)
Definition: CreateSnapshotScheduleRequest.h:168
AWSString.h
Aws::Redshift::Model::CreateSnapshotScheduleRequest::WithScheduleIdentifier
CreateSnapshotScheduleRequest & WithScheduleIdentifier(const char *value)
Definition: CreateSnapshotScheduleRequest.h:142
Aws::Redshift::Model::CreateSnapshotScheduleRequest::SetScheduleDescription
void SetScheduleDescription(const Aws::String &value)
Definition: CreateSnapshotScheduleRequest.h:158
Aws::Redshift::Model::CreateSnapshotScheduleRequest::WithScheduleIdentifier
CreateSnapshotScheduleRequest & WithScheduleIdentifier(const Aws::String &value)
Definition: CreateSnapshotScheduleRequest.h:130
Aws::Redshift::Model::CreateSnapshotScheduleRequest::WithScheduleDescription
CreateSnapshotScheduleRequest & WithScheduleDescription(const Aws::String &value)
Definition: CreateSnapshotScheduleRequest.h:173
Aws::Redshift::Model::CreateSnapshotScheduleRequest::SetScheduleDescription
void SetScheduleDescription(Aws::String &&value)
Definition: CreateSnapshotScheduleRequest.h:163
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::CreateSnapshotScheduleRequest::SetScheduleIdentifier
void SetScheduleIdentifier(const Aws::String &value)
Definition: CreateSnapshotScheduleRequest.h:112
Redshift_EXPORTS.h
Aws::Redshift::Model::CreateSnapshotScheduleRequest::AddScheduleDefinitions
CreateSnapshotScheduleRequest & AddScheduleDefinitions(Aws::String &&value)
Definition: CreateSnapshotScheduleRequest.h:87
Aws::Redshift::Model::CreateSnapshotScheduleRequest::WithTags
CreateSnapshotScheduleRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateSnapshotScheduleRequest.h:214
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::CreateSnapshotScheduleRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Redshift::Model::CreateSnapshotScheduleRequest::WithNextInvocations
CreateSnapshotScheduleRequest & WithNextInvocations(int value)
Definition: CreateSnapshotScheduleRequest.h:266
Aws::Redshift::Model::CreateSnapshotScheduleRequest::WithScheduleDescription
CreateSnapshotScheduleRequest & WithScheduleDescription(const char *value)
Definition: CreateSnapshotScheduleRequest.h:183
Aws::Redshift::Model::CreateSnapshotScheduleRequest::GetDryRun
bool GetDryRun() const
Definition: CreateSnapshotScheduleRequest.h:230
Aws::Redshift::Model::CreateSnapshotScheduleRequest::WithScheduleIdentifier
CreateSnapshotScheduleRequest & WithScheduleIdentifier(Aws::String &&value)
Definition: CreateSnapshotScheduleRequest.h:136
Aws::Redshift::Model::CreateSnapshotScheduleRequest::CreateSnapshotScheduleRequest
CreateSnapshotScheduleRequest()