AWS SDK for C++  1.9.20
AWS SDK for C++
PullRequestTarget.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 
34  {
35  public:
40 
41 
46  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
47 
52  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
53 
58  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
59 
64  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
65 
70  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
71 
76  inline PullRequestTarget& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
77 
82  inline PullRequestTarget& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
83 
88  inline PullRequestTarget& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
89 
90 
95  inline const Aws::String& GetSourceReference() const{ return m_sourceReference; }
96 
101  inline bool SourceReferenceHasBeenSet() const { return m_sourceReferenceHasBeenSet; }
102 
107  inline void SetSourceReference(const Aws::String& value) { m_sourceReferenceHasBeenSet = true; m_sourceReference = value; }
108 
113  inline void SetSourceReference(Aws::String&& value) { m_sourceReferenceHasBeenSet = true; m_sourceReference = std::move(value); }
114 
119  inline void SetSourceReference(const char* value) { m_sourceReferenceHasBeenSet = true; m_sourceReference.assign(value); }
120 
125  inline PullRequestTarget& WithSourceReference(const Aws::String& value) { SetSourceReference(value); return *this;}
126 
131  inline PullRequestTarget& WithSourceReference(Aws::String&& value) { SetSourceReference(std::move(value)); return *this;}
132 
137  inline PullRequestTarget& WithSourceReference(const char* value) { SetSourceReference(value); return *this;}
138 
139 
144  inline const Aws::String& GetDestinationReference() const{ return m_destinationReference; }
145 
150  inline bool DestinationReferenceHasBeenSet() const { return m_destinationReferenceHasBeenSet; }
151 
156  inline void SetDestinationReference(const Aws::String& value) { m_destinationReferenceHasBeenSet = true; m_destinationReference = value; }
157 
162  inline void SetDestinationReference(Aws::String&& value) { m_destinationReferenceHasBeenSet = true; m_destinationReference = std::move(value); }
163 
168  inline void SetDestinationReference(const char* value) { m_destinationReferenceHasBeenSet = true; m_destinationReference.assign(value); }
169 
174  inline PullRequestTarget& WithDestinationReference(const Aws::String& value) { SetDestinationReference(value); return *this;}
175 
180  inline PullRequestTarget& WithDestinationReference(Aws::String&& value) { SetDestinationReference(std::move(value)); return *this;}
181 
186  inline PullRequestTarget& WithDestinationReference(const char* value) { SetDestinationReference(value); return *this;}
187 
188 
193  inline const Aws::String& GetDestinationCommit() const{ return m_destinationCommit; }
194 
199  inline bool DestinationCommitHasBeenSet() const { return m_destinationCommitHasBeenSet; }
200 
205  inline void SetDestinationCommit(const Aws::String& value) { m_destinationCommitHasBeenSet = true; m_destinationCommit = value; }
206 
211  inline void SetDestinationCommit(Aws::String&& value) { m_destinationCommitHasBeenSet = true; m_destinationCommit = std::move(value); }
212 
217  inline void SetDestinationCommit(const char* value) { m_destinationCommitHasBeenSet = true; m_destinationCommit.assign(value); }
218 
223  inline PullRequestTarget& WithDestinationCommit(const Aws::String& value) { SetDestinationCommit(value); return *this;}
224 
229  inline PullRequestTarget& WithDestinationCommit(Aws::String&& value) { SetDestinationCommit(std::move(value)); return *this;}
230 
235  inline PullRequestTarget& WithDestinationCommit(const char* value) { SetDestinationCommit(value); return *this;}
236 
237 
243  inline const Aws::String& GetSourceCommit() const{ return m_sourceCommit; }
244 
250  inline bool SourceCommitHasBeenSet() const { return m_sourceCommitHasBeenSet; }
251 
257  inline void SetSourceCommit(const Aws::String& value) { m_sourceCommitHasBeenSet = true; m_sourceCommit = value; }
258 
264  inline void SetSourceCommit(Aws::String&& value) { m_sourceCommitHasBeenSet = true; m_sourceCommit = std::move(value); }
265 
271  inline void SetSourceCommit(const char* value) { m_sourceCommitHasBeenSet = true; m_sourceCommit.assign(value); }
272 
278  inline PullRequestTarget& WithSourceCommit(const Aws::String& value) { SetSourceCommit(value); return *this;}
279 
285  inline PullRequestTarget& WithSourceCommit(Aws::String&& value) { SetSourceCommit(std::move(value)); return *this;}
286 
292  inline PullRequestTarget& WithSourceCommit(const char* value) { SetSourceCommit(value); return *this;}
293 
294 
299  inline const Aws::String& GetMergeBase() const{ return m_mergeBase; }
300 
305  inline bool MergeBaseHasBeenSet() const { return m_mergeBaseHasBeenSet; }
306 
311  inline void SetMergeBase(const Aws::String& value) { m_mergeBaseHasBeenSet = true; m_mergeBase = value; }
312 
317  inline void SetMergeBase(Aws::String&& value) { m_mergeBaseHasBeenSet = true; m_mergeBase = std::move(value); }
318 
323  inline void SetMergeBase(const char* value) { m_mergeBaseHasBeenSet = true; m_mergeBase.assign(value); }
324 
329  inline PullRequestTarget& WithMergeBase(const Aws::String& value) { SetMergeBase(value); return *this;}
330 
335  inline PullRequestTarget& WithMergeBase(Aws::String&& value) { SetMergeBase(std::move(value)); return *this;}
336 
341  inline PullRequestTarget& WithMergeBase(const char* value) { SetMergeBase(value); return *this;}
342 
343 
348  inline const MergeMetadata& GetMergeMetadata() const{ return m_mergeMetadata; }
349 
354  inline bool MergeMetadataHasBeenSet() const { return m_mergeMetadataHasBeenSet; }
355 
360  inline void SetMergeMetadata(const MergeMetadata& value) { m_mergeMetadataHasBeenSet = true; m_mergeMetadata = value; }
361 
366  inline void SetMergeMetadata(MergeMetadata&& value) { m_mergeMetadataHasBeenSet = true; m_mergeMetadata = std::move(value); }
367 
372  inline PullRequestTarget& WithMergeMetadata(const MergeMetadata& value) { SetMergeMetadata(value); return *this;}
373 
378  inline PullRequestTarget& WithMergeMetadata(MergeMetadata&& value) { SetMergeMetadata(std::move(value)); return *this;}
379 
380  private:
381 
382  Aws::String m_repositoryName;
383  bool m_repositoryNameHasBeenSet;
384 
385  Aws::String m_sourceReference;
386  bool m_sourceReferenceHasBeenSet;
387 
388  Aws::String m_destinationReference;
389  bool m_destinationReferenceHasBeenSet;
390 
391  Aws::String m_destinationCommit;
392  bool m_destinationCommitHasBeenSet;
393 
394  Aws::String m_sourceCommit;
395  bool m_sourceCommitHasBeenSet;
396 
397  Aws::String m_mergeBase;
398  bool m_mergeBaseHasBeenSet;
399 
400  MergeMetadata m_mergeMetadata;
401  bool m_mergeMetadataHasBeenSet;
402  };
403 
404 } // namespace Model
405 } // namespace CodeCommit
406 } // namespace Aws
Aws::CodeCommit::Model::PullRequestTarget::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::PullRequestTarget::PullRequestTarget
PullRequestTarget(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::PullRequestTarget::WithDestinationCommit
PullRequestTarget & WithDestinationCommit(const char *value)
Definition: PullRequestTarget.h:235
Aws::CodeCommit::Model::PullRequestTarget::DestinationReferenceHasBeenSet
bool DestinationReferenceHasBeenSet() const
Definition: PullRequestTarget.h:150
Aws::CodeCommit::Model::PullRequestTarget::DestinationCommitHasBeenSet
bool DestinationCommitHasBeenSet() const
Definition: PullRequestTarget.h:199
Aws::CodeCommit::Model::PullRequestTarget::GetDestinationReference
const Aws::String & GetDestinationReference() const
Definition: PullRequestTarget.h:144
Aws::CodeCommit::Model::PullRequestTarget::WithRepositoryName
PullRequestTarget & WithRepositoryName(const Aws::String &value)
Definition: PullRequestTarget.h:76
Aws::CodeCommit::Model::PullRequestTarget::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: PullRequestTarget.h:46
Aws::CodeCommit::Model::PullRequestTarget::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: PullRequestTarget.h:52
Aws::CodeCommit::Model::PullRequestTarget::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: PullRequestTarget.h:64
Aws::CodeCommit::Model::PullRequestTarget::WithSourceCommit
PullRequestTarget & WithSourceCommit(const char *value)
Definition: PullRequestTarget.h:292
MergeMetadata.h
Aws::CodeCommit::Model::PullRequestTarget::SetDestinationCommit
void SetDestinationCommit(const char *value)
Definition: PullRequestTarget.h:217
Aws::CodeCommit::Model::PullRequestTarget::WithMergeBase
PullRequestTarget & WithMergeBase(const Aws::String &value)
Definition: PullRequestTarget.h:329
Aws::CodeCommit::Model::PullRequestTarget::SetMergeMetadata
void SetMergeMetadata(MergeMetadata &&value)
Definition: PullRequestTarget.h:366
Aws::CodeCommit::Model::PullRequestTarget::WithMergeBase
PullRequestTarget & WithMergeBase(Aws::String &&value)
Definition: PullRequestTarget.h:335
Aws::CodeCommit::Model::PullRequestTarget::operator=
PullRequestTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::PullRequestTarget::SetDestinationCommit
void SetDestinationCommit(const Aws::String &value)
Definition: PullRequestTarget.h:205
Aws::CodeCommit::Model::PullRequestTarget::SetDestinationCommit
void SetDestinationCommit(Aws::String &&value)
Definition: PullRequestTarget.h:211
Aws::CodeCommit::Model::PullRequestTarget::WithDestinationReference
PullRequestTarget & WithDestinationReference(const Aws::String &value)
Definition: PullRequestTarget.h:174
Aws::CodeCommit::Model::PullRequestTarget::WithSourceCommit
PullRequestTarget & WithSourceCommit(const Aws::String &value)
Definition: PullRequestTarget.h:278
Aws::CodeCommit::Model::PullRequestTarget::WithSourceReference
PullRequestTarget & WithSourceReference(const Aws::String &value)
Definition: PullRequestTarget.h:125
Aws::CodeCommit::Model::PullRequestTarget::WithSourceReference
PullRequestTarget & WithSourceReference(Aws::String &&value)
Definition: PullRequestTarget.h:131
Aws::CodeCommit::Model::PullRequestTarget::MergeBaseHasBeenSet
bool MergeBaseHasBeenSet() const
Definition: PullRequestTarget.h:305
Aws::CodeCommit::Model::PullRequestTarget::WithDestinationReference
PullRequestTarget & WithDestinationReference(const char *value)
Definition: PullRequestTarget.h:186
Aws::CodeCommit::Model::PullRequestTarget::WithDestinationCommit
PullRequestTarget & WithDestinationCommit(Aws::String &&value)
Definition: PullRequestTarget.h:229
Aws::CodeCommit::Model::PullRequestTarget::WithMergeMetadata
PullRequestTarget & WithMergeMetadata(const MergeMetadata &value)
Definition: PullRequestTarget.h:372
Aws::CodeCommit::Model::PullRequestTarget::SetMergeBase
void SetMergeBase(const char *value)
Definition: PullRequestTarget.h:323
Aws::CodeCommit::Model::PullRequestTarget::GetSourceReference
const Aws::String & GetSourceReference() const
Definition: PullRequestTarget.h:95
Aws::CodeCommit::Model::PullRequestTarget::WithMergeMetadata
PullRequestTarget & WithMergeMetadata(MergeMetadata &&value)
Definition: PullRequestTarget.h:378
Aws::CodeCommit::Model::PullRequestTarget::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: PullRequestTarget.h:70
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::CodeCommit::Model::PullRequestTarget::SourceCommitHasBeenSet
bool SourceCommitHasBeenSet() const
Definition: PullRequestTarget.h:250
AWSString.h
Aws::CodeCommit::Model::PullRequestTarget::GetMergeMetadata
const MergeMetadata & GetMergeMetadata() const
Definition: PullRequestTarget.h:348
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::PullRequestTarget::WithMergeBase
PullRequestTarget & WithMergeBase(const char *value)
Definition: PullRequestTarget.h:341
Aws::CodeCommit::Model::PullRequestTarget::SetSourceReference
void SetSourceReference(Aws::String &&value)
Definition: PullRequestTarget.h:113
Aws::CodeCommit::Model::PullRequestTarget::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: PullRequestTarget.h:58
Aws::CodeCommit::Model::PullRequestTarget::GetMergeBase
const Aws::String & GetMergeBase() const
Definition: PullRequestTarget.h:299
Aws::CodeCommit::Model::PullRequestTarget::SetDestinationReference
void SetDestinationReference(Aws::String &&value)
Definition: PullRequestTarget.h:162
Aws::CodeCommit::Model::PullRequestTarget::SetDestinationReference
void SetDestinationReference(const char *value)
Definition: PullRequestTarget.h:168
Aws::CodeCommit::Model::PullRequestTarget::SetSourceCommit
void SetSourceCommit(const Aws::String &value)
Definition: PullRequestTarget.h:257
Aws::CodeCommit::Model::PullRequestTarget::PullRequestTarget
PullRequestTarget()
Aws::CodeCommit::Model::PullRequestTarget::SetMergeBase
void SetMergeBase(const Aws::String &value)
Definition: PullRequestTarget.h:311
Aws::CodeCommit::Model::PullRequestTarget::WithDestinationReference
PullRequestTarget & WithDestinationReference(Aws::String &&value)
Definition: PullRequestTarget.h:180
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::PullRequestTarget::SetDestinationReference
void SetDestinationReference(const Aws::String &value)
Definition: PullRequestTarget.h:156
Aws::CodeCommit::Model::PullRequestTarget
Definition: PullRequestTarget.h:34
Aws::CodeCommit::Model::PullRequestTarget::SetSourceReference
void SetSourceReference(const Aws::String &value)
Definition: PullRequestTarget.h:107
Aws::CodeCommit::Model::PullRequestTarget::SetSourceCommit
void SetSourceCommit(Aws::String &&value)
Definition: PullRequestTarget.h:264
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::PullRequestTarget::SourceReferenceHasBeenSet
bool SourceReferenceHasBeenSet() const
Definition: PullRequestTarget.h:101
Aws::CodeCommit::Model::PullRequestTarget::GetDestinationCommit
const Aws::String & GetDestinationCommit() const
Definition: PullRequestTarget.h:193
Aws::CodeCommit::Model::PullRequestTarget::WithRepositoryName
PullRequestTarget & WithRepositoryName(const char *value)
Definition: PullRequestTarget.h:88
Aws::CodeCommit::Model::PullRequestTarget::SetSourceCommit
void SetSourceCommit(const char *value)
Definition: PullRequestTarget.h:271
Aws::CodeCommit::Model::PullRequestTarget::WithDestinationCommit
PullRequestTarget & WithDestinationCommit(const Aws::String &value)
Definition: PullRequestTarget.h:223
Aws::CodeCommit::Model::PullRequestTarget::MergeMetadataHasBeenSet
bool MergeMetadataHasBeenSet() const
Definition: PullRequestTarget.h:354
Aws::CodeCommit::Model::PullRequestTarget::SetMergeBase
void SetMergeBase(Aws::String &&value)
Definition: PullRequestTarget.h:317
Aws::CodeCommit::Model::PullRequestTarget::WithRepositoryName
PullRequestTarget & WithRepositoryName(Aws::String &&value)
Definition: PullRequestTarget.h:82
Aws::CodeCommit::Model::PullRequestTarget::WithSourceReference
PullRequestTarget & WithSourceReference(const char *value)
Definition: PullRequestTarget.h:137
Aws::CodeCommit::Model::PullRequestTarget::SetSourceReference
void SetSourceReference(const char *value)
Definition: PullRequestTarget.h:119
Aws::CodeCommit::Model::PullRequestTarget::WithSourceCommit
PullRequestTarget & WithSourceCommit(Aws::String &&value)
Definition: PullRequestTarget.h:285
Aws::CodeCommit::Model::PullRequestTarget::SetMergeMetadata
void SetMergeMetadata(const MergeMetadata &value)
Definition: PullRequestTarget.h:360
Aws::CodeCommit::Model::PullRequestTarget::GetSourceCommit
const Aws::String & GetSourceCommit() const
Definition: PullRequestTarget.h:243