AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetJobNames(const Aws::Vector<Aws::String>& value) { m_jobNamesHasBeenSet = true; m_jobNames = value; }
44 inline void SetJobNames(Aws::Vector<Aws::String>&& value) { m_jobNamesHasBeenSet = true; m_jobNames = std::move(value); }
45 inline CreateScheduleRequest& WithJobNames(const Aws::Vector<Aws::String>& value) { SetJobNames(value); return *this;}
46 inline CreateScheduleRequest& WithJobNames(Aws::Vector<Aws::String>&& value) { SetJobNames(std::move(value)); return *this;}
47 inline CreateScheduleRequest& AddJobNames(const Aws::String& value) { m_jobNamesHasBeenSet = true; m_jobNames.push_back(value); return *this; }
48 inline CreateScheduleRequest& AddJobNames(Aws::String&& value) { m_jobNamesHasBeenSet = true; m_jobNames.push_back(std::move(value)); return *this; }
49 inline CreateScheduleRequest& AddJobNames(const char* value) { m_jobNamesHasBeenSet = true; m_jobNames.push_back(value); return *this; }
51
53
59 inline const Aws::String& GetCronExpression() const{ return m_cronExpression; }
60 inline bool CronExpressionHasBeenSet() const { return m_cronExpressionHasBeenSet; }
61 inline void SetCronExpression(const Aws::String& value) { m_cronExpressionHasBeenSet = true; m_cronExpression = value; }
62 inline void SetCronExpression(Aws::String&& value) { m_cronExpressionHasBeenSet = true; m_cronExpression = std::move(value); }
63 inline void SetCronExpression(const char* value) { m_cronExpressionHasBeenSet = true; m_cronExpression.assign(value); }
64 inline CreateScheduleRequest& WithCronExpression(const Aws::String& value) { SetCronExpression(value); return *this;}
65 inline CreateScheduleRequest& WithCronExpression(Aws::String&& value) { SetCronExpression(std::move(value)); return *this;}
66 inline CreateScheduleRequest& WithCronExpression(const char* value) { SetCronExpression(value); return *this;}
68
70
73 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
74 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
75 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
76 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
77 inline CreateScheduleRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
78 inline CreateScheduleRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
79 inline CreateScheduleRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
80 inline CreateScheduleRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
81 inline CreateScheduleRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
82 inline CreateScheduleRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
83 inline CreateScheduleRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
84 inline CreateScheduleRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
85 inline CreateScheduleRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
87
89
93 inline const Aws::String& GetName() const{ return m_name; }
94 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
95 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
96 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
97 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
98 inline CreateScheduleRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
99 inline CreateScheduleRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
100 inline CreateScheduleRequest& WithName(const char* value) { SetName(value); return *this;}
102 private:
103
104 Aws::Vector<Aws::String> m_jobNames;
105 bool m_jobNamesHasBeenSet = false;
106
107 Aws::String m_cronExpression;
108 bool m_cronExpressionHasBeenSet = false;
109
111 bool m_tagsHasBeenSet = false;
112
113 Aws::String m_name;
114 bool m_nameHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace GlueDataBrew
119} // namespace Aws
CreateScheduleRequest & AddTags(Aws::String &&key, const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateScheduleRequest & WithCronExpression(const Aws::String &value)
CreateScheduleRequest & AddTags(const char *key, const char *value)
CreateScheduleRequest & AddTags(const char *key, Aws::String &&value)
void SetJobNames(const Aws::Vector< Aws::String > &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateScheduleRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_GLUEDATABREW_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateScheduleRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateScheduleRequest & AddTags(Aws::String &&key, const char *value)
CreateScheduleRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateScheduleRequest & WithName(const Aws::String &value)
CreateScheduleRequest & AddJobNames(const Aws::String &value)
CreateScheduleRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateScheduleRequest & WithCronExpression(Aws::String &&value)
CreateScheduleRequest & WithName(const char *value)
CreateScheduleRequest & WithJobNames(const Aws::Vector< Aws::String > &value)
CreateScheduleRequest & WithJobNames(Aws::Vector< Aws::String > &&value)
void SetJobNames(Aws::Vector< Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateScheduleRequest & WithName(Aws::String &&value)
CreateScheduleRequest & AddJobNames(Aws::String &&value)
CreateScheduleRequest & WithCronExpression(const char *value)
const Aws::Vector< Aws::String > & GetJobNames() const
CreateScheduleRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateScheduleRequest & AddJobNames(const char *value)
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