AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MergeOperations.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/model/ChangeTypeEnum.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeCommit
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CODECOMMIT_API MergeOperations();
36 AWS_CODECOMMIT_API MergeOperations(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const ChangeTypeEnum& GetSource() const{ return m_source; }
47 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
48 inline void SetSource(const ChangeTypeEnum& value) { m_sourceHasBeenSet = true; m_source = value; }
49 inline void SetSource(ChangeTypeEnum&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
50 inline MergeOperations& WithSource(const ChangeTypeEnum& value) { SetSource(value); return *this;}
51 inline MergeOperations& WithSource(ChangeTypeEnum&& value) { SetSource(std::move(value)); return *this;}
53
55
58 inline const ChangeTypeEnum& GetDestination() const{ return m_destination; }
59 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
60 inline void SetDestination(const ChangeTypeEnum& value) { m_destinationHasBeenSet = true; m_destination = value; }
61 inline void SetDestination(ChangeTypeEnum&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
62 inline MergeOperations& WithDestination(const ChangeTypeEnum& value) { SetDestination(value); return *this;}
63 inline MergeOperations& WithDestination(ChangeTypeEnum&& value) { SetDestination(std::move(value)); return *this;}
65 private:
66
67 ChangeTypeEnum m_source;
68 bool m_sourceHasBeenSet = false;
69
70 ChangeTypeEnum m_destination;
71 bool m_destinationHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace CodeCommit
76} // namespace Aws
const ChangeTypeEnum & GetSource() const
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
MergeOperations & WithSource(ChangeTypeEnum &&value)
AWS_CODECOMMIT_API MergeOperations(Aws::Utils::Json::JsonView jsonValue)
void SetDestination(const ChangeTypeEnum &value)
void SetDestination(ChangeTypeEnum &&value)
MergeOperations & WithDestination(const ChangeTypeEnum &value)
AWS_CODECOMMIT_API MergeOperations & operator=(Aws::Utils::Json::JsonView jsonValue)
MergeOperations & WithSource(const ChangeTypeEnum &value)
void SetSource(const ChangeTypeEnum &value)
MergeOperations & WithDestination(ChangeTypeEnum &&value)
const ChangeTypeEnum & GetDestination() const
void SetSource(ChangeTypeEnum &&value)
Aws::Utils::Json::JsonValue JsonValue