AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DestinationFieldProperties.h
1
6#pragma once
7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/appflow/model/WriteOperationType.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Appflow {
21namespace Model {
22
30 public:
31 AWS_APPFLOW_API DestinationFieldProperties() = default;
34 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline bool GetIsCreatable() const { return m_isCreatable; }
41 inline bool IsCreatableHasBeenSet() const { return m_isCreatableHasBeenSet; }
42 inline void SetIsCreatable(bool value) {
43 m_isCreatableHasBeenSet = true;
44 m_isCreatable = value;
45 }
47 SetIsCreatable(value);
48 return *this;
49 }
51
53
56 inline bool GetIsNullable() const { return m_isNullable; }
57 inline bool IsNullableHasBeenSet() const { return m_isNullableHasBeenSet; }
58 inline void SetIsNullable(bool value) {
59 m_isNullableHasBeenSet = true;
60 m_isNullable = value;
61 }
63 SetIsNullable(value);
64 return *this;
65 }
67
69
73 inline bool GetIsUpsertable() const { return m_isUpsertable; }
74 inline bool IsUpsertableHasBeenSet() const { return m_isUpsertableHasBeenSet; }
75 inline void SetIsUpsertable(bool value) {
76 m_isUpsertableHasBeenSet = true;
77 m_isUpsertable = value;
78 }
80 SetIsUpsertable(value);
81 return *this;
82 }
84
86
90 inline bool GetIsUpdatable() const { return m_isUpdatable; }
91 inline bool IsUpdatableHasBeenSet() const { return m_isUpdatableHasBeenSet; }
92 inline void SetIsUpdatable(bool value) {
93 m_isUpdatableHasBeenSet = true;
94 m_isUpdatable = value;
95 }
97 SetIsUpdatable(value);
98 return *this;
99 }
101
103
107 inline bool GetIsDefaultedOnCreate() const { return m_isDefaultedOnCreate; }
108 inline bool IsDefaultedOnCreateHasBeenSet() const { return m_isDefaultedOnCreateHasBeenSet; }
109 inline void SetIsDefaultedOnCreate(bool value) {
110 m_isDefaultedOnCreateHasBeenSet = true;
111 m_isDefaultedOnCreate = value;
112 }
115 return *this;
116 }
118
120
125 inline const Aws::Vector<WriteOperationType>& GetSupportedWriteOperations() const { return m_supportedWriteOperations; }
126 inline bool SupportedWriteOperationsHasBeenSet() const { return m_supportedWriteOperationsHasBeenSet; }
127 template <typename SupportedWriteOperationsT = Aws::Vector<WriteOperationType>>
128 void SetSupportedWriteOperations(SupportedWriteOperationsT&& value) {
129 m_supportedWriteOperationsHasBeenSet = true;
130 m_supportedWriteOperations = std::forward<SupportedWriteOperationsT>(value);
131 }
132 template <typename SupportedWriteOperationsT = Aws::Vector<WriteOperationType>>
133 DestinationFieldProperties& WithSupportedWriteOperations(SupportedWriteOperationsT&& value) {
134 SetSupportedWriteOperations(std::forward<SupportedWriteOperationsT>(value));
135 return *this;
136 }
138 m_supportedWriteOperationsHasBeenSet = true;
139 m_supportedWriteOperations.push_back(value);
140 return *this;
141 }
143 private:
144 bool m_isCreatable{false};
145
146 bool m_isNullable{false};
147
148 bool m_isUpsertable{false};
149
150 bool m_isUpdatable{false};
151
152 bool m_isDefaultedOnCreate{false};
153
154 Aws::Vector<WriteOperationType> m_supportedWriteOperations;
155 bool m_isCreatableHasBeenSet = false;
156 bool m_isNullableHasBeenSet = false;
157 bool m_isUpsertableHasBeenSet = false;
158 bool m_isUpdatableHasBeenSet = false;
159 bool m_isDefaultedOnCreateHasBeenSet = false;
160 bool m_supportedWriteOperationsHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace Appflow
165} // namespace Aws
void SetSupportedWriteOperations(SupportedWriteOperationsT &&value)
DestinationFieldProperties & WithIsNullable(bool value)
DestinationFieldProperties & WithIsUpdatable(bool value)
DestinationFieldProperties & WithIsDefaultedOnCreate(bool value)
DestinationFieldProperties & AddSupportedWriteOperations(WriteOperationType value)
const Aws::Vector< WriteOperationType > & GetSupportedWriteOperations() const
AWS_APPFLOW_API DestinationFieldProperties(Aws::Utils::Json::JsonView jsonValue)
DestinationFieldProperties & WithIsCreatable(bool value)
DestinationFieldProperties & WithIsUpsertable(bool value)
AWS_APPFLOW_API DestinationFieldProperties()=default
DestinationFieldProperties & WithSupportedWriteOperations(SupportedWriteOperationsT &&value)
AWS_APPFLOW_API DestinationFieldProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue