AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
CreateProfileRequest.h
1
6#pragma once
7#include <aws/cloudextensions/CloudExtensionsRequest.h>
8#include <aws/cloudextensions/CloudExtensions_EXPORTS.h>
9#include <aws/cloudextensions/model/ExtensionDefaults.h>
10#include <aws/core/utils/UUID.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace CloudExtensions {
18namespace Model {
19
26 public:
27 AWS_CLOUDEXTENSIONS_API CreateProfileRequest() = default;
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 "CreateProfile"; }
34
35 AWS_CLOUDEXTENSIONS_API Aws::String SerializePayload() const override;
36
38
39 inline const Aws::String& GetClientToken() const { return m_clientToken; }
40 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
41 template <typename ClientTokenT = Aws::String>
42 void SetClientToken(ClientTokenT&& value) {
43 m_clientTokenHasBeenSet = true;
44 m_clientToken = std::forward<ClientTokenT>(value);
45 }
46 template <typename ClientTokenT = Aws::String>
47 CreateProfileRequest& WithClientToken(ClientTokenT&& value) {
48 SetClientToken(std::forward<ClientTokenT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template <typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) {
80 m_descriptionHasBeenSet = true;
81 m_description = std::forward<DescriptionT>(value);
82 }
83 template <typename DescriptionT = Aws::String>
84 CreateProfileRequest& WithDescription(DescriptionT&& value) {
85 SetDescription(std::forward<DescriptionT>(value));
86 return *this;
87 }
89
91
95 inline const ExtensionDefaults& GetExtensionDefaults() const { return m_extensionDefaults; }
96 inline bool ExtensionDefaultsHasBeenSet() const { return m_extensionDefaultsHasBeenSet; }
97 template <typename ExtensionDefaultsT = ExtensionDefaults>
98 void SetExtensionDefaults(ExtensionDefaultsT&& value) {
99 m_extensionDefaultsHasBeenSet = true;
100 m_extensionDefaults = std::forward<ExtensionDefaultsT>(value);
101 }
102 template <typename ExtensionDefaultsT = ExtensionDefaults>
103 CreateProfileRequest& WithExtensionDefaults(ExtensionDefaultsT&& value) {
104 SetExtensionDefaults(std::forward<ExtensionDefaultsT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
114 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
115 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
116 void SetTags(TagsT&& value) {
117 m_tagsHasBeenSet = true;
118 m_tags = std::forward<TagsT>(value);
119 }
120 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
122 SetTags(std::forward<TagsT>(value));
123 return *this;
124 }
125 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
126 CreateProfileRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
127 m_tagsHasBeenSet = true;
128 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
129 return *this;
130 }
132 private:
134
135 Aws::String m_name;
136
137 Aws::String m_description;
138
139 ExtensionDefaults m_extensionDefaults;
140
142 bool m_clientTokenHasBeenSet = true;
143 bool m_nameHasBeenSet = false;
144 bool m_descriptionHasBeenSet = false;
145 bool m_extensionDefaultsHasBeenSet = false;
146 bool m_tagsHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace CloudExtensions
151} // namespace Aws
void SetExtensionDefaults(ExtensionDefaultsT &&value)
CreateProfileRequest & WithName(NameT &&value)
CreateProfileRequest & WithDescription(DescriptionT &&value)
CreateProfileRequest & WithExtensionDefaults(ExtensionDefaultsT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_CLOUDEXTENSIONS_API Aws::String SerializePayload() const override
AWS_CLOUDEXTENSIONS_API CreateProfileRequest()=default
CreateProfileRequest & WithClientToken(ClientTokenT &&value)
const ExtensionDefaults & GetExtensionDefaults() const
CreateProfileRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateProfileRequest & WithTags(TagsT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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