AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateScheduleRequest.h
1
6#pragma once
7#include <aws/databrew/GlueDataBrew_EXPORTS.h>
8#include <aws/databrew/GlueDataBrewRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace GlueDataBrew
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_GLUEDATABREW_API CreateScheduleRequest() = 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 "CreateSchedule"; }
33
34 AWS_GLUEDATABREW_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::Vector<Aws::String>& GetJobNames() const { return m_jobNames; }
42 inline bool JobNamesHasBeenSet() const { return m_jobNamesHasBeenSet; }
43 template<typename JobNamesT = Aws::Vector<Aws::String>>
44 void SetJobNames(JobNamesT&& value) { m_jobNamesHasBeenSet = true; m_jobNames = std::forward<JobNamesT>(value); }
45 template<typename JobNamesT = Aws::Vector<Aws::String>>
46 CreateScheduleRequest& WithJobNames(JobNamesT&& value) { SetJobNames(std::forward<JobNamesT>(value)); return *this;}
47 template<typename JobNamesT = Aws::String>
48 CreateScheduleRequest& AddJobNames(JobNamesT&& value) { m_jobNamesHasBeenSet = true; m_jobNames.emplace_back(std::forward<JobNamesT>(value)); return *this; }
50
52
58 inline const Aws::String& GetCronExpression() const { return m_cronExpression; }
59 inline bool CronExpressionHasBeenSet() const { return m_cronExpressionHasBeenSet; }
60 template<typename CronExpressionT = Aws::String>
61 void SetCronExpression(CronExpressionT&& value) { m_cronExpressionHasBeenSet = true; m_cronExpression = std::forward<CronExpressionT>(value); }
62 template<typename CronExpressionT = Aws::String>
63 CreateScheduleRequest& WithCronExpression(CronExpressionT&& value) { SetCronExpression(std::forward<CronExpressionT>(value)); return *this;}
65
67
70 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
71 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
72 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
73 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
74 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
75 CreateScheduleRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
76 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
77 CreateScheduleRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
78 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
79 }
81
83
87 inline const Aws::String& GetName() const { return m_name; }
88 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
89 template<typename NameT = Aws::String>
90 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
91 template<typename NameT = Aws::String>
92 CreateScheduleRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
94 private:
95
96 Aws::Vector<Aws::String> m_jobNames;
97 bool m_jobNamesHasBeenSet = false;
98
99 Aws::String m_cronExpression;
100 bool m_cronExpressionHasBeenSet = false;
101
103 bool m_tagsHasBeenSet = false;
104
105 Aws::String m_name;
106 bool m_nameHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace GlueDataBrew
111} // 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