AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
CreateComponentVersionRequest.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/UUID.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/greengrassv2/GreengrassV2Request.h>
12#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
13#include <aws/greengrassv2/model/LambdaFunctionRecipeSource.h>
14
15#include <utility>
16
17namespace Aws {
18namespace GreengrassV2 {
19namespace Model {
20
24 public:
25 AWS_GREENGRASSV2_API CreateComponentVersionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateComponentVersion"; }
32
33 AWS_GREENGRASSV2_API Aws::String SerializePayload() const override;
34
36
42 inline const Aws::Utils::ByteBuffer& GetInlineRecipe() const { return m_inlineRecipe; }
43 inline bool InlineRecipeHasBeenSet() const { return m_inlineRecipeHasBeenSet; }
44 template <typename InlineRecipeT = Aws::Utils::ByteBuffer>
45 void SetInlineRecipe(InlineRecipeT&& value) {
46 m_inlineRecipeHasBeenSet = true;
47 m_inlineRecipe = std::forward<InlineRecipeT>(value);
48 }
49 template <typename InlineRecipeT = Aws::Utils::ByteBuffer>
51 SetInlineRecipe(std::forward<InlineRecipeT>(value));
52 return *this;
53 }
55
57
61 inline const LambdaFunctionRecipeSource& GetLambdaFunction() const { return m_lambdaFunction; }
62 inline bool LambdaFunctionHasBeenSet() const { return m_lambdaFunctionHasBeenSet; }
63 template <typename LambdaFunctionT = LambdaFunctionRecipeSource>
64 void SetLambdaFunction(LambdaFunctionT&& value) {
65 m_lambdaFunctionHasBeenSet = true;
66 m_lambdaFunction = std::forward<LambdaFunctionT>(value);
67 }
68 template <typename LambdaFunctionT = LambdaFunctionRecipeSource>
70 SetLambdaFunction(std::forward<LambdaFunctionT>(value));
71 return *this;
72 }
74
76
82 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
83 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
84 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
85 void SetTags(TagsT&& value) {
86 m_tagsHasBeenSet = true;
87 m_tags = std::forward<TagsT>(value);
88 }
89 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
91 SetTags(std::forward<TagsT>(value));
92 return *this;
93 }
94 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
95 CreateComponentVersionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
96 m_tagsHasBeenSet = true;
97 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
98 return *this;
99 }
101
103
112 inline const Aws::String& GetClientToken() const { return m_clientToken; }
113 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
114 template <typename ClientTokenT = Aws::String>
115 void SetClientToken(ClientTokenT&& value) {
116 m_clientTokenHasBeenSet = true;
117 m_clientToken = std::forward<ClientTokenT>(value);
118 }
119 template <typename ClientTokenT = Aws::String>
121 SetClientToken(std::forward<ClientTokenT>(value));
122 return *this;
123 }
125 private:
126 Aws::Utils::ByteBuffer m_inlineRecipe{};
127
128 LambdaFunctionRecipeSource m_lambdaFunction;
129
131
133 bool m_inlineRecipeHasBeenSet = false;
134 bool m_lambdaFunctionHasBeenSet = false;
135 bool m_tagsHasBeenSet = false;
136 bool m_clientTokenHasBeenSet = true;
137};
138
139} // namespace Model
140} // namespace GreengrassV2
141} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_GREENGRASSV2_API CreateComponentVersionRequest()=default
CreateComponentVersionRequest & WithTags(TagsT &&value)
CreateComponentVersionRequest & WithClientToken(ClientTokenT &&value)
AWS_GREENGRASSV2_API Aws::String SerializePayload() const override
CreateComponentVersionRequest & WithInlineRecipe(InlineRecipeT &&value)
CreateComponentVersionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateComponentVersionRequest & WithLambdaFunction(LambdaFunctionT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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