AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/synthetics/SyntheticsRequest.h>
10#include <aws/synthetics/Synthetics_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Synthetics {
16namespace Model {
17
21 public:
22 AWS_SYNTHETICS_API CreateGroupRequest() = 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 "CreateGroup"; }
29
30 AWS_SYNTHETICS_API Aws::String SerializePayload() const override;
31
33
37 inline const Aws::String& GetName() const { return m_name; }
38 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
39 template <typename NameT = Aws::String>
40 void SetName(NameT&& value) {
41 m_nameHasBeenSet = true;
42 m_name = std::forward<NameT>(value);
43 }
44 template <typename NameT = Aws::String>
45 CreateGroupRequest& WithName(NameT&& value) {
46 SetName(std::forward<NameT>(value));
47 return *this;
48 }
50
52
59 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
60 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
61 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
62 void SetTags(TagsT&& value) {
63 m_tagsHasBeenSet = true;
64 m_tags = std::forward<TagsT>(value);
65 }
66 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
67 CreateGroupRequest& WithTags(TagsT&& value) {
68 SetTags(std::forward<TagsT>(value));
69 return *this;
70 }
71 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
72 CreateGroupRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
73 m_tagsHasBeenSet = true;
74 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_name;
80
82 bool m_nameHasBeenSet = false;
83 bool m_tagsHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace Synthetics
88} // namespace Aws
AWS_SYNTHETICS_API Aws::String SerializePayload() const override
CreateGroupRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateGroupRequest & WithName(NameT &&value)
CreateGroupRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_SYNTHETICS_API CreateGroupRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
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