AWS SDK for C++

AWS SDK for C++ Version 1.11.686

Loading...
Searching...
No Matches
CreateScheduleGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/scheduler/SchedulerRequest.h>
11#include <aws/scheduler/Scheduler_EXPORTS.h>
12#include <aws/scheduler/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Scheduler {
18namespace Model {
19
23 public:
24 AWS_SCHEDULER_API CreateScheduleGroupRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateScheduleGroup"; }
31
32 AWS_SCHEDULER_API Aws::String SerializePayload() const override;
33
35
40 inline const Aws::String& GetClientToken() const { return m_clientToken; }
41 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
42 template <typename ClientTokenT = Aws::String>
43 void SetClientToken(ClientTokenT&& value) {
44 m_clientTokenHasBeenSet = true;
45 m_clientToken = std::forward<ClientTokenT>(value);
46 }
47 template <typename ClientTokenT = Aws::String>
49 SetClientToken(std::forward<ClientTokenT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
77 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
78 template <typename TagsT = Aws::Vector<Tag>>
79 void SetTags(TagsT&& value) {
80 m_tagsHasBeenSet = true;
81 m_tags = std::forward<TagsT>(value);
82 }
83 template <typename TagsT = Aws::Vector<Tag>>
85 SetTags(std::forward<TagsT>(value));
86 return *this;
87 }
88 template <typename TagsT = Tag>
90 m_tagsHasBeenSet = true;
91 m_tags.emplace_back(std::forward<TagsT>(value));
92 return *this;
93 }
95 private:
97 bool m_clientTokenHasBeenSet = true;
98
99 Aws::String m_name;
100 bool m_nameHasBeenSet = false;
101
102 Aws::Vector<Tag> m_tags;
103 bool m_tagsHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace Scheduler
108} // namespace Aws
AWS_SCHEDULER_API CreateScheduleGroupRequest()=default
CreateScheduleGroupRequest & WithClientToken(ClientTokenT &&value)
virtual const char * GetServiceRequestName() const override
AWS_SCHEDULER_API Aws::String SerializePayload() const override
CreateScheduleGroupRequest & WithTags(TagsT &&value)
CreateScheduleGroupRequest & AddTags(TagsT &&value)
CreateScheduleGroupRequest & WithName(NameT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector