AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
PutResourceConfigRequest.h
1
6#pragma once
7#include <aws/config/ConfigServiceRequest.h>
8#include <aws/config/ConfigService_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace ConfigService {
16namespace Model {
17
21 public:
22 AWS_CONFIGSERVICE_API PutResourceConfigRequest() = 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 "PutResourceConfig"; }
29
30 AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override;
31
32 AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
41 inline const Aws::String& GetResourceType() const { return m_resourceType; }
42 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
43 template <typename ResourceTypeT = Aws::String>
44 void SetResourceType(ResourceTypeT&& value) {
45 m_resourceTypeHasBeenSet = true;
46 m_resourceType = std::forward<ResourceTypeT>(value);
47 }
48 template <typename ResourceTypeT = Aws::String>
50 SetResourceType(std::forward<ResourceTypeT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetSchemaVersionId() const { return m_schemaVersionId; }
60 inline bool SchemaVersionIdHasBeenSet() const { return m_schemaVersionIdHasBeenSet; }
61 template <typename SchemaVersionIdT = Aws::String>
62 void SetSchemaVersionId(SchemaVersionIdT&& value) {
63 m_schemaVersionIdHasBeenSet = true;
64 m_schemaVersionId = std::forward<SchemaVersionIdT>(value);
65 }
66 template <typename SchemaVersionIdT = Aws::String>
67 PutResourceConfigRequest& WithSchemaVersionId(SchemaVersionIdT&& value) {
68 SetSchemaVersionId(std::forward<SchemaVersionIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetResourceId() const { return m_resourceId; }
78 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
79 template <typename ResourceIdT = Aws::String>
80 void SetResourceId(ResourceIdT&& value) {
81 m_resourceIdHasBeenSet = true;
82 m_resourceId = std::forward<ResourceIdT>(value);
83 }
84 template <typename ResourceIdT = Aws::String>
86 SetResourceId(std::forward<ResourceIdT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetResourceName() const { return m_resourceName; }
96 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
97 template <typename ResourceNameT = Aws::String>
98 void SetResourceName(ResourceNameT&& value) {
99 m_resourceNameHasBeenSet = true;
100 m_resourceName = std::forward<ResourceNameT>(value);
101 }
102 template <typename ResourceNameT = Aws::String>
104 SetResourceName(std::forward<ResourceNameT>(value));
105 return *this;
106 }
108
110
115 inline const Aws::String& GetConfiguration() const { return m_configuration; }
116 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
117 template <typename ConfigurationT = Aws::String>
118 void SetConfiguration(ConfigurationT&& value) {
119 m_configurationHasBeenSet = true;
120 m_configuration = std::forward<ConfigurationT>(value);
121 }
122 template <typename ConfigurationT = Aws::String>
124 SetConfiguration(std::forward<ConfigurationT>(value));
125 return *this;
126 }
128
130
136 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
137 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
138 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
139 void SetTags(TagsT&& value) {
140 m_tagsHasBeenSet = true;
141 m_tags = std::forward<TagsT>(value);
142 }
143 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
145 SetTags(std::forward<TagsT>(value));
146 return *this;
147 }
148 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
149 PutResourceConfigRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
150 m_tagsHasBeenSet = true;
151 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
152 return *this;
153 }
155 private:
156 Aws::String m_resourceType;
157
158 Aws::String m_schemaVersionId;
159
160 Aws::String m_resourceId;
161
162 Aws::String m_resourceName;
163
164 Aws::String m_configuration;
165
167 bool m_resourceTypeHasBeenSet = false;
168 bool m_schemaVersionIdHasBeenSet = false;
169 bool m_resourceIdHasBeenSet = false;
170 bool m_resourceNameHasBeenSet = false;
171 bool m_configurationHasBeenSet = false;
172 bool m_tagsHasBeenSet = false;
173};
174
175} // namespace Model
176} // namespace ConfigService
177} // namespace Aws
PutResourceConfigRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
PutResourceConfigRequest & WithResourceName(ResourceNameT &&value)
PutResourceConfigRequest & WithSchemaVersionId(SchemaVersionIdT &&value)
AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override
AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutResourceConfigRequest & WithResourceId(ResourceIdT &&value)
PutResourceConfigRequest & WithTags(TagsT &&value)
PutResourceConfigRequest & WithResourceType(ResourceTypeT &&value)
PutResourceConfigRequest & WithConfiguration(ConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CONFIGSERVICE_API PutResourceConfigRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
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