AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
FunctionResponse.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/iottwinmaker/IoTTwinMaker_EXPORTS.h>
10#include <aws/iottwinmaker/model/DataConnector.h>
11#include <aws/iottwinmaker/model/Scope.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoTTwinMaker {
23namespace Model {
24
31 public:
32 AWS_IOTTWINMAKER_API FunctionResponse() = default;
33 AWS_IOTTWINMAKER_API FunctionResponse(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IOTTWINMAKER_API FunctionResponse& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Vector<Aws::String>& GetRequiredProperties() const { return m_requiredProperties; }
42 inline bool RequiredPropertiesHasBeenSet() const { return m_requiredPropertiesHasBeenSet; }
43 template <typename RequiredPropertiesT = Aws::Vector<Aws::String>>
44 void SetRequiredProperties(RequiredPropertiesT&& value) {
45 m_requiredPropertiesHasBeenSet = true;
46 m_requiredProperties = std::forward<RequiredPropertiesT>(value);
47 }
48 template <typename RequiredPropertiesT = Aws::Vector<Aws::String>>
49 FunctionResponse& WithRequiredProperties(RequiredPropertiesT&& value) {
50 SetRequiredProperties(std::forward<RequiredPropertiesT>(value));
51 return *this;
52 }
53 template <typename RequiredPropertiesT = Aws::String>
54 FunctionResponse& AddRequiredProperties(RequiredPropertiesT&& value) {
55 m_requiredPropertiesHasBeenSet = true;
56 m_requiredProperties.emplace_back(std::forward<RequiredPropertiesT>(value));
57 return *this;
58 }
60
62
65 inline Scope GetScope() const { return m_scope; }
66 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
67 inline void SetScope(Scope value) {
68 m_scopeHasBeenSet = true;
69 m_scope = value;
70 }
72 SetScope(value);
73 return *this;
74 }
76
78
81 inline const DataConnector& GetImplementedBy() const { return m_implementedBy; }
82 inline bool ImplementedByHasBeenSet() const { return m_implementedByHasBeenSet; }
83 template <typename ImplementedByT = DataConnector>
84 void SetImplementedBy(ImplementedByT&& value) {
85 m_implementedByHasBeenSet = true;
86 m_implementedBy = std::forward<ImplementedByT>(value);
87 }
88 template <typename ImplementedByT = DataConnector>
89 FunctionResponse& WithImplementedBy(ImplementedByT&& value) {
90 SetImplementedBy(std::forward<ImplementedByT>(value));
91 return *this;
92 }
94
96
99 inline bool GetIsInherited() const { return m_isInherited; }
100 inline bool IsInheritedHasBeenSet() const { return m_isInheritedHasBeenSet; }
101 inline void SetIsInherited(bool value) {
102 m_isInheritedHasBeenSet = true;
103 m_isInherited = value;
104 }
105 inline FunctionResponse& WithIsInherited(bool value) {
106 SetIsInherited(value);
107 return *this;
108 }
110 private:
111 Aws::Vector<Aws::String> m_requiredProperties;
112
113 Scope m_scope{Scope::NOT_SET};
114
115 DataConnector m_implementedBy;
116
117 bool m_isInherited{false};
118 bool m_requiredPropertiesHasBeenSet = false;
119 bool m_scopeHasBeenSet = false;
120 bool m_implementedByHasBeenSet = false;
121 bool m_isInheritedHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace IoTTwinMaker
126} // namespace Aws
void SetImplementedBy(ImplementedByT &&value)
const DataConnector & GetImplementedBy() const
AWS_IOTTWINMAKER_API FunctionResponse()=default
AWS_IOTTWINMAKER_API FunctionResponse(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetRequiredProperties() const
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
FunctionResponse & WithScope(Scope value)
FunctionResponse & WithIsInherited(bool value)
FunctionResponse & WithRequiredProperties(RequiredPropertiesT &&value)
void SetRequiredProperties(RequiredPropertiesT &&value)
FunctionResponse & WithImplementedBy(ImplementedByT &&value)
AWS_IOTTWINMAKER_API FunctionResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
FunctionResponse & AddRequiredProperties(RequiredPropertiesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue