AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateRegistryRequest.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/schemas/SchemasRequest.h>
10#include <aws/schemas/Schemas_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Schemas {
16namespace Model {
17
21 public:
22 AWS_SCHEMAS_API CreateRegistryRequest() = 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 "CreateRegistry"; }
29
30 AWS_SCHEMAS_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetDescription() const { return m_description; }
37 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
38 template <typename DescriptionT = Aws::String>
39 void SetDescription(DescriptionT&& value) {
40 m_descriptionHasBeenSet = true;
41 m_description = std::forward<DescriptionT>(value);
42 }
43 template <typename DescriptionT = Aws::String>
44 CreateRegistryRequest& WithDescription(DescriptionT&& value) {
45 SetDescription(std::forward<DescriptionT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetRegistryName() const { return m_registryName; }
55 inline bool RegistryNameHasBeenSet() const { return m_registryNameHasBeenSet; }
56 template <typename RegistryNameT = Aws::String>
57 void SetRegistryName(RegistryNameT&& value) {
58 m_registryNameHasBeenSet = true;
59 m_registryName = std::forward<RegistryNameT>(value);
60 }
61 template <typename RegistryNameT = Aws::String>
62 CreateRegistryRequest& WithRegistryName(RegistryNameT&& value) {
63 SetRegistryName(std::forward<RegistryNameT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
73 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
74 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
75 void SetTags(TagsT&& value) {
76 m_tagsHasBeenSet = true;
77 m_tags = std::forward<TagsT>(value);
78 }
79 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
81 SetTags(std::forward<TagsT>(value));
82 return *this;
83 }
84 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
85 CreateRegistryRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
86 m_tagsHasBeenSet = true;
87 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_description;
93
94 Aws::String m_registryName;
95
97 bool m_descriptionHasBeenSet = false;
98 bool m_registryNameHasBeenSet = false;
99 bool m_tagsHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace Schemas
104} // namespace Aws
AWS_SCHEMAS_API Aws::String SerializePayload() const override
CreateRegistryRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
virtual const char * GetServiceRequestName() const override
CreateRegistryRequest & WithRegistryName(RegistryNameT &&value)
CreateRegistryRequest & WithDescription(DescriptionT &&value)
AWS_SCHEMAS_API CreateRegistryRequest()=default
CreateRegistryRequest & WithTags(TagsT &&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