AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
PullRequestTarget.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/model/MergeMetadata.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeCommit {
21namespace Model {
22
30 public:
31 AWS_CODECOMMIT_API PullRequestTarget() = default;
32 AWS_CODECOMMIT_API PullRequestTarget(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
42 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
43 template <typename RepositoryNameT = Aws::String>
44 void SetRepositoryName(RepositoryNameT&& value) {
45 m_repositoryNameHasBeenSet = true;
46 m_repositoryName = std::forward<RepositoryNameT>(value);
47 }
48 template <typename RepositoryNameT = Aws::String>
49 PullRequestTarget& WithRepositoryName(RepositoryNameT&& value) {
50 SetRepositoryName(std::forward<RepositoryNameT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetSourceReference() const { return m_sourceReference; }
61 inline bool SourceReferenceHasBeenSet() const { return m_sourceReferenceHasBeenSet; }
62 template <typename SourceReferenceT = Aws::String>
63 void SetSourceReference(SourceReferenceT&& value) {
64 m_sourceReferenceHasBeenSet = true;
65 m_sourceReference = std::forward<SourceReferenceT>(value);
66 }
67 template <typename SourceReferenceT = Aws::String>
68 PullRequestTarget& WithSourceReference(SourceReferenceT&& value) {
69 SetSourceReference(std::forward<SourceReferenceT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetDestinationReference() const { return m_destinationReference; }
80 inline bool DestinationReferenceHasBeenSet() const { return m_destinationReferenceHasBeenSet; }
81 template <typename DestinationReferenceT = Aws::String>
82 void SetDestinationReference(DestinationReferenceT&& value) {
83 m_destinationReferenceHasBeenSet = true;
84 m_destinationReference = std::forward<DestinationReferenceT>(value);
85 }
86 template <typename DestinationReferenceT = Aws::String>
87 PullRequestTarget& WithDestinationReference(DestinationReferenceT&& value) {
88 SetDestinationReference(std::forward<DestinationReferenceT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::String& GetDestinationCommit() const { return m_destinationCommit; }
99 inline bool DestinationCommitHasBeenSet() const { return m_destinationCommitHasBeenSet; }
100 template <typename DestinationCommitT = Aws::String>
101 void SetDestinationCommit(DestinationCommitT&& value) {
102 m_destinationCommitHasBeenSet = true;
103 m_destinationCommit = std::forward<DestinationCommitT>(value);
104 }
105 template <typename DestinationCommitT = Aws::String>
106 PullRequestTarget& WithDestinationCommit(DestinationCommitT&& value) {
107 SetDestinationCommit(std::forward<DestinationCommitT>(value));
108 return *this;
109 }
111
113
118 inline const Aws::String& GetSourceCommit() const { return m_sourceCommit; }
119 inline bool SourceCommitHasBeenSet() const { return m_sourceCommitHasBeenSet; }
120 template <typename SourceCommitT = Aws::String>
121 void SetSourceCommit(SourceCommitT&& value) {
122 m_sourceCommitHasBeenSet = true;
123 m_sourceCommit = std::forward<SourceCommitT>(value);
124 }
125 template <typename SourceCommitT = Aws::String>
126 PullRequestTarget& WithSourceCommit(SourceCommitT&& value) {
127 SetSourceCommit(std::forward<SourceCommitT>(value));
128 return *this;
129 }
131
133
137 inline const Aws::String& GetMergeBase() const { return m_mergeBase; }
138 inline bool MergeBaseHasBeenSet() const { return m_mergeBaseHasBeenSet; }
139 template <typename MergeBaseT = Aws::String>
140 void SetMergeBase(MergeBaseT&& value) {
141 m_mergeBaseHasBeenSet = true;
142 m_mergeBase = std::forward<MergeBaseT>(value);
143 }
144 template <typename MergeBaseT = Aws::String>
145 PullRequestTarget& WithMergeBase(MergeBaseT&& value) {
146 SetMergeBase(std::forward<MergeBaseT>(value));
147 return *this;
148 }
150
152
156 inline const MergeMetadata& GetMergeMetadata() const { return m_mergeMetadata; }
157 inline bool MergeMetadataHasBeenSet() const { return m_mergeMetadataHasBeenSet; }
158 template <typename MergeMetadataT = MergeMetadata>
159 void SetMergeMetadata(MergeMetadataT&& value) {
160 m_mergeMetadataHasBeenSet = true;
161 m_mergeMetadata = std::forward<MergeMetadataT>(value);
162 }
163 template <typename MergeMetadataT = MergeMetadata>
164 PullRequestTarget& WithMergeMetadata(MergeMetadataT&& value) {
165 SetMergeMetadata(std::forward<MergeMetadataT>(value));
166 return *this;
167 }
169 private:
170 Aws::String m_repositoryName;
171
172 Aws::String m_sourceReference;
173
174 Aws::String m_destinationReference;
175
176 Aws::String m_destinationCommit;
177
178 Aws::String m_sourceCommit;
179
180 Aws::String m_mergeBase;
181
182 MergeMetadata m_mergeMetadata;
183 bool m_repositoryNameHasBeenSet = false;
184 bool m_sourceReferenceHasBeenSet = false;
185 bool m_destinationReferenceHasBeenSet = false;
186 bool m_destinationCommitHasBeenSet = false;
187 bool m_sourceCommitHasBeenSet = false;
188 bool m_mergeBaseHasBeenSet = false;
189 bool m_mergeMetadataHasBeenSet = false;
190};
191
192} // namespace Model
193} // namespace CodeCommit
194} // namespace Aws
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDestinationCommit(DestinationCommitT &&value)
const MergeMetadata & GetMergeMetadata() const
void SetMergeMetadata(MergeMetadataT &&value)
const Aws::String & GetSourceCommit() const
AWS_CODECOMMIT_API PullRequestTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODECOMMIT_API PullRequestTarget(Aws::Utils::Json::JsonView jsonValue)
AWS_CODECOMMIT_API PullRequestTarget()=default
PullRequestTarget & WithSourceCommit(SourceCommitT &&value)
PullRequestTarget & WithDestinationReference(DestinationReferenceT &&value)
void SetSourceCommit(SourceCommitT &&value)
PullRequestTarget & WithRepositoryName(RepositoryNameT &&value)
PullRequestTarget & WithSourceReference(SourceReferenceT &&value)
const Aws::String & GetDestinationReference() const
const Aws::String & GetSourceReference() const
const Aws::String & GetRepositoryName() const
PullRequestTarget & WithMergeBase(MergeBaseT &&value)
const Aws::String & GetDestinationCommit() const
PullRequestTarget & WithMergeMetadata(MergeMetadataT &&value)
PullRequestTarget & WithDestinationCommit(DestinationCommitT &&value)
void SetRepositoryName(RepositoryNameT &&value)
void SetSourceReference(SourceReferenceT &&value)
void SetDestinationReference(DestinationReferenceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue