AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
CreateFunctionDefinitionVersionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/greengrass/GreengrassRequest.h>
10#include <aws/greengrass/Greengrass_EXPORTS.h>
11#include <aws/greengrass/model/Function.h>
12#include <aws/greengrass/model/FunctionDefaultConfig.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Greengrass {
18namespace Model {
19
27 public:
28 AWS_GREENGRASS_API CreateFunctionDefinitionVersionRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateFunctionDefinitionVersion"; }
35
36 AWS_GREENGRASS_API Aws::String SerializePayload() const override;
37
39
41
44 inline const Aws::String& GetAmznClientToken() const { return m_amznClientToken; }
45 inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
46 template <typename AmznClientTokenT = Aws::String>
47 void SetAmznClientToken(AmznClientTokenT&& value) {
48 m_amznClientTokenHasBeenSet = true;
49 m_amznClientToken = std::forward<AmznClientTokenT>(value);
50 }
51 template <typename AmznClientTokenT = Aws::String>
53 SetAmznClientToken(std::forward<AmznClientTokenT>(value));
54 return *this;
55 }
57
59
63 inline const FunctionDefaultConfig& GetDefaultConfig() const { return m_defaultConfig; }
64 inline bool DefaultConfigHasBeenSet() const { return m_defaultConfigHasBeenSet; }
65 template <typename DefaultConfigT = FunctionDefaultConfig>
66 void SetDefaultConfig(DefaultConfigT&& value) {
67 m_defaultConfigHasBeenSet = true;
68 m_defaultConfig = std::forward<DefaultConfigT>(value);
69 }
70 template <typename DefaultConfigT = FunctionDefaultConfig>
72 SetDefaultConfig(std::forward<DefaultConfigT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetFunctionDefinitionId() const { return m_functionDefinitionId; }
82 inline bool FunctionDefinitionIdHasBeenSet() const { return m_functionDefinitionIdHasBeenSet; }
83 template <typename FunctionDefinitionIdT = Aws::String>
84 void SetFunctionDefinitionId(FunctionDefinitionIdT&& value) {
85 m_functionDefinitionIdHasBeenSet = true;
86 m_functionDefinitionId = std::forward<FunctionDefinitionIdT>(value);
87 }
88 template <typename FunctionDefinitionIdT = Aws::String>
90 SetFunctionDefinitionId(std::forward<FunctionDefinitionIdT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Vector<Function>& GetFunctions() const { return m_functions; }
100 inline bool FunctionsHasBeenSet() const { return m_functionsHasBeenSet; }
101 template <typename FunctionsT = Aws::Vector<Function>>
102 void SetFunctions(FunctionsT&& value) {
103 m_functionsHasBeenSet = true;
104 m_functions = std::forward<FunctionsT>(value);
105 }
106 template <typename FunctionsT = Aws::Vector<Function>>
108 SetFunctions(std::forward<FunctionsT>(value));
109 return *this;
110 }
111 template <typename FunctionsT = Function>
113 m_functionsHasBeenSet = true;
114 m_functions.emplace_back(std::forward<FunctionsT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_amznClientToken;
120
121 FunctionDefaultConfig m_defaultConfig;
122
123 Aws::String m_functionDefinitionId;
124
125 Aws::Vector<Function> m_functions;
126 bool m_amznClientTokenHasBeenSet = false;
127 bool m_defaultConfigHasBeenSet = false;
128 bool m_functionDefinitionIdHasBeenSet = false;
129 bool m_functionsHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace Greengrass
134} // namespace Aws
CreateFunctionDefinitionVersionRequest & WithFunctionDefinitionId(FunctionDefinitionIdT &&value)
CreateFunctionDefinitionVersionRequest & WithDefaultConfig(DefaultConfigT &&value)
CreateFunctionDefinitionVersionRequest & AddFunctions(FunctionsT &&value)
CreateFunctionDefinitionVersionRequest & WithFunctions(FunctionsT &&value)
CreateFunctionDefinitionVersionRequest & WithAmznClientToken(AmznClientTokenT &&value)
AWS_GREENGRASS_API Aws::String SerializePayload() const override
AWS_GREENGRASS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector