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/greengrass/Greengrass_EXPORTS.h>
8#include <aws/greengrass/GreengrassRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/greengrass/model/GroupVersion.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Greengrass
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_GREENGRASS_API CreateGroupRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateGroup"; }
33
34 AWS_GREENGRASS_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetAmznClientToken() const{ return m_amznClientToken; }
44 inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
45 inline void SetAmznClientToken(const Aws::String& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = value; }
46 inline void SetAmznClientToken(Aws::String&& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = std::move(value); }
47 inline void SetAmznClientToken(const char* value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken.assign(value); }
48 inline CreateGroupRequest& WithAmznClientToken(const Aws::String& value) { SetAmznClientToken(value); return *this;}
49 inline CreateGroupRequest& WithAmznClientToken(Aws::String&& value) { SetAmznClientToken(std::move(value)); return *this;}
50 inline CreateGroupRequest& WithAmznClientToken(const char* value) { SetAmznClientToken(value); return *this;}
52
54
57 inline const GroupVersion& GetInitialVersion() const{ return m_initialVersion; }
58 inline bool InitialVersionHasBeenSet() const { return m_initialVersionHasBeenSet; }
59 inline void SetInitialVersion(const GroupVersion& value) { m_initialVersionHasBeenSet = true; m_initialVersion = value; }
60 inline void SetInitialVersion(GroupVersion&& value) { m_initialVersionHasBeenSet = true; m_initialVersion = std::move(value); }
61 inline CreateGroupRequest& WithInitialVersion(const GroupVersion& value) { SetInitialVersion(value); return *this;}
62 inline CreateGroupRequest& WithInitialVersion(GroupVersion&& value) { SetInitialVersion(std::move(value)); return *this;}
64
66
69 inline const Aws::String& GetName() const{ return m_name; }
70 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
71 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
72 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
73 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
74 inline CreateGroupRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
75 inline CreateGroupRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
76 inline CreateGroupRequest& WithName(const char* value) { SetName(value); return *this;}
78
80
83 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
84 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
85 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
86 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
87 inline CreateGroupRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
88 inline CreateGroupRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
89 inline CreateGroupRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
90 inline CreateGroupRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
91 inline CreateGroupRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
92 inline CreateGroupRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
93 inline CreateGroupRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
94 inline CreateGroupRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
95 inline CreateGroupRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
97 private:
98
99 Aws::String m_amznClientToken;
100 bool m_amznClientTokenHasBeenSet = false;
101
102 GroupVersion m_initialVersion;
103 bool m_initialVersionHasBeenSet = false;
104
105 Aws::String m_name;
106 bool m_nameHasBeenSet = false;
107
109 bool m_tagsHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace Greengrass
114} // namespace Aws
CreateGroupRequest & WithAmznClientToken(const Aws::String &value)
CreateGroupRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_GREENGRASS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateGroupRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateGroupRequest & WithName(const Aws::String &value)
CreateGroupRequest & WithName(const char *value)
CreateGroupRequest & WithInitialVersion(const GroupVersion &value)
CreateGroupRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateGroupRequest & WithInitialVersion(GroupVersion &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetAmznClientToken() const
virtual const char * GetServiceRequestName() const override
CreateGroupRequest & AddTags(Aws::String &&key, Aws::String &&value)
void SetInitialVersion(const GroupVersion &value)
AWS_GREENGRASS_API Aws::String SerializePayload() const override
CreateGroupRequest & AddTags(const char *key, Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateGroupRequest & AddTags(Aws::String &&key, const char *value)
void SetAmznClientToken(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateGroupRequest & WithAmznClientToken(Aws::String &&value)
CreateGroupRequest & WithAmznClientToken(const char *value)
CreateGroupRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateGroupRequest & AddTags(const char *key, const char *value)
CreateGroupRequest & WithName(Aws::String &&value)
const GroupVersion & GetInitialVersion() const
CreateGroupRequest & AddTags(Aws::String &&key, const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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