AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
MergeOperation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/mgn/Mgn_EXPORTS.h>
9#include <aws/mgn/model/MergeConstruct.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace mgn {
21namespace Model {
22
30 public:
31 AWS_MGN_API MergeOperation() = default;
35
37
40 inline const Aws::Vector<MergeConstruct>& GetMergeConstructs() const { return m_mergeConstructs; }
41 inline bool MergeConstructsHasBeenSet() const { return m_mergeConstructsHasBeenSet; }
42 template <typename MergeConstructsT = Aws::Vector<MergeConstruct>>
43 void SetMergeConstructs(MergeConstructsT&& value) {
44 m_mergeConstructsHasBeenSet = true;
45 m_mergeConstructs = std::forward<MergeConstructsT>(value);
46 }
47 template <typename MergeConstructsT = Aws::Vector<MergeConstruct>>
48 MergeOperation& WithMergeConstructs(MergeConstructsT&& value) {
49 SetMergeConstructs(std::forward<MergeConstructsT>(value));
50 return *this;
51 }
52 template <typename MergeConstructsT = MergeConstruct>
53 MergeOperation& AddMergeConstructs(MergeConstructsT&& value) {
54 m_mergeConstructsHasBeenSet = true;
55 m_mergeConstructs.emplace_back(std::forward<MergeConstructsT>(value));
56 return *this;
57 }
59 private:
60 Aws::Vector<MergeConstruct> m_mergeConstructs;
61 bool m_mergeConstructsHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace mgn
66} // namespace Aws
AWS_MGN_API MergeOperation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
MergeOperation & WithMergeConstructs(MergeConstructsT &&value)
AWS_MGN_API MergeOperation(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< MergeConstruct > & GetMergeConstructs() const
AWS_MGN_API MergeOperation()=default
MergeOperation & AddMergeConstructs(MergeConstructsT &&value)
void SetMergeConstructs(MergeConstructsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue