AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateSnapshotScheduleRequest.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/redshift/RedshiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/redshift/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Redshift
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_REDSHIFT_API CreateSnapshotScheduleRequest() = default;
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_REDSHIFT_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
46 inline const Aws::Vector<Aws::String>& GetScheduleDefinitions() const { return m_scheduleDefinitions; }
47 inline bool ScheduleDefinitionsHasBeenSet() const { return m_scheduleDefinitionsHasBeenSet; }
48 template<typename ScheduleDefinitionsT = Aws::Vector<Aws::String>>
49 void SetScheduleDefinitions(ScheduleDefinitionsT&& value) { m_scheduleDefinitionsHasBeenSet = true; m_scheduleDefinitions = std::forward<ScheduleDefinitionsT>(value); }
50 template<typename ScheduleDefinitionsT = Aws::Vector<Aws::String>>
51 CreateSnapshotScheduleRequest& WithScheduleDefinitions(ScheduleDefinitionsT&& value) { SetScheduleDefinitions(std::forward<ScheduleDefinitionsT>(value)); return *this;}
52 template<typename ScheduleDefinitionsT = Aws::String>
53 CreateSnapshotScheduleRequest& AddScheduleDefinitions(ScheduleDefinitionsT&& value) { m_scheduleDefinitionsHasBeenSet = true; m_scheduleDefinitions.emplace_back(std::forward<ScheduleDefinitionsT>(value)); return *this; }
55
57
61 inline const Aws::String& GetScheduleIdentifier() const { return m_scheduleIdentifier; }
62 inline bool ScheduleIdentifierHasBeenSet() const { return m_scheduleIdentifierHasBeenSet; }
63 template<typename ScheduleIdentifierT = Aws::String>
64 void SetScheduleIdentifier(ScheduleIdentifierT&& value) { m_scheduleIdentifierHasBeenSet = true; m_scheduleIdentifier = std::forward<ScheduleIdentifierT>(value); }
65 template<typename ScheduleIdentifierT = Aws::String>
66 CreateSnapshotScheduleRequest& WithScheduleIdentifier(ScheduleIdentifierT&& value) { SetScheduleIdentifier(std::forward<ScheduleIdentifierT>(value)); return *this;}
68
70
73 inline const Aws::String& GetScheduleDescription() const { return m_scheduleDescription; }
74 inline bool ScheduleDescriptionHasBeenSet() const { return m_scheduleDescriptionHasBeenSet; }
75 template<typename ScheduleDescriptionT = Aws::String>
76 void SetScheduleDescription(ScheduleDescriptionT&& value) { m_scheduleDescriptionHasBeenSet = true; m_scheduleDescription = std::forward<ScheduleDescriptionT>(value); }
77 template<typename ScheduleDescriptionT = Aws::String>
78 CreateSnapshotScheduleRequest& WithScheduleDescription(ScheduleDescriptionT&& value) { SetScheduleDescription(std::forward<ScheduleDescriptionT>(value)); return *this;}
80
82
85 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
86 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
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 CreateSnapshotScheduleRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
91 template<typename TagsT = Tag>
92 CreateSnapshotScheduleRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
94
96
99 inline bool GetDryRun() const { return m_dryRun; }
100 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
101 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
102 inline CreateSnapshotScheduleRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
104
106
109 inline int GetNextInvocations() const { return m_nextInvocations; }
110 inline bool NextInvocationsHasBeenSet() const { return m_nextInvocationsHasBeenSet; }
111 inline void SetNextInvocations(int value) { m_nextInvocationsHasBeenSet = true; m_nextInvocations = value; }
112 inline CreateSnapshotScheduleRequest& WithNextInvocations(int value) { SetNextInvocations(value); return *this;}
114 private:
115
116 Aws::Vector<Aws::String> m_scheduleDefinitions;
117 bool m_scheduleDefinitionsHasBeenSet = false;
118
119 Aws::String m_scheduleIdentifier;
120 bool m_scheduleIdentifierHasBeenSet = false;
121
122 Aws::String m_scheduleDescription;
123 bool m_scheduleDescriptionHasBeenSet = false;
124
125 Aws::Vector<Tag> m_tags;
126 bool m_tagsHasBeenSet = false;
127
128 bool m_dryRun{false};
129 bool m_dryRunHasBeenSet = false;
130
131 int m_nextInvocations{0};
132 bool m_nextInvocationsHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace Redshift
137} // 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