AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateGroupRequest.h
1
6#pragma once
7#include <aws/synthetics/Synthetics_EXPORTS.h>
8#include <aws/synthetics/SyntheticsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Synthetics
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_SYNTHETICS_API CreateGroupRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateGroup"; }
32
33 AWS_SYNTHETICS_API Aws::String SerializePayload() const override;
34
35
37
41 inline const Aws::String& GetName() const{ return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
44 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
45 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
46 inline CreateGroupRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
47 inline CreateGroupRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
48 inline CreateGroupRequest& WithName(const char* value) { SetName(value); return *this;}
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 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
62 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
63 inline CreateGroupRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
64 inline CreateGroupRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
65 inline CreateGroupRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
66 inline CreateGroupRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
67 inline CreateGroupRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
68 inline CreateGroupRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
69 inline CreateGroupRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
70 inline CreateGroupRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
71 inline CreateGroupRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
73 private:
74
75 Aws::String m_name;
76 bool m_nameHasBeenSet = false;
77
79 bool m_tagsHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace Synthetics
84} // namespace Aws
CreateGroupRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateGroupRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_SYNTHETICS_API Aws::String SerializePayload() const override
CreateGroupRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateGroupRequest & AddTags(Aws::String &&key, const char *value)
CreateGroupRequest & WithName(Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateGroupRequest & WithName(const char *value)
CreateGroupRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateGroupRequest & AddTags(Aws::String &&key, Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateGroupRequest & AddTags(const Aws::String &key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateGroupRequest & AddTags(const char *key, Aws::String &&value)
CreateGroupRequest & WithName(const Aws::String &value)
CreateGroupRequest & AddTags(const char *key, 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