AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PullRequestTarget.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codecommit/model/MergeMetadata.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeCommit
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CODECOMMIT_API PullRequestTarget();
37 AWS_CODECOMMIT_API PullRequestTarget(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
48 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
49 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
50 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
51 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
52 inline PullRequestTarget& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
53 inline PullRequestTarget& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
54 inline PullRequestTarget& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
56
58
62 inline const Aws::String& GetSourceReference() const{ return m_sourceReference; }
63 inline bool SourceReferenceHasBeenSet() const { return m_sourceReferenceHasBeenSet; }
64 inline void SetSourceReference(const Aws::String& value) { m_sourceReferenceHasBeenSet = true; m_sourceReference = value; }
65 inline void SetSourceReference(Aws::String&& value) { m_sourceReferenceHasBeenSet = true; m_sourceReference = std::move(value); }
66 inline void SetSourceReference(const char* value) { m_sourceReferenceHasBeenSet = true; m_sourceReference.assign(value); }
67 inline PullRequestTarget& WithSourceReference(const Aws::String& value) { SetSourceReference(value); return *this;}
68 inline PullRequestTarget& WithSourceReference(Aws::String&& value) { SetSourceReference(std::move(value)); return *this;}
69 inline PullRequestTarget& WithSourceReference(const char* value) { SetSourceReference(value); return *this;}
71
73
77 inline const Aws::String& GetDestinationReference() const{ return m_destinationReference; }
78 inline bool DestinationReferenceHasBeenSet() const { return m_destinationReferenceHasBeenSet; }
79 inline void SetDestinationReference(const Aws::String& value) { m_destinationReferenceHasBeenSet = true; m_destinationReference = value; }
80 inline void SetDestinationReference(Aws::String&& value) { m_destinationReferenceHasBeenSet = true; m_destinationReference = std::move(value); }
81 inline void SetDestinationReference(const char* value) { m_destinationReferenceHasBeenSet = true; m_destinationReference.assign(value); }
83 inline PullRequestTarget& WithDestinationReference(Aws::String&& value) { SetDestinationReference(std::move(value)); return *this;}
84 inline PullRequestTarget& WithDestinationReference(const char* value) { SetDestinationReference(value); return *this;}
86
88
92 inline const Aws::String& GetDestinationCommit() const{ return m_destinationCommit; }
93 inline bool DestinationCommitHasBeenSet() const { return m_destinationCommitHasBeenSet; }
94 inline void SetDestinationCommit(const Aws::String& value) { m_destinationCommitHasBeenSet = true; m_destinationCommit = value; }
95 inline void SetDestinationCommit(Aws::String&& value) { m_destinationCommitHasBeenSet = true; m_destinationCommit = std::move(value); }
96 inline void SetDestinationCommit(const char* value) { m_destinationCommitHasBeenSet = true; m_destinationCommit.assign(value); }
97 inline PullRequestTarget& WithDestinationCommit(const Aws::String& value) { SetDestinationCommit(value); return *this;}
98 inline PullRequestTarget& WithDestinationCommit(Aws::String&& value) { SetDestinationCommit(std::move(value)); return *this;}
99 inline PullRequestTarget& WithDestinationCommit(const char* value) { SetDestinationCommit(value); return *this;}
101
103
108 inline const Aws::String& GetSourceCommit() const{ return m_sourceCommit; }
109 inline bool SourceCommitHasBeenSet() const { return m_sourceCommitHasBeenSet; }
110 inline void SetSourceCommit(const Aws::String& value) { m_sourceCommitHasBeenSet = true; m_sourceCommit = value; }
111 inline void SetSourceCommit(Aws::String&& value) { m_sourceCommitHasBeenSet = true; m_sourceCommit = std::move(value); }
112 inline void SetSourceCommit(const char* value) { m_sourceCommitHasBeenSet = true; m_sourceCommit.assign(value); }
113 inline PullRequestTarget& WithSourceCommit(const Aws::String& value) { SetSourceCommit(value); return *this;}
114 inline PullRequestTarget& WithSourceCommit(Aws::String&& value) { SetSourceCommit(std::move(value)); return *this;}
115 inline PullRequestTarget& WithSourceCommit(const char* value) { SetSourceCommit(value); return *this;}
117
119
123 inline const Aws::String& GetMergeBase() const{ return m_mergeBase; }
124 inline bool MergeBaseHasBeenSet() const { return m_mergeBaseHasBeenSet; }
125 inline void SetMergeBase(const Aws::String& value) { m_mergeBaseHasBeenSet = true; m_mergeBase = value; }
126 inline void SetMergeBase(Aws::String&& value) { m_mergeBaseHasBeenSet = true; m_mergeBase = std::move(value); }
127 inline void SetMergeBase(const char* value) { m_mergeBaseHasBeenSet = true; m_mergeBase.assign(value); }
128 inline PullRequestTarget& WithMergeBase(const Aws::String& value) { SetMergeBase(value); return *this;}
129 inline PullRequestTarget& WithMergeBase(Aws::String&& value) { SetMergeBase(std::move(value)); return *this;}
130 inline PullRequestTarget& WithMergeBase(const char* value) { SetMergeBase(value); return *this;}
132
134
138 inline const MergeMetadata& GetMergeMetadata() const{ return m_mergeMetadata; }
139 inline bool MergeMetadataHasBeenSet() const { return m_mergeMetadataHasBeenSet; }
140 inline void SetMergeMetadata(const MergeMetadata& value) { m_mergeMetadataHasBeenSet = true; m_mergeMetadata = value; }
141 inline void SetMergeMetadata(MergeMetadata&& value) { m_mergeMetadataHasBeenSet = true; m_mergeMetadata = std::move(value); }
142 inline PullRequestTarget& WithMergeMetadata(const MergeMetadata& value) { SetMergeMetadata(value); return *this;}
143 inline PullRequestTarget& WithMergeMetadata(MergeMetadata&& value) { SetMergeMetadata(std::move(value)); return *this;}
145 private:
146
147 Aws::String m_repositoryName;
148 bool m_repositoryNameHasBeenSet = false;
149
150 Aws::String m_sourceReference;
151 bool m_sourceReferenceHasBeenSet = false;
152
153 Aws::String m_destinationReference;
154 bool m_destinationReferenceHasBeenSet = false;
155
156 Aws::String m_destinationCommit;
157 bool m_destinationCommitHasBeenSet = false;
158
159 Aws::String m_sourceCommit;
160 bool m_sourceCommitHasBeenSet = false;
161
162 Aws::String m_mergeBase;
163 bool m_mergeBaseHasBeenSet = false;
164
165 MergeMetadata m_mergeMetadata;
166 bool m_mergeMetadataHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace CodeCommit
171} // namespace Aws
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
const MergeMetadata & GetMergeMetadata() const
void SetRepositoryName(const Aws::String &value)
const Aws::String & GetSourceCommit() const
void SetDestinationCommit(Aws::String &&value)
void SetSourceCommit(const Aws::String &value)
AWS_CODECOMMIT_API PullRequestTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODECOMMIT_API PullRequestTarget(Aws::Utils::Json::JsonView jsonValue)
PullRequestTarget & WithMergeMetadata(const MergeMetadata &value)
PullRequestTarget & WithSourceCommit(const char *value)
PullRequestTarget & WithRepositoryName(const char *value)
PullRequestTarget & WithDestinationReference(const Aws::String &value)
PullRequestTarget & WithRepositoryName(Aws::String &&value)
PullRequestTarget & WithRepositoryName(const Aws::String &value)
PullRequestTarget & WithSourceCommit(Aws::String &&value)
void SetDestinationCommit(const Aws::String &value)
PullRequestTarget & WithDestinationCommit(const Aws::String &value)
PullRequestTarget & WithDestinationCommit(Aws::String &&value)
PullRequestTarget & WithSourceCommit(const Aws::String &value)
PullRequestTarget & WithSourceReference(const Aws::String &value)
void SetSourceReference(const Aws::String &value)
const Aws::String & GetDestinationReference() const
void SetMergeBase(const Aws::String &value)
const Aws::String & GetSourceReference() const
void SetMergeMetadata(const MergeMetadata &value)
const Aws::String & GetRepositoryName() const
PullRequestTarget & WithSourceReference(Aws::String &&value)
PullRequestTarget & WithMergeBase(const char *value)
void SetDestinationReference(const Aws::String &value)
PullRequestTarget & WithMergeBase(Aws::String &&value)
void SetMergeMetadata(MergeMetadata &&value)
const Aws::String & GetDestinationCommit() const
PullRequestTarget & WithDestinationReference(const char *value)
void SetDestinationReference(Aws::String &&value)
PullRequestTarget & WithSourceReference(const char *value)
PullRequestTarget & WithMergeBase(const Aws::String &value)
PullRequestTarget & WithDestinationCommit(const char *value)
PullRequestTarget & WithDestinationReference(Aws::String &&value)
PullRequestTarget & WithMergeMetadata(MergeMetadata &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue