AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateExtensionRequest.h
1
6#pragma once
7#include <aws/appconfig/AppConfig_EXPORTS.h>
8#include <aws/appconfig/AppConfigRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/appconfig/model/ActionPoint.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/appconfig/model/Parameter.h>
14#include <aws/appconfig/model/Action.h>
15#include <utility>
16
17namespace Aws
18{
19namespace AppConfig
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_APPCONFIG_API CreateExtensionRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateExtension"; }
36
37 AWS_APPCONFIG_API Aws::String SerializePayload() const override;
38
40
41
43
47 inline const Aws::String& GetName() const{ return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline CreateExtensionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline CreateExtensionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline CreateExtensionRequest& WithName(const char* value) { SetName(value); return *this;}
56
58
61 inline const Aws::String& GetDescription() const{ return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
64 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
65 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
66 inline CreateExtensionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
67 inline CreateExtensionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
68 inline CreateExtensionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
70
72
75 inline const Aws::Map<ActionPoint, Aws::Vector<Action>>& GetActions() const{ return m_actions; }
76 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
77 inline void SetActions(const Aws::Map<ActionPoint, Aws::Vector<Action>>& value) { m_actionsHasBeenSet = true; m_actions = value; }
78 inline void SetActions(Aws::Map<ActionPoint, Aws::Vector<Action>>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
80 inline CreateExtensionRequest& WithActions(Aws::Map<ActionPoint, Aws::Vector<Action>>&& value) { SetActions(std::move(value)); return *this;}
81 inline CreateExtensionRequest& AddActions(const ActionPoint& key, const Aws::Vector<Action>& value) { m_actionsHasBeenSet = true; m_actions.emplace(key, value); return *this; }
82 inline CreateExtensionRequest& AddActions(ActionPoint&& key, const Aws::Vector<Action>& value) { m_actionsHasBeenSet = true; m_actions.emplace(std::move(key), value); return *this; }
83 inline CreateExtensionRequest& AddActions(const ActionPoint& key, Aws::Vector<Action>&& value) { m_actionsHasBeenSet = true; m_actions.emplace(key, std::move(value)); return *this; }
84 inline CreateExtensionRequest& AddActions(ActionPoint&& key, Aws::Vector<Action>&& value) { m_actionsHasBeenSet = true; m_actions.emplace(std::move(key), std::move(value)); return *this; }
86
88
94 inline const Aws::Map<Aws::String, Parameter>& GetParameters() const{ return m_parameters; }
95 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
96 inline void SetParameters(const Aws::Map<Aws::String, Parameter>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
97 inline void SetParameters(Aws::Map<Aws::String, Parameter>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
99 inline CreateExtensionRequest& WithParameters(Aws::Map<Aws::String, Parameter>&& value) { SetParameters(std::move(value)); return *this;}
100 inline CreateExtensionRequest& AddParameters(const Aws::String& key, const Parameter& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
101 inline CreateExtensionRequest& AddParameters(Aws::String&& key, const Parameter& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
102 inline CreateExtensionRequest& AddParameters(const Aws::String& key, Parameter&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
103 inline CreateExtensionRequest& AddParameters(Aws::String&& key, Parameter&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
104 inline CreateExtensionRequest& AddParameters(const char* key, Parameter&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
105 inline CreateExtensionRequest& AddParameters(const char* key, const Parameter& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
107
109
115 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
116 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
117 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
118 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
119 inline CreateExtensionRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
120 inline CreateExtensionRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
121 inline CreateExtensionRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
122 inline CreateExtensionRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
123 inline CreateExtensionRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
124 inline CreateExtensionRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
125 inline CreateExtensionRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
126 inline CreateExtensionRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
127 inline CreateExtensionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
129
131
136 inline int GetLatestVersionNumber() const{ return m_latestVersionNumber; }
137 inline bool LatestVersionNumberHasBeenSet() const { return m_latestVersionNumberHasBeenSet; }
138 inline void SetLatestVersionNumber(int value) { m_latestVersionNumberHasBeenSet = true; m_latestVersionNumber = value; }
141 private:
142
143 Aws::String m_name;
144 bool m_nameHasBeenSet = false;
145
146 Aws::String m_description;
147 bool m_descriptionHasBeenSet = false;
148
150 bool m_actionsHasBeenSet = false;
151
153 bool m_parametersHasBeenSet = false;
154
156 bool m_tagsHasBeenSet = false;
157
158 int m_latestVersionNumber;
159 bool m_latestVersionNumberHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace AppConfig
164} // namespace Aws
CreateExtensionRequest & AddActions(const ActionPoint &key, const Aws::Vector< Action > &value)
CreateExtensionRequest & AddParameters(Aws::String &&key, const Parameter &value)
CreateExtensionRequest & WithDescription(const char *value)
CreateExtensionRequest & AddTags(const char *key, Aws::String &&value)
const Aws::Map< ActionPoint, Aws::Vector< Action > > & GetActions() const
AWS_APPCONFIG_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateExtensionRequest & WithParameters(const Aws::Map< Aws::String, Parameter > &value)
CreateExtensionRequest & AddTags(const Aws::String &key, const Aws::String &value)
const Aws::Map< Aws::String, Parameter > & GetParameters() const
void SetActions(Aws::Map< ActionPoint, Aws::Vector< Action > > &&value)
CreateExtensionRequest & AddParameters(const char *key, Parameter &&value)
CreateExtensionRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_APPCONFIG_API Aws::String SerializePayload() const override
CreateExtensionRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateExtensionRequest & AddTags(Aws::String &&key, const char *value)
CreateExtensionRequest & AddParameters(const char *key, const Parameter &value)
CreateExtensionRequest & AddActions(const ActionPoint &key, Aws::Vector< Action > &&value)
CreateExtensionRequest & AddParameters(Aws::String &&key, Parameter &&value)
virtual const char * GetServiceRequestName() const override
CreateExtensionRequest & WithActions(const Aws::Map< ActionPoint, Aws::Vector< Action > > &value)
CreateExtensionRequest & AddParameters(const Aws::String &key, const Parameter &value)
CreateExtensionRequest & WithDescription(const Aws::String &value)
CreateExtensionRequest & AddTags(Aws::String &&key, const Aws::String &value)
void SetParameters(Aws::Map< Aws::String, Parameter > &&value)
void SetActions(const Aws::Map< ActionPoint, Aws::Vector< Action > > &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateExtensionRequest & WithName(Aws::String &&value)
CreateExtensionRequest & WithActions(Aws::Map< ActionPoint, Aws::Vector< Action > > &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateExtensionRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateExtensionRequest & WithParameters(Aws::Map< Aws::String, Parameter > &&value)
CreateExtensionRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateExtensionRequest & WithName(const Aws::String &value)
CreateExtensionRequest & AddActions(ActionPoint &&key, const Aws::Vector< Action > &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateExtensionRequest & AddActions(ActionPoint &&key, Aws::Vector< Action > &&value)
CreateExtensionRequest & AddTags(const char *key, const char *value)
CreateExtensionRequest & WithLatestVersionNumber(int value)
CreateExtensionRequest & WithName(const char *value)
CreateExtensionRequest & WithDescription(Aws::String &&value)
CreateExtensionRequest & AddParameters(const Aws::String &key, Parameter &&value)
void SetParameters(const Aws::Map< Aws::String, Parameter > &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
std::vector< T, Aws::Allocator< T > > Vector