AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetInlineRecipe(const Aws::Utils::ByteBuffer& value) { m_inlineRecipeHasBeenSet = true; m_inlineRecipe = value; }
49 inline void SetInlineRecipe(Aws::Utils::ByteBuffer&& value) { m_inlineRecipeHasBeenSet = true; m_inlineRecipe = std::move(value); }
51 inline CreateComponentVersionRequest& WithInlineRecipe(Aws::Utils::ByteBuffer&& value) { SetInlineRecipe(std::move(value)); return *this;}
53
55
59 inline const LambdaFunctionRecipeSource& GetLambdaFunction() const{ return m_lambdaFunction; }
60 inline bool LambdaFunctionHasBeenSet() const { return m_lambdaFunctionHasBeenSet; }
61 inline void SetLambdaFunction(const LambdaFunctionRecipeSource& value) { m_lambdaFunctionHasBeenSet = true; m_lambdaFunction = value; }
62 inline void SetLambdaFunction(LambdaFunctionRecipeSource&& value) { m_lambdaFunctionHasBeenSet = true; m_lambdaFunction = std::move(value); }
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 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
77 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
79 inline CreateComponentVersionRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
80 inline CreateComponentVersionRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
81 inline CreateComponentVersionRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
82 inline CreateComponentVersionRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
83 inline CreateComponentVersionRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
84 inline CreateComponentVersionRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
85 inline CreateComponentVersionRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
86 inline CreateComponentVersionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
88
90
99 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
100 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
101 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
102 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
103 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
104 inline CreateComponentVersionRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
105 inline CreateComponentVersionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
106 inline CreateComponentVersionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
108 private:
109
110 Aws::Utils::ByteBuffer m_inlineRecipe;
111 bool m_inlineRecipeHasBeenSet = false;
112
113 LambdaFunctionRecipeSource m_lambdaFunction;
114 bool m_lambdaFunctionHasBeenSet = false;
115
117 bool m_tagsHasBeenSet = false;
118
119 Aws::String m_clientToken;
120 bool m_clientTokenHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace GreengrassV2
125} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateComponentVersionRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateComponentVersionRequest & WithInlineRecipe(const Aws::Utils::ByteBuffer &value)
CreateComponentVersionRequest & WithInlineRecipe(Aws::Utils::ByteBuffer &&value)
CreateComponentVersionRequest & WithLambdaFunction(const LambdaFunctionRecipeSource &value)
CreateComponentVersionRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateComponentVersionRequest & WithClientToken(Aws::String &&value)
AWS_GREENGRASSV2_API Aws::String SerializePayload() const override
CreateComponentVersionRequest & WithClientToken(const Aws::String &value)
CreateComponentVersionRequest & WithLambdaFunction(LambdaFunctionRecipeSource &&value)
CreateComponentVersionRequest & AddTags(const char *key, Aws::String &&value)
CreateComponentVersionRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateComponentVersionRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateComponentVersionRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateComponentVersionRequest & AddTags(const char *key, const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateComponentVersionRequest & WithClientToken(const char *value)
void SetLambdaFunction(const LambdaFunctionRecipeSource &value)
CreateComponentVersionRequest & AddTags(Aws::String &&key, const char *value)
CreateComponentVersionRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
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