AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateComponentVersionRequest.h
1
6#pragma once
7#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
8#include <aws/greengrassv2/GreengrassV2Request.h>
9#include <aws/core/utils/Array.h>
10#include <aws/greengrassv2/model/LambdaFunctionRecipeSource.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace GreengrassV2
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_GREENGRASSV2_API CreateComponentVersionRequest() = 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 "CreateComponentVersion"; }
35
36 AWS_GREENGRASSV2_API Aws::String SerializePayload() const override;
37
38
40
46 inline const Aws::Utils::ByteBuffer& GetInlineRecipe() const { return m_inlineRecipe; }
47 inline bool InlineRecipeHasBeenSet() const { return m_inlineRecipeHasBeenSet; }
48 template<typename InlineRecipeT = Aws::Utils::ByteBuffer>
49 void SetInlineRecipe(InlineRecipeT&& value) { m_inlineRecipeHasBeenSet = true; m_inlineRecipe = std::forward<InlineRecipeT>(value); }
50 template<typename InlineRecipeT = Aws::Utils::ByteBuffer>
51 CreateComponentVersionRequest& WithInlineRecipe(InlineRecipeT&& value) { SetInlineRecipe(std::forward<InlineRecipeT>(value)); return *this;}
53
55
59 inline const LambdaFunctionRecipeSource& GetLambdaFunction() const { return m_lambdaFunction; }
60 inline bool LambdaFunctionHasBeenSet() const { return m_lambdaFunctionHasBeenSet; }
61 template<typename LambdaFunctionT = LambdaFunctionRecipeSource>
62 void SetLambdaFunction(LambdaFunctionT&& value) { m_lambdaFunctionHasBeenSet = true; m_lambdaFunction = std::forward<LambdaFunctionT>(value); }
63 template<typename LambdaFunctionT = LambdaFunctionRecipeSource>
64 CreateComponentVersionRequest& WithLambdaFunction(LambdaFunctionT&& value) { SetLambdaFunction(std::forward<LambdaFunctionT>(value)); return *this;}
66
68
74 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
75 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
76 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
77 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
78 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
79 CreateComponentVersionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
80 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
81 CreateComponentVersionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
82 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
83 }
85
87
96 inline const Aws::String& GetClientToken() const { return m_clientToken; }
97 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
98 template<typename ClientTokenT = Aws::String>
99 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
100 template<typename ClientTokenT = Aws::String>
101 CreateComponentVersionRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
103 private:
104
105 Aws::Utils::ByteBuffer m_inlineRecipe{};
106 bool m_inlineRecipeHasBeenSet = false;
107
108 LambdaFunctionRecipeSource m_lambdaFunction;
109 bool m_lambdaFunctionHasBeenSet = false;
110
112 bool m_tagsHasBeenSet = false;
113
115 bool m_clientTokenHasBeenSet = true;
116 };
117
118} // namespace Model
119} // namespace GreengrassV2
120} // 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