AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateScheduleRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/databrew/GlueDataBrewRequest.h>
11#include <aws/databrew/GlueDataBrew_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16namespace GlueDataBrew {
17namespace Model {
18
22 public:
23 AWS_GLUEDATABREW_API CreateScheduleRequest() = 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 "CreateSchedule"; }
30
31 AWS_GLUEDATABREW_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::Vector<Aws::String>& GetJobNames() const { return m_jobNames; }
38 inline bool JobNamesHasBeenSet() const { return m_jobNamesHasBeenSet; }
39 template <typename JobNamesT = Aws::Vector<Aws::String>>
40 void SetJobNames(JobNamesT&& value) {
41 m_jobNamesHasBeenSet = true;
42 m_jobNames = std::forward<JobNamesT>(value);
43 }
44 template <typename JobNamesT = Aws::Vector<Aws::String>>
45 CreateScheduleRequest& WithJobNames(JobNamesT&& value) {
46 SetJobNames(std::forward<JobNamesT>(value));
47 return *this;
48 }
49 template <typename JobNamesT = Aws::String>
50 CreateScheduleRequest& AddJobNames(JobNamesT&& value) {
51 m_jobNamesHasBeenSet = true;
52 m_jobNames.emplace_back(std::forward<JobNamesT>(value));
53 return *this;
54 }
56
58
64 inline const Aws::String& GetCronExpression() const { return m_cronExpression; }
65 inline bool CronExpressionHasBeenSet() const { return m_cronExpressionHasBeenSet; }
66 template <typename CronExpressionT = Aws::String>
67 void SetCronExpression(CronExpressionT&& value) {
68 m_cronExpressionHasBeenSet = true;
69 m_cronExpression = std::forward<CronExpressionT>(value);
70 }
71 template <typename CronExpressionT = Aws::String>
72 CreateScheduleRequest& WithCronExpression(CronExpressionT&& value) {
73 SetCronExpression(std::forward<CronExpressionT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
83 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
84 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
85 void SetTags(TagsT&& value) {
86 m_tagsHasBeenSet = true;
87 m_tags = std::forward<TagsT>(value);
88 }
89 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
91 SetTags(std::forward<TagsT>(value));
92 return *this;
93 }
94 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
95 CreateScheduleRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
96 m_tagsHasBeenSet = true;
97 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
98 return *this;
99 }
101
103
107 inline const Aws::String& GetName() const { return m_name; }
108 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
109 template <typename NameT = Aws::String>
110 void SetName(NameT&& value) {
111 m_nameHasBeenSet = true;
112 m_name = std::forward<NameT>(value);
113 }
114 template <typename NameT = Aws::String>
116 SetName(std::forward<NameT>(value));
117 return *this;
118 }
120 private:
121 Aws::Vector<Aws::String> m_jobNames;
122
123 Aws::String m_cronExpression;
124
126
127 Aws::String m_name;
128 bool m_jobNamesHasBeenSet = false;
129 bool m_cronExpressionHasBeenSet = false;
130 bool m_tagsHasBeenSet = false;
131 bool m_nameHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace GlueDataBrew
136} // namespace Aws
CreateScheduleRequest & WithCronExpression(CronExpressionT &&value)
CreateScheduleRequest & WithName(NameT &&value)
AWS_GLUEDATABREW_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateScheduleRequest & AddJobNames(JobNamesT &&value)
CreateScheduleRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateScheduleRequest & WithJobNames(JobNamesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateScheduleRequest & WithTags(TagsT &&value)
AWS_GLUEDATABREW_API CreateScheduleRequest()=default
const Aws::Vector< Aws::String > & GetJobNames() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector