AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
PutResourceConfigRequest.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/config/ConfigServiceRequest.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 ConfigService
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CONFIGSERVICE_API PutResourceConfigRequest() = default;
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 "PutResourceConfig"; }
32
33 AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override;
34
35 AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
45 inline const Aws::String& GetResourceType() const { return m_resourceType; }
46 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
47 template<typename ResourceTypeT = Aws::String>
48 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
49 template<typename ResourceTypeT = Aws::String>
50 PutResourceConfigRequest& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
52
54
57 inline const Aws::String& GetSchemaVersionId() const { return m_schemaVersionId; }
58 inline bool SchemaVersionIdHasBeenSet() const { return m_schemaVersionIdHasBeenSet; }
59 template<typename SchemaVersionIdT = Aws::String>
60 void SetSchemaVersionId(SchemaVersionIdT&& value) { m_schemaVersionIdHasBeenSet = true; m_schemaVersionId = std::forward<SchemaVersionIdT>(value); }
61 template<typename SchemaVersionIdT = Aws::String>
62 PutResourceConfigRequest& WithSchemaVersionId(SchemaVersionIdT&& value) { SetSchemaVersionId(std::forward<SchemaVersionIdT>(value)); return *this;}
64
66
69 inline const Aws::String& GetResourceId() const { return m_resourceId; }
70 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
71 template<typename ResourceIdT = Aws::String>
72 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
73 template<typename ResourceIdT = Aws::String>
74 PutResourceConfigRequest& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
76
78
81 inline const Aws::String& GetResourceName() const { return m_resourceName; }
82 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
83 template<typename ResourceNameT = Aws::String>
84 void SetResourceName(ResourceNameT&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::forward<ResourceNameT>(value); }
85 template<typename ResourceNameT = Aws::String>
86 PutResourceConfigRequest& WithResourceName(ResourceNameT&& value) { SetResourceName(std::forward<ResourceNameT>(value)); return *this;}
88
90
95 inline const Aws::String& GetConfiguration() const { return m_configuration; }
96 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
97 template<typename ConfigurationT = Aws::String>
98 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
99 template<typename ConfigurationT = Aws::String>
100 PutResourceConfigRequest& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
102
104
110 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
111 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
112 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
113 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
114 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
115 PutResourceConfigRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
116 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
117 PutResourceConfigRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
118 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
119 }
121 private:
122
123 Aws::String m_resourceType;
124 bool m_resourceTypeHasBeenSet = false;
125
126 Aws::String m_schemaVersionId;
127 bool m_schemaVersionIdHasBeenSet = false;
128
129 Aws::String m_resourceId;
130 bool m_resourceIdHasBeenSet = false;
131
132 Aws::String m_resourceName;
133 bool m_resourceNameHasBeenSet = false;
134
135 Aws::String m_configuration;
136 bool m_configurationHasBeenSet = false;
137
139 bool m_tagsHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace ConfigService
144} // 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