AWS SDK for C++

AWS SDK for C++ Version 1.11.915

Loading...
Searching...
No Matches
CreateWebFunctionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lambda-web/LambdaWebRequest.h>
10#include <aws/lambda-web/LambdaWeb_EXPORTS.h>
11#include <aws/lambda-web/model/EndpointConfig.h>
12#include <aws/lambda-web/model/RevisionConfig.h>
13
14#include <utility>
15
16namespace Aws {
17namespace LambdaWeb {
18namespace Model {
19
26 public:
27 AWS_LAMBDAWEB_API CreateWebFunctionRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateWebFunction"; }
34
35 AWS_LAMBDAWEB_API Aws::String SerializePayload() const override;
36
38
43 inline const Aws::String& GetFunctionName() const { return m_functionName; }
44 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
45 template <typename FunctionNameT = Aws::String>
46 void SetFunctionName(FunctionNameT&& value) {
47 m_functionNameHasBeenSet = true;
48 m_functionName = std::forward<FunctionNameT>(value);
49 }
50 template <typename FunctionNameT = Aws::String>
52 SetFunctionName(std::forward<FunctionNameT>(value));
53 return *this;
54 }
56
58
62 inline const RevisionConfig& GetRevisionConfig() const { return m_revisionConfig; }
63 inline bool RevisionConfigHasBeenSet() const { return m_revisionConfigHasBeenSet; }
64 template <typename RevisionConfigT = RevisionConfig>
65 void SetRevisionConfig(RevisionConfigT&& value) {
66 m_revisionConfigHasBeenSet = true;
67 m_revisionConfig = std::forward<RevisionConfigT>(value);
68 }
69 template <typename RevisionConfigT = RevisionConfig>
70 CreateWebFunctionRequest& WithRevisionConfig(RevisionConfigT&& value) {
71 SetRevisionConfig(std::forward<RevisionConfigT>(value));
72 return *this;
73 }
75
77
80 inline const EndpointConfig& GetEndpointConfig() const { return m_endpointConfig; }
81 inline bool EndpointConfigHasBeenSet() const { return m_endpointConfigHasBeenSet; }
82 template <typename EndpointConfigT = EndpointConfig>
83 void SetEndpointConfig(EndpointConfigT&& value) {
84 m_endpointConfigHasBeenSet = true;
85 m_endpointConfig = std::forward<EndpointConfigT>(value);
86 }
87 template <typename EndpointConfigT = EndpointConfig>
88 CreateWebFunctionRequest& WithEndpointConfig(EndpointConfigT&& value) {
89 SetEndpointConfig(std::forward<EndpointConfigT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
99 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
100 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
101 void SetTags(TagsT&& value) {
102 m_tagsHasBeenSet = true;
103 m_tags = std::forward<TagsT>(value);
104 }
105 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
107 SetTags(std::forward<TagsT>(value));
108 return *this;
109 }
110 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
111 CreateWebFunctionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
112 m_tagsHasBeenSet = true;
113 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
114 return *this;
115 }
117 private:
118 Aws::String m_functionName;
119
120 RevisionConfig m_revisionConfig;
121
122 EndpointConfig m_endpointConfig;
123
125 bool m_functionNameHasBeenSet = false;
126 bool m_revisionConfigHasBeenSet = false;
127 bool m_endpointConfigHasBeenSet = false;
128 bool m_tagsHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace LambdaWeb
133} // namespace Aws
AWS_LAMBDAWEB_API Aws::String SerializePayload() const override
AWS_LAMBDAWEB_API CreateWebFunctionRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateWebFunctionRequest & WithFunctionName(FunctionNameT &&value)
virtual const char * GetServiceRequestName() const override
CreateWebFunctionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateWebFunctionRequest & WithEndpointConfig(EndpointConfigT &&value)
CreateWebFunctionRequest & WithRevisionConfig(RevisionConfigT &&value)
CreateWebFunctionRequest & WithTags(TagsT &&value)
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