AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
OperationUnion.h
1
6#pragma once
7#include <aws/mgn/Mgn_EXPORTS.h>
8#include <aws/mgn/model/UpdateOperation.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace mgn {
20namespace Model {
21
29 public:
30 AWS_MGN_API OperationUnion() = default;
34
36
39 inline const UpdateOperation& GetUpdate() const { return m_update; }
40 inline bool UpdateHasBeenSet() const { return m_updateHasBeenSet; }
41 template <typename UpdateT = UpdateOperation>
42 void SetUpdate(UpdateT&& value) {
43 m_updateHasBeenSet = true;
44 m_update = std::forward<UpdateT>(value);
45 }
46 template <typename UpdateT = UpdateOperation>
47 OperationUnion& WithUpdate(UpdateT&& value) {
48 SetUpdate(std::forward<UpdateT>(value));
49 return *this;
50 }
52 private:
53 UpdateOperation m_update;
54 bool m_updateHasBeenSet = false;
55};
56
57} // namespace Model
58} // namespace mgn
59} // namespace Aws
AWS_MGN_API OperationUnion(Aws::Utils::Json::JsonView jsonValue)
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUpdate(UpdateT &&value)
AWS_MGN_API OperationUnion & operator=(Aws::Utils::Json::JsonView jsonValue)
const UpdateOperation & GetUpdate() const
OperationUnion & WithUpdate(UpdateT &&value)
AWS_MGN_API OperationUnion()=default
Aws::Utils::Json::JsonValue JsonValue