AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
FunctionSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/elementalinference/ElementalInference_EXPORTS.h>
10#include <aws/elementalinference/model/ContextType.h>
11#include <aws/elementalinference/model/FunctionStatus.h>
12#include <aws/elementalinference/model/FunctionTarget.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ElementalInference {
24namespace Model {
25
33 public:
34 AWS_ELEMENTALINFERENCE_API FunctionSummary() = default;
35 AWS_ELEMENTALINFERENCE_API FunctionSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ELEMENTALINFERENCE_API FunctionSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_ELEMENTALINFERENCE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
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>
51 FunctionSummary& WithArn(ArnT&& value) {
52 SetArn(std::forward<ArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetId() const { return m_id; }
62 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
63 template <typename IdT = Aws::String>
64 void SetId(IdT&& value) {
65 m_idHasBeenSet = true;
66 m_id = std::forward<IdT>(value);
67 }
68 template <typename IdT = Aws::String>
69 FunctionSummary& WithId(IdT&& value) {
70 SetId(std::forward<IdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetName() const { return m_name; }
80 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
81 template <typename NameT = Aws::String>
82 void SetName(NameT&& value) {
83 m_nameHasBeenSet = true;
84 m_name = std::forward<NameT>(value);
85 }
86 template <typename NameT = Aws::String>
87 FunctionSummary& WithName(NameT&& value) {
88 SetName(std::forward<NameT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetDescription() const { return m_description; }
98 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
99 template <typename DescriptionT = Aws::String>
100 void SetDescription(DescriptionT&& value) {
101 m_descriptionHasBeenSet = true;
102 m_description = std::forward<DescriptionT>(value);
103 }
104 template <typename DescriptionT = Aws::String>
105 FunctionSummary& WithDescription(DescriptionT&& value) {
106 SetDescription(std::forward<DescriptionT>(value));
107 return *this;
108 }
110
112
115 inline FunctionStatus GetStatus() const { return m_status; }
116 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
117 inline void SetStatus(FunctionStatus value) {
118 m_statusHasBeenSet = true;
119 m_status = value;
120 }
122 SetStatus(value);
123 return *this;
124 }
126
128
131 inline const FunctionTarget& GetTarget() const { return m_target; }
132 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
133 template <typename TargetT = FunctionTarget>
134 void SetTarget(TargetT&& value) {
135 m_targetHasBeenSet = true;
136 m_target = std::forward<TargetT>(value);
137 }
138 template <typename TargetT = FunctionTarget>
139 FunctionSummary& WithTarget(TargetT&& value) {
140 SetTarget(std::forward<TargetT>(value));
141 return *this;
142 }
144
146
152 inline const Aws::Vector<ContextType>& GetContextTypes() const { return m_contextTypes; }
153 inline bool ContextTypesHasBeenSet() const { return m_contextTypesHasBeenSet; }
154 template <typename ContextTypesT = Aws::Vector<ContextType>>
155 void SetContextTypes(ContextTypesT&& value) {
156 m_contextTypesHasBeenSet = true;
157 m_contextTypes = std::forward<ContextTypesT>(value);
158 }
159 template <typename ContextTypesT = Aws::Vector<ContextType>>
160 FunctionSummary& WithContextTypes(ContextTypesT&& value) {
161 SetContextTypes(std::forward<ContextTypesT>(value));
162 return *this;
163 }
165 m_contextTypesHasBeenSet = true;
166 m_contextTypes.push_back(value);
167 return *this;
168 }
170 private:
171 Aws::String m_arn;
172
173 Aws::String m_id;
174
175 Aws::String m_name;
176
177 Aws::String m_description;
178
180
181 FunctionTarget m_target;
182
183 Aws::Vector<ContextType> m_contextTypes;
184 bool m_arnHasBeenSet = false;
185 bool m_idHasBeenSet = false;
186 bool m_nameHasBeenSet = false;
187 bool m_descriptionHasBeenSet = false;
188 bool m_statusHasBeenSet = false;
189 bool m_targetHasBeenSet = false;
190 bool m_contextTypesHasBeenSet = false;
191};
192
193} // namespace Model
194} // namespace ElementalInference
195} // namespace Aws
AWS_ELEMENTALINFERENCE_API FunctionSummary()=default
AWS_ELEMENTALINFERENCE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ELEMENTALINFERENCE_API FunctionSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ContextType > & GetContextTypes() const
FunctionSummary & WithStatus(FunctionStatus value)
FunctionSummary & WithName(NameT &&value)
AWS_ELEMENTALINFERENCE_API FunctionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
FunctionSummary & WithDescription(DescriptionT &&value)
FunctionSummary & WithTarget(TargetT &&value)
FunctionSummary & WithContextTypes(ContextTypesT &&value)
FunctionSummary & AddContextTypes(ContextType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue