AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateScheduleGroupRequest.h
1
6#pragma once
7#include <aws/scheduler/Scheduler_EXPORTS.h>
8#include <aws/scheduler/SchedulerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/scheduler/model/Tag.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace Scheduler
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SCHEDULER_API CreateScheduleGroupRequest();
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
35 AWS_SCHEDULER_API Aws::String SerializePayload() const override;
36
37
39
44 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
45 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
46 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
47 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
48 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
49 inline CreateScheduleGroupRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
50 inline CreateScheduleGroupRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
51 inline CreateScheduleGroupRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
53
55
58 inline const Aws::String& GetName() const{ return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
61 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
62 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
63 inline CreateScheduleGroupRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
64 inline CreateScheduleGroupRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
65 inline CreateScheduleGroupRequest& WithName(const char* value) { SetName(value); return *this;}
67
69
72 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
73 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
74 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
75 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
76 inline CreateScheduleGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
77 inline CreateScheduleGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
78 inline CreateScheduleGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
79 inline CreateScheduleGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
81 private:
82
83 Aws::String m_clientToken;
84 bool m_clientTokenHasBeenSet = false;
85
86 Aws::String m_name;
87 bool m_nameHasBeenSet = false;
88
89 Aws::Vector<Tag> m_tags;
90 bool m_tagsHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace Scheduler
95} // namespace Aws
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