AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
CreateFunctionDefinitionRequest.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/greengrass/GreengrassRequest.h>
10#include <aws/greengrass/Greengrass_EXPORTS.h>
11#include <aws/greengrass/model/FunctionDefinitionVersion.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Greengrass {
17namespace Model {
18
22 public:
23 AWS_GREENGRASS_API CreateFunctionDefinitionRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateFunctionDefinition"; }
30
31 AWS_GREENGRASS_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetAmznClientToken() const { return m_amznClientToken; }
40 inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
41 template <typename AmznClientTokenT = Aws::String>
42 void SetAmznClientToken(AmznClientTokenT&& value) {
43 m_amznClientTokenHasBeenSet = true;
44 m_amznClientToken = std::forward<AmznClientTokenT>(value);
45 }
46 template <typename AmznClientTokenT = Aws::String>
48 SetAmznClientToken(std::forward<AmznClientTokenT>(value));
49 return *this;
50 }
52
54
57 inline const FunctionDefinitionVersion& GetInitialVersion() const { return m_initialVersion; }
58 inline bool InitialVersionHasBeenSet() const { return m_initialVersionHasBeenSet; }
59 template <typename InitialVersionT = FunctionDefinitionVersion>
60 void SetInitialVersion(InitialVersionT&& value) {
61 m_initialVersionHasBeenSet = true;
62 m_initialVersion = std::forward<InitialVersionT>(value);
63 }
64 template <typename InitialVersionT = FunctionDefinitionVersion>
66 SetInitialVersion(std::forward<InitialVersionT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetName() const { return m_name; }
76 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
77 template <typename NameT = Aws::String>
78 void SetName(NameT&& value) {
79 m_nameHasBeenSet = true;
80 m_name = std::forward<NameT>(value);
81 }
82 template <typename NameT = Aws::String>
84 SetName(std::forward<NameT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
94 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
95 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
96 void SetTags(TagsT&& value) {
97 m_tagsHasBeenSet = true;
98 m_tags = std::forward<TagsT>(value);
99 }
100 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
102 SetTags(std::forward<TagsT>(value));
103 return *this;
104 }
105 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
106 CreateFunctionDefinitionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
107 m_tagsHasBeenSet = true;
108 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_amznClientToken;
114
115 FunctionDefinitionVersion m_initialVersion;
116
117 Aws::String m_name;
118
120 bool m_amznClientTokenHasBeenSet = false;
121 bool m_initialVersionHasBeenSet = false;
122 bool m_nameHasBeenSet = false;
123 bool m_tagsHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace Greengrass
128} // namespace Aws
CreateFunctionDefinitionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateFunctionDefinitionRequest & WithAmznClientToken(AmznClientTokenT &&value)
CreateFunctionDefinitionRequest & WithTags(TagsT &&value)
AWS_GREENGRASS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_GREENGRASS_API Aws::String SerializePayload() const override
CreateFunctionDefinitionRequest & WithName(NameT &&value)
CreateFunctionDefinitionRequest & WithInitialVersion(InitialVersionT &&value)
AWS_GREENGRASS_API CreateFunctionDefinitionRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
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