AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 CreateExtensionRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template<typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
63 template<typename DescriptionT = Aws::String>
64 CreateExtensionRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
66
68
71 inline const Aws::Map<ActionPoint, Aws::Vector<Action>>& GetActions() const { return m_actions; }
72 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
73 template<typename ActionsT = Aws::Map<ActionPoint, Aws::Vector<Action>>>
74 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
75 template<typename ActionsT = Aws::Map<ActionPoint, Aws::Vector<Action>>>
76 CreateExtensionRequest& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
78 m_actionsHasBeenSet = true; m_actions.emplace(key, value); return *this;
79 }
81
83
89 inline const Aws::Map<Aws::String, Parameter>& GetParameters() const { return m_parameters; }
90 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
91 template<typename ParametersT = Aws::Map<Aws::String, Parameter>>
92 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
93 template<typename ParametersT = Aws::Map<Aws::String, Parameter>>
94 CreateExtensionRequest& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
95 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = Parameter>
96 CreateExtensionRequest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
97 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
98 }
100
102
108 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
109 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
110 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
111 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
112 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
113 CreateExtensionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
114 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
115 CreateExtensionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
116 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
117 }
119
121
126 inline int GetLatestVersionNumber() const { return m_latestVersionNumber; }
127 inline bool LatestVersionNumberHasBeenSet() const { return m_latestVersionNumberHasBeenSet; }
128 inline void SetLatestVersionNumber(int value) { m_latestVersionNumberHasBeenSet = true; m_latestVersionNumber = value; }
131 private:
132
133 Aws::String m_name;
134 bool m_nameHasBeenSet = false;
135
136 Aws::String m_description;
137 bool m_descriptionHasBeenSet = false;
138
140 bool m_actionsHasBeenSet = false;
141
143 bool m_parametersHasBeenSet = false;
144
146 bool m_tagsHasBeenSet = false;
147
148 int m_latestVersionNumber{0};
149 bool m_latestVersionNumberHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace AppConfig
154} // namespace Aws
const Aws::Map< ActionPoint, Aws::Vector< Action > > & GetActions() const
CreateExtensionRequest & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
AWS_APPCONFIG_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateExtensionRequest & WithDescription(DescriptionT &&value)
CreateExtensionRequest & WithActions(ActionsT &&value)
CreateExtensionRequest & WithName(NameT &&value)
AWS_APPCONFIG_API CreateExtensionRequest()=default
const Aws::Map< Aws::String, Parameter > & GetParameters() const
AWS_APPCONFIG_API Aws::String SerializePayload() const override
CreateExtensionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateExtensionRequest & WithTags(TagsT &&value)
CreateExtensionRequest & WithLatestVersionNumber(int value)
CreateExtensionRequest & AddActions(ActionPoint key, Aws::Vector< Action > value)
CreateExtensionRequest & WithParameters(ParametersT &&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