AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateFunctionDefinitionVersionRequest.h
1
6#pragma once
7#include <aws/greengrass/Greengrass_EXPORTS.h>
8#include <aws/greengrass/GreengrassRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/greengrass/model/FunctionDefaultConfig.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/greengrass/model/Function.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Greengrass
18{
19namespace Model
20{
21
29 {
30 public:
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateFunctionDefinitionVersion"; }
38
39 AWS_GREENGRASS_API Aws::String SerializePayload() const override;
40
42
43
45
48 inline const Aws::String& GetAmznClientToken() const{ return m_amznClientToken; }
49 inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
50 inline void SetAmznClientToken(const Aws::String& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = value; }
51 inline void SetAmznClientToken(Aws::String&& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = std::move(value); }
52 inline void SetAmznClientToken(const char* value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken.assign(value); }
55 inline CreateFunctionDefinitionVersionRequest& WithAmznClientToken(const char* value) { SetAmznClientToken(value); return *this;}
57
59
63 inline const FunctionDefaultConfig& GetDefaultConfig() const{ return m_defaultConfig; }
64 inline bool DefaultConfigHasBeenSet() const { return m_defaultConfigHasBeenSet; }
65 inline void SetDefaultConfig(const FunctionDefaultConfig& value) { m_defaultConfigHasBeenSet = true; m_defaultConfig = value; }
66 inline void SetDefaultConfig(FunctionDefaultConfig&& value) { m_defaultConfigHasBeenSet = true; m_defaultConfig = std::move(value); }
70
72
75 inline const Aws::String& GetFunctionDefinitionId() const{ return m_functionDefinitionId; }
76 inline bool FunctionDefinitionIdHasBeenSet() const { return m_functionDefinitionIdHasBeenSet; }
77 inline void SetFunctionDefinitionId(const Aws::String& value) { m_functionDefinitionIdHasBeenSet = true; m_functionDefinitionId = value; }
78 inline void SetFunctionDefinitionId(Aws::String&& value) { m_functionDefinitionIdHasBeenSet = true; m_functionDefinitionId = std::move(value); }
79 inline void SetFunctionDefinitionId(const char* value) { m_functionDefinitionIdHasBeenSet = true; m_functionDefinitionId.assign(value); }
84
86
89 inline const Aws::Vector<Function>& GetFunctions() const{ return m_functions; }
90 inline bool FunctionsHasBeenSet() const { return m_functionsHasBeenSet; }
91 inline void SetFunctions(const Aws::Vector<Function>& value) { m_functionsHasBeenSet = true; m_functions = value; }
92 inline void SetFunctions(Aws::Vector<Function>&& value) { m_functionsHasBeenSet = true; m_functions = std::move(value); }
95 inline CreateFunctionDefinitionVersionRequest& AddFunctions(const Function& value) { m_functionsHasBeenSet = true; m_functions.push_back(value); return *this; }
96 inline CreateFunctionDefinitionVersionRequest& AddFunctions(Function&& value) { m_functionsHasBeenSet = true; m_functions.push_back(std::move(value)); return *this; }
98 private:
99
100 Aws::String m_amznClientToken;
101 bool m_amznClientTokenHasBeenSet = false;
102
103 FunctionDefaultConfig m_defaultConfig;
104 bool m_defaultConfigHasBeenSet = false;
105
106 Aws::String m_functionDefinitionId;
107 bool m_functionDefinitionIdHasBeenSet = false;
108
109 Aws::Vector<Function> m_functions;
110 bool m_functionsHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace Greengrass
115} // namespace Aws
CreateFunctionDefinitionVersionRequest & WithAmznClientToken(const Aws::String &value)
CreateFunctionDefinitionVersionRequest & WithFunctions(Aws::Vector< Function > &&value)
CreateFunctionDefinitionVersionRequest & WithAmznClientToken(const char *value)
CreateFunctionDefinitionVersionRequest & AddFunctions(const Function &value)
CreateFunctionDefinitionVersionRequest & WithDefaultConfig(const FunctionDefaultConfig &value)
CreateFunctionDefinitionVersionRequest & WithFunctionDefinitionId(const char *value)
CreateFunctionDefinitionVersionRequest & WithFunctionDefinitionId(const Aws::String &value)
CreateFunctionDefinitionVersionRequest & WithFunctionDefinitionId(Aws::String &&value)
CreateFunctionDefinitionVersionRequest & WithDefaultConfig(FunctionDefaultConfig &&value)
AWS_GREENGRASS_API Aws::String SerializePayload() const override
CreateFunctionDefinitionVersionRequest & WithFunctions(const Aws::Vector< Function > &value)
CreateFunctionDefinitionVersionRequest & WithAmznClientToken(Aws::String &&value)
AWS_GREENGRASS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateFunctionDefinitionVersionRequest & AddFunctions(Function &&value)
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