AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ResolvedComponentVersion.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
10#include <aws/greengrassv2/model/VendorGuidance.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GreengrassV2 {
22namespace Model {
23
31 public:
32 AWS_GREENGRASSV2_API ResolvedComponentVersion() = default;
35 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const Aws::String& GetArn() const { return m_arn; }
44 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
45 template <typename ArnT = Aws::String>
46 void SetArn(ArnT&& value) {
47 m_arnHasBeenSet = true;
48 m_arn = std::forward<ArnT>(value);
49 }
50 template <typename ArnT = Aws::String>
52 SetArn(std::forward<ArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetComponentName() const { return m_componentName; }
62 inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; }
63 template <typename ComponentNameT = Aws::String>
64 void SetComponentName(ComponentNameT&& value) {
65 m_componentNameHasBeenSet = true;
66 m_componentName = std::forward<ComponentNameT>(value);
67 }
68 template <typename ComponentNameT = Aws::String>
70 SetComponentName(std::forward<ComponentNameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetComponentVersion() const { return m_componentVersion; }
80 inline bool ComponentVersionHasBeenSet() const { return m_componentVersionHasBeenSet; }
81 template <typename ComponentVersionT = Aws::String>
82 void SetComponentVersion(ComponentVersionT&& value) {
83 m_componentVersionHasBeenSet = true;
84 m_componentVersion = std::forward<ComponentVersionT>(value);
85 }
86 template <typename ComponentVersionT = Aws::String>
87 ResolvedComponentVersion& WithComponentVersion(ComponentVersionT&& value) {
88 SetComponentVersion(std::forward<ComponentVersionT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Utils::ByteBuffer& GetRecipe() const { return m_recipe; }
98 inline bool RecipeHasBeenSet() const { return m_recipeHasBeenSet; }
99 template <typename RecipeT = Aws::Utils::ByteBuffer>
100 void SetRecipe(RecipeT&& value) {
101 m_recipeHasBeenSet = true;
102 m_recipe = std::forward<RecipeT>(value);
103 }
104 template <typename RecipeT = Aws::Utils::ByteBuffer>
106 SetRecipe(std::forward<RecipeT>(value));
107 return *this;
108 }
110
112
124 inline VendorGuidance GetVendorGuidance() const { return m_vendorGuidance; }
125 inline bool VendorGuidanceHasBeenSet() const { return m_vendorGuidanceHasBeenSet; }
127 m_vendorGuidanceHasBeenSet = true;
128 m_vendorGuidance = value;
129 }
131 SetVendorGuidance(value);
132 return *this;
133 }
135
137
142 inline const Aws::String& GetMessage() const { return m_message; }
143 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
144 template <typename MessageT = Aws::String>
145 void SetMessage(MessageT&& value) {
146 m_messageHasBeenSet = true;
147 m_message = std::forward<MessageT>(value);
148 }
149 template <typename MessageT = Aws::String>
151 SetMessage(std::forward<MessageT>(value));
152 return *this;
153 }
155 private:
156 Aws::String m_arn;
157
158 Aws::String m_componentName;
159
160 Aws::String m_componentVersion;
161
162 Aws::Utils::ByteBuffer m_recipe{};
163
164 VendorGuidance m_vendorGuidance{VendorGuidance::NOT_SET};
165
166 Aws::String m_message;
167 bool m_arnHasBeenSet = false;
168 bool m_componentNameHasBeenSet = false;
169 bool m_componentVersionHasBeenSet = false;
170 bool m_recipeHasBeenSet = false;
171 bool m_vendorGuidanceHasBeenSet = false;
172 bool m_messageHasBeenSet = false;
173};
174
175} // namespace Model
176} // namespace GreengrassV2
177} // namespace Aws
AWS_GREENGRASSV2_API ResolvedComponentVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
ResolvedComponentVersion & WithMessage(MessageT &&value)
ResolvedComponentVersion & WithComponentName(ComponentNameT &&value)
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
ResolvedComponentVersion & WithRecipe(RecipeT &&value)
AWS_GREENGRASSV2_API ResolvedComponentVersion(Aws::Utils::Json::JsonView jsonValue)
ResolvedComponentVersion & WithArn(ArnT &&value)
ResolvedComponentVersion & WithVendorGuidance(VendorGuidance value)
AWS_GREENGRASSV2_API ResolvedComponentVersion()=default
ResolvedComponentVersion & WithComponentVersion(ComponentVersionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue