AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
UpdateScheduleRequest.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/databrew/GlueDataBrewRequest.h>
10#include <aws/databrew/GlueDataBrew_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace GlueDataBrew {
16namespace Model {
17
21 public:
22 AWS_GLUEDATABREW_API UpdateScheduleRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateSchedule"; }
29
30 AWS_GLUEDATABREW_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::Vector<Aws::String>& GetJobNames() const { return m_jobNames; }
37 inline bool JobNamesHasBeenSet() const { return m_jobNamesHasBeenSet; }
38 template <typename JobNamesT = Aws::Vector<Aws::String>>
39 void SetJobNames(JobNamesT&& value) {
40 m_jobNamesHasBeenSet = true;
41 m_jobNames = std::forward<JobNamesT>(value);
42 }
43 template <typename JobNamesT = Aws::Vector<Aws::String>>
44 UpdateScheduleRequest& WithJobNames(JobNamesT&& value) {
45 SetJobNames(std::forward<JobNamesT>(value));
46 return *this;
47 }
48 template <typename JobNamesT = Aws::String>
49 UpdateScheduleRequest& AddJobNames(JobNamesT&& value) {
50 m_jobNamesHasBeenSet = true;
51 m_jobNames.emplace_back(std::forward<JobNamesT>(value));
52 return *this;
53 }
55
57
63 inline const Aws::String& GetCronExpression() const { return m_cronExpression; }
64 inline bool CronExpressionHasBeenSet() const { return m_cronExpressionHasBeenSet; }
65 template <typename CronExpressionT = Aws::String>
66 void SetCronExpression(CronExpressionT&& value) {
67 m_cronExpressionHasBeenSet = true;
68 m_cronExpression = std::forward<CronExpressionT>(value);
69 }
70 template <typename CronExpressionT = Aws::String>
71 UpdateScheduleRequest& WithCronExpression(CronExpressionT&& value) {
72 SetCronExpression(std::forward<CronExpressionT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetName() const { return m_name; }
82 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
83 template <typename NameT = Aws::String>
84 void SetName(NameT&& value) {
85 m_nameHasBeenSet = true;
86 m_name = std::forward<NameT>(value);
87 }
88 template <typename NameT = Aws::String>
90 SetName(std::forward<NameT>(value));
91 return *this;
92 }
94 private:
95 Aws::Vector<Aws::String> m_jobNames;
96
97 Aws::String m_cronExpression;
98
99 Aws::String m_name;
100 bool m_jobNamesHasBeenSet = false;
101 bool m_cronExpressionHasBeenSet = false;
102 bool m_nameHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace GlueDataBrew
107} // namespace Aws
UpdateScheduleRequest & WithCronExpression(CronExpressionT &&value)
UpdateScheduleRequest & WithJobNames(JobNamesT &&value)
UpdateScheduleRequest & WithName(NameT &&value)
const Aws::Vector< Aws::String > & GetJobNames() const
AWS_GLUEDATABREW_API Aws::String SerializePayload() const override
UpdateScheduleRequest & AddJobNames(JobNamesT &&value)
virtual const char * GetServiceRequestName() const override
AWS_GLUEDATABREW_API UpdateScheduleRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector