AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
48 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
49 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
50 inline PutResourceConfigRequest& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
51 inline PutResourceConfigRequest& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
52 inline PutResourceConfigRequest& WithResourceType(const char* value) { SetResourceType(value); return *this;}
54
56
59 inline const Aws::String& GetSchemaVersionId() const{ return m_schemaVersionId; }
60 inline bool SchemaVersionIdHasBeenSet() const { return m_schemaVersionIdHasBeenSet; }
61 inline void SetSchemaVersionId(const Aws::String& value) { m_schemaVersionIdHasBeenSet = true; m_schemaVersionId = value; }
62 inline void SetSchemaVersionId(Aws::String&& value) { m_schemaVersionIdHasBeenSet = true; m_schemaVersionId = std::move(value); }
63 inline void SetSchemaVersionId(const char* value) { m_schemaVersionIdHasBeenSet = true; m_schemaVersionId.assign(value); }
64 inline PutResourceConfigRequest& WithSchemaVersionId(const Aws::String& value) { SetSchemaVersionId(value); return *this;}
65 inline PutResourceConfigRequest& WithSchemaVersionId(Aws::String&& value) { SetSchemaVersionId(std::move(value)); return *this;}
66 inline PutResourceConfigRequest& WithSchemaVersionId(const char* value) { SetSchemaVersionId(value); return *this;}
68
70
73 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
74 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
75 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
76 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
77 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
78 inline PutResourceConfigRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
79 inline PutResourceConfigRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
80 inline PutResourceConfigRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
82
84
87 inline const Aws::String& GetResourceName() const{ return m_resourceName; }
88 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
89 inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
90 inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
91 inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
92 inline PutResourceConfigRequest& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
93 inline PutResourceConfigRequest& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
94 inline PutResourceConfigRequest& WithResourceName(const char* value) { SetResourceName(value); return *this;}
96
98
103 inline const Aws::String& GetConfiguration() const{ return m_configuration; }
104 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
105 inline void SetConfiguration(const Aws::String& value) { m_configurationHasBeenSet = true; m_configuration = value; }
106 inline void SetConfiguration(Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
107 inline void SetConfiguration(const char* value) { m_configurationHasBeenSet = true; m_configuration.assign(value); }
108 inline PutResourceConfigRequest& WithConfiguration(const Aws::String& value) { SetConfiguration(value); return *this;}
109 inline PutResourceConfigRequest& WithConfiguration(Aws::String&& value) { SetConfiguration(std::move(value)); return *this;}
110 inline PutResourceConfigRequest& WithConfiguration(const char* value) { SetConfiguration(value); return *this;}
112
114
120 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
121 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
122 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
123 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
125 inline PutResourceConfigRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
126 inline PutResourceConfigRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
127 inline PutResourceConfigRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
128 inline PutResourceConfigRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
129 inline PutResourceConfigRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
130 inline PutResourceConfigRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
131 inline PutResourceConfigRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
132 inline PutResourceConfigRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
134 private:
135
136 Aws::String m_resourceType;
137 bool m_resourceTypeHasBeenSet = false;
138
139 Aws::String m_schemaVersionId;
140 bool m_schemaVersionIdHasBeenSet = false;
141
142 Aws::String m_resourceId;
143 bool m_resourceIdHasBeenSet = false;
144
145 Aws::String m_resourceName;
146 bool m_resourceNameHasBeenSet = false;
147
148 Aws::String m_configuration;
149 bool m_configurationHasBeenSet = false;
150
152 bool m_tagsHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace ConfigService
157} // namespace Aws
PutResourceConfigRequest & WithResourceName(const Aws::String &value)
AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override
PutResourceConfigRequest & AddTags(const char *key, Aws::String &&value)
PutResourceConfigRequest & WithConfiguration(Aws::String &&value)
PutResourceConfigRequest & AddTags(Aws::String &&key, Aws::String &&value)
PutResourceConfigRequest & WithSchemaVersionId(const char *value)
AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutResourceConfigRequest & WithResourceId(const Aws::String &value)
PutResourceConfigRequest & WithSchemaVersionId(Aws::String &&value)
PutResourceConfigRequest & AddTags(Aws::String &&key, const Aws::String &value)
PutResourceConfigRequest & AddTags(const Aws::String &key, const Aws::String &value)
PutResourceConfigRequest & AddTags(const Aws::String &key, Aws::String &&value)
PutResourceConfigRequest & WithResourceName(Aws::String &&value)
PutResourceConfigRequest & WithConfiguration(const Aws::String &value)
PutResourceConfigRequest & WithResourceType(const Aws::String &value)
PutResourceConfigRequest & WithResourceName(const char *value)
PutResourceConfigRequest & AddTags(Aws::String &&key, const char *value)
PutResourceConfigRequest & WithConfiguration(const char *value)
PutResourceConfigRequest & WithResourceId(const char *value)
PutResourceConfigRequest & WithSchemaVersionId(const Aws::String &value)
PutResourceConfigRequest & WithResourceType(Aws::String &&value)
PutResourceConfigRequest & WithResourceId(Aws::String &&value)
PutResourceConfigRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
PutResourceConfigRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
PutResourceConfigRequest & AddTags(const char *key, const char *value)
PutResourceConfigRequest & WithResourceType(const char *value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetTags(Aws::Map< Aws::String, 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