AWS SDK for C++  1.8.152
AWS SDK for C++
MergeOperations.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace CodeCommit
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
45  inline const ChangeTypeEnum& GetSource() const{ return m_source; }
46 
51  inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
52 
57  inline void SetSource(const ChangeTypeEnum& value) { m_sourceHasBeenSet = true; m_source = value; }
58 
63  inline void SetSource(ChangeTypeEnum&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
64 
69  inline MergeOperations& WithSource(const ChangeTypeEnum& value) { SetSource(value); return *this;}
70 
75  inline MergeOperations& WithSource(ChangeTypeEnum&& value) { SetSource(std::move(value)); return *this;}
76 
77 
81  inline const ChangeTypeEnum& GetDestination() const{ return m_destination; }
82 
86  inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
87 
91  inline void SetDestination(const ChangeTypeEnum& value) { m_destinationHasBeenSet = true; m_destination = value; }
92 
96  inline void SetDestination(ChangeTypeEnum&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
97 
101  inline MergeOperations& WithDestination(const ChangeTypeEnum& value) { SetDestination(value); return *this;}
102 
106  inline MergeOperations& WithDestination(ChangeTypeEnum&& value) { SetDestination(std::move(value)); return *this;}
107 
108  private:
109 
110  ChangeTypeEnum m_source;
111  bool m_sourceHasBeenSet;
112 
113  ChangeTypeEnum m_destination;
114  bool m_destinationHasBeenSet;
115  };
116 
117 } // namespace Model
118 } // namespace CodeCommit
119 } // namespace Aws
Aws::CodeCommit::Model::MergeOperations::SetSource
void SetSource(const ChangeTypeEnum &value)
Definition: MergeOperations.h:57
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::MergeOperations::MergeOperations
MergeOperations(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::MergeOperations::WithSource
MergeOperations & WithSource(const ChangeTypeEnum &value)
Definition: MergeOperations.h:69
Aws::CodeCommit::Model::MergeOperations::WithSource
MergeOperations & WithSource(ChangeTypeEnum &&value)
Definition: MergeOperations.h:75
ChangeTypeEnum.h
Aws::CodeCommit::Model::MergeOperations::DestinationHasBeenSet
bool DestinationHasBeenSet() const
Definition: MergeOperations.h:86
Aws::CodeCommit::Model::MergeOperations::SetDestination
void SetDestination(ChangeTypeEnum &&value)
Definition: MergeOperations.h:96
Aws::CodeCommit::Model::MergeOperations::WithDestination
MergeOperations & WithDestination(ChangeTypeEnum &&value)
Definition: MergeOperations.h:106
Aws::CodeCommit::Model::MergeOperations::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CodeCommit::Model::MergeOperations::GetDestination
const ChangeTypeEnum & GetDestination() const
Definition: MergeOperations.h:81
Aws::CodeCommit::Model::MergeOperations::WithDestination
MergeOperations & WithDestination(const ChangeTypeEnum &value)
Definition: MergeOperations.h:101
Aws::CodeCommit::Model::MergeOperations::SetDestination
void SetDestination(const ChangeTypeEnum &value)
Definition: MergeOperations.h:91
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::MergeOperations::MergeOperations
MergeOperations()
Aws::CodeCommit::Model::MergeOperations::SetSource
void SetSource(ChangeTypeEnum &&value)
Definition: MergeOperations.h:63
Aws::CodeCommit::Model::MergeOperations::operator=
MergeOperations & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::ChangeTypeEnum
ChangeTypeEnum
Definition: ChangeTypeEnum.h:17
Aws::CodeCommit::Model::MergeOperations
Definition: MergeOperations.h:33
Aws::CodeCommit::Model::MergeOperations::GetSource
const ChangeTypeEnum & GetSource() const
Definition: MergeOperations.h:45
Aws::CodeCommit::Model::MergeOperations::SourceHasBeenSet
bool SourceHasBeenSet() const
Definition: MergeOperations.h:51