AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
CreateScheduleGroupRequest.h
Go to the documentation of this file.
1
6#pragma once
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace Scheduler
18{
19namespace Model
20{
21
25 {
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateScheduleGroup"; }
34
36
37
43 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
44
50 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
51
57 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
58
64 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
65
71 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
72
78 inline CreateScheduleGroupRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
79
85 inline CreateScheduleGroupRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
86
92 inline CreateScheduleGroupRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
93
94
98 inline const Aws::String& GetName() const{ return m_name; }
99
103 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
104
108 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
109
113 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
114
118 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
119
123 inline CreateScheduleGroupRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
124
128 inline CreateScheduleGroupRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
129
133 inline CreateScheduleGroupRequest& WithName(const char* value) { SetName(value); return *this;}
134
135
139 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
140
144 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
145
149 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
150
154 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
155
159 inline CreateScheduleGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
160
164 inline CreateScheduleGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
165
169 inline CreateScheduleGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
170
174 inline CreateScheduleGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
175
176 private:
177
178 Aws::String m_clientToken;
179 bool m_clientTokenHasBeenSet = false;
180
181 Aws::String m_name;
182 bool m_nameHasBeenSet = false;
183
184 Aws::Vector<Tag> m_tags;
185 bool m_tagsHasBeenSet = false;
186 };
187
188} // namespace Model
189} // namespace Scheduler
190} // namespace Aws
#define AWS_SCHEDULER_API
CreateScheduleGroupRequest & WithClientToken(const char *value)
CreateScheduleGroupRequest & WithName(const Aws::String &value)
CreateScheduleGroupRequest & WithTags(Aws::Vector< Tag > &&value)
CreateScheduleGroupRequest & WithName(const char *value)
CreateScheduleGroupRequest & AddTags(const Tag &value)
virtual const char * GetServiceRequestName() const override
AWS_SCHEDULER_API Aws::String SerializePayload() const override
CreateScheduleGroupRequest & WithClientToken(const Aws::String &value)
CreateScheduleGroupRequest & WithClientToken(Aws::String &&value)
CreateScheduleGroupRequest & WithTags(const Aws::Vector< Tag > &value)
CreateScheduleGroupRequest & WithName(Aws::String &&value)
CreateScheduleGroupRequest & AddTags(Tag &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector