AWS SDK for C++  1.9.19
AWS SDK for C++
MergeMetadata.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace CodeCommit
23 {
24 namespace Model
25 {
26 
35  {
36  public:
41 
42 
46  inline bool GetIsMerged() const{ return m_isMerged; }
47 
51  inline bool IsMergedHasBeenSet() const { return m_isMergedHasBeenSet; }
52 
56  inline void SetIsMerged(bool value) { m_isMergedHasBeenSet = true; m_isMerged = value; }
57 
61  inline MergeMetadata& WithIsMerged(bool value) { SetIsMerged(value); return *this;}
62 
63 
67  inline const Aws::String& GetMergedBy() const{ return m_mergedBy; }
68 
72  inline bool MergedByHasBeenSet() const { return m_mergedByHasBeenSet; }
73 
77  inline void SetMergedBy(const Aws::String& value) { m_mergedByHasBeenSet = true; m_mergedBy = value; }
78 
82  inline void SetMergedBy(Aws::String&& value) { m_mergedByHasBeenSet = true; m_mergedBy = std::move(value); }
83 
87  inline void SetMergedBy(const char* value) { m_mergedByHasBeenSet = true; m_mergedBy.assign(value); }
88 
92  inline MergeMetadata& WithMergedBy(const Aws::String& value) { SetMergedBy(value); return *this;}
93 
97  inline MergeMetadata& WithMergedBy(Aws::String&& value) { SetMergedBy(std::move(value)); return *this;}
98 
102  inline MergeMetadata& WithMergedBy(const char* value) { SetMergedBy(value); return *this;}
103 
104 
108  inline const Aws::String& GetMergeCommitId() const{ return m_mergeCommitId; }
109 
113  inline bool MergeCommitIdHasBeenSet() const { return m_mergeCommitIdHasBeenSet; }
114 
118  inline void SetMergeCommitId(const Aws::String& value) { m_mergeCommitIdHasBeenSet = true; m_mergeCommitId = value; }
119 
123  inline void SetMergeCommitId(Aws::String&& value) { m_mergeCommitIdHasBeenSet = true; m_mergeCommitId = std::move(value); }
124 
128  inline void SetMergeCommitId(const char* value) { m_mergeCommitIdHasBeenSet = true; m_mergeCommitId.assign(value); }
129 
133  inline MergeMetadata& WithMergeCommitId(const Aws::String& value) { SetMergeCommitId(value); return *this;}
134 
138  inline MergeMetadata& WithMergeCommitId(Aws::String&& value) { SetMergeCommitId(std::move(value)); return *this;}
139 
143  inline MergeMetadata& WithMergeCommitId(const char* value) { SetMergeCommitId(value); return *this;}
144 
145 
149  inline const MergeOptionTypeEnum& GetMergeOption() const{ return m_mergeOption; }
150 
154  inline bool MergeOptionHasBeenSet() const { return m_mergeOptionHasBeenSet; }
155 
159  inline void SetMergeOption(const MergeOptionTypeEnum& value) { m_mergeOptionHasBeenSet = true; m_mergeOption = value; }
160 
164  inline void SetMergeOption(MergeOptionTypeEnum&& value) { m_mergeOptionHasBeenSet = true; m_mergeOption = std::move(value); }
165 
169  inline MergeMetadata& WithMergeOption(const MergeOptionTypeEnum& value) { SetMergeOption(value); return *this;}
170 
174  inline MergeMetadata& WithMergeOption(MergeOptionTypeEnum&& value) { SetMergeOption(std::move(value)); return *this;}
175 
176  private:
177 
178  bool m_isMerged;
179  bool m_isMergedHasBeenSet;
180 
181  Aws::String m_mergedBy;
182  bool m_mergedByHasBeenSet;
183 
184  Aws::String m_mergeCommitId;
185  bool m_mergeCommitIdHasBeenSet;
186 
187  MergeOptionTypeEnum m_mergeOption;
188  bool m_mergeOptionHasBeenSet;
189  };
190 
191 } // namespace Model
192 } // namespace CodeCommit
193 } // namespace Aws
Aws::CodeCommit::Model::MergeMetadata::IsMergedHasBeenSet
bool IsMergedHasBeenSet() const
Definition: MergeMetadata.h:51
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::MergeMetadata::WithMergeCommitId
MergeMetadata & WithMergeCommitId(const Aws::String &value)
Definition: MergeMetadata.h:133
Aws::CodeCommit::Model::MergeMetadata::WithMergedBy
MergeMetadata & WithMergedBy(const char *value)
Definition: MergeMetadata.h:102
Aws::CodeCommit::Model::MergeMetadata::GetMergeOption
const MergeOptionTypeEnum & GetMergeOption() const
Definition: MergeMetadata.h:149
Aws::CodeCommit::Model::MergeMetadata::MergedByHasBeenSet
bool MergedByHasBeenSet() const
Definition: MergeMetadata.h:72
Aws::CodeCommit::Model::MergeMetadata::SetIsMerged
void SetIsMerged(bool value)
Definition: MergeMetadata.h:56
Aws::CodeCommit::Model::MergeMetadata::WithMergeCommitId
MergeMetadata & WithMergeCommitId(const char *value)
Definition: MergeMetadata.h:143
Aws::CodeCommit::Model::MergeMetadata::WithMergedBy
MergeMetadata & WithMergedBy(Aws::String &&value)
Definition: MergeMetadata.h:97
Aws::CodeCommit::Model::MergeMetadata::SetMergedBy
void SetMergedBy(const char *value)
Definition: MergeMetadata.h:87
Aws::CodeCommit::Model::MergeMetadata::GetMergedBy
const Aws::String & GetMergedBy() const
Definition: MergeMetadata.h:67
Aws::CodeCommit::Model::MergeMetadata::WithIsMerged
MergeMetadata & WithIsMerged(bool value)
Definition: MergeMetadata.h:61
Aws::CodeCommit::Model::MergeOptionTypeEnum
MergeOptionTypeEnum
Definition: MergeOptionTypeEnum.h:17
Aws::CodeCommit::Model::MergeMetadata::MergeCommitIdHasBeenSet
bool MergeCommitIdHasBeenSet() const
Definition: MergeMetadata.h:113
Aws::CodeCommit::Model::MergeMetadata::SetMergedBy
void SetMergedBy(const Aws::String &value)
Definition: MergeMetadata.h:77
MergeOptionTypeEnum.h
Aws::CodeCommit::Model::MergeMetadata::MergeOptionHasBeenSet
bool MergeOptionHasBeenSet() const
Definition: MergeMetadata.h:154
Aws::CodeCommit::Model::MergeMetadata::SetMergeCommitId
void SetMergeCommitId(Aws::String &&value)
Definition: MergeMetadata.h:123
Aws::CodeCommit::Model::MergeMetadata::SetMergeCommitId
void SetMergeCommitId(const char *value)
Definition: MergeMetadata.h:128
Aws::CodeCommit::Model::MergeMetadata::SetMergeCommitId
void SetMergeCommitId(const Aws::String &value)
Definition: MergeMetadata.h:118
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::CodeCommit::Model::MergeMetadata::WithMergeOption
MergeMetadata & WithMergeOption(MergeOptionTypeEnum &&value)
Definition: MergeMetadata.h:174
AWSString.h
Aws::CodeCommit::Model::MergeMetadata
Definition: MergeMetadata.h:35
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::MergeMetadata::MergeMetadata
MergeMetadata()
Aws::CodeCommit::Model::MergeMetadata::GetIsMerged
bool GetIsMerged() const
Definition: MergeMetadata.h:46
Aws::CodeCommit::Model::MergeMetadata::SetMergeOption
void SetMergeOption(MergeOptionTypeEnum &&value)
Definition: MergeMetadata.h:164
Aws::CodeCommit::Model::MergeMetadata::WithMergeOption
MergeMetadata & WithMergeOption(const MergeOptionTypeEnum &value)
Definition: MergeMetadata.h:169
Aws::CodeCommit::Model::MergeMetadata::WithMergedBy
MergeMetadata & WithMergedBy(const Aws::String &value)
Definition: MergeMetadata.h:92
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::MergeMetadata::GetMergeCommitId
const Aws::String & GetMergeCommitId() const
Definition: MergeMetadata.h:108
Aws::CodeCommit::Model::MergeMetadata::operator=
MergeMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::MergeMetadata::WithMergeCommitId
MergeMetadata & WithMergeCommitId(Aws::String &&value)
Definition: MergeMetadata.h:138
Aws::CodeCommit::Model::MergeMetadata::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::MergeMetadata::SetMergeOption
void SetMergeOption(const MergeOptionTypeEnum &value)
Definition: MergeMetadata.h:159
Aws::CodeCommit::Model::MergeMetadata::SetMergedBy
void SetMergedBy(Aws::String &&value)
Definition: MergeMetadata.h:82
Aws::CodeCommit::Model::MergeMetadata::MergeMetadata
MergeMetadata(Aws::Utils::Json::JsonView jsonValue)