AWS SDK for C++  1.8.152
AWS SDK for C++
PullRequestSourceReferenceUpdatedEventMetadata.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 
44  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
45 
49  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
50 
54  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
55 
59  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
60 
64  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
65 
69  inline PullRequestSourceReferenceUpdatedEventMetadata& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
70 
74  inline PullRequestSourceReferenceUpdatedEventMetadata& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
75 
79  inline PullRequestSourceReferenceUpdatedEventMetadata& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
80 
81 
86  inline const Aws::String& GetBeforeCommitId() const{ return m_beforeCommitId; }
87 
92  inline bool BeforeCommitIdHasBeenSet() const { return m_beforeCommitIdHasBeenSet; }
93 
98  inline void SetBeforeCommitId(const Aws::String& value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId = value; }
99 
104  inline void SetBeforeCommitId(Aws::String&& value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId = std::move(value); }
105 
110  inline void SetBeforeCommitId(const char* value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId.assign(value); }
111 
116  inline PullRequestSourceReferenceUpdatedEventMetadata& WithBeforeCommitId(const Aws::String& value) { SetBeforeCommitId(value); return *this;}
117 
122  inline PullRequestSourceReferenceUpdatedEventMetadata& WithBeforeCommitId(Aws::String&& value) { SetBeforeCommitId(std::move(value)); return *this;}
123 
128  inline PullRequestSourceReferenceUpdatedEventMetadata& WithBeforeCommitId(const char* value) { SetBeforeCommitId(value); return *this;}
129 
130 
135  inline const Aws::String& GetAfterCommitId() const{ return m_afterCommitId; }
136 
141  inline bool AfterCommitIdHasBeenSet() const { return m_afterCommitIdHasBeenSet; }
142 
147  inline void SetAfterCommitId(const Aws::String& value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId = value; }
148 
153  inline void SetAfterCommitId(Aws::String&& value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId = std::move(value); }
154 
159  inline void SetAfterCommitId(const char* value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId.assign(value); }
160 
165  inline PullRequestSourceReferenceUpdatedEventMetadata& WithAfterCommitId(const Aws::String& value) { SetAfterCommitId(value); return *this;}
166 
171  inline PullRequestSourceReferenceUpdatedEventMetadata& WithAfterCommitId(Aws::String&& value) { SetAfterCommitId(std::move(value)); return *this;}
172 
177  inline PullRequestSourceReferenceUpdatedEventMetadata& WithAfterCommitId(const char* value) { SetAfterCommitId(value); return *this;}
178 
179 
184  inline const Aws::String& GetMergeBase() const{ return m_mergeBase; }
185 
190  inline bool MergeBaseHasBeenSet() const { return m_mergeBaseHasBeenSet; }
191 
196  inline void SetMergeBase(const Aws::String& value) { m_mergeBaseHasBeenSet = true; m_mergeBase = value; }
197 
202  inline void SetMergeBase(Aws::String&& value) { m_mergeBaseHasBeenSet = true; m_mergeBase = std::move(value); }
203 
208  inline void SetMergeBase(const char* value) { m_mergeBaseHasBeenSet = true; m_mergeBase.assign(value); }
209 
214  inline PullRequestSourceReferenceUpdatedEventMetadata& WithMergeBase(const Aws::String& value) { SetMergeBase(value); return *this;}
215 
220  inline PullRequestSourceReferenceUpdatedEventMetadata& WithMergeBase(Aws::String&& value) { SetMergeBase(std::move(value)); return *this;}
221 
226  inline PullRequestSourceReferenceUpdatedEventMetadata& WithMergeBase(const char* value) { SetMergeBase(value); return *this;}
227 
228  private:
229 
230  Aws::String m_repositoryName;
231  bool m_repositoryNameHasBeenSet;
232 
233  Aws::String m_beforeCommitId;
234  bool m_beforeCommitIdHasBeenSet;
235 
236  Aws::String m_afterCommitId;
237  bool m_afterCommitIdHasBeenSet;
238 
239  Aws::String m_mergeBase;
240  bool m_mergeBaseHasBeenSet;
241  };
242 
243 } // namespace Model
244 } // namespace CodeCommit
245 } // namespace Aws
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::SetAfterCommitId
void SetAfterCommitId(const Aws::String &value)
Definition: PullRequestSourceReferenceUpdatedEventMetadata.h:147
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::SetAfterCommitId
void SetAfterCommitId(Aws::String &&value)
Definition: PullRequestSourceReferenceUpdatedEventMetadata.h:153
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::SetMergeBase
void SetMergeBase(Aws::String &&value)
Definition: PullRequestSourceReferenceUpdatedEventMetadata.h:202
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::WithBeforeCommitId
PullRequestSourceReferenceUpdatedEventMetadata & WithBeforeCommitId(Aws::String &&value)
Definition: PullRequestSourceReferenceUpdatedEventMetadata.h:122
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::GetMergeBase
const Aws::String & GetMergeBase() const
Definition: PullRequestSourceReferenceUpdatedEventMetadata.h:184
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: PullRequestSourceReferenceUpdatedEventMetadata.h:44
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::operator=
PullRequestSourceReferenceUpdatedEventMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::AfterCommitIdHasBeenSet
bool AfterCommitIdHasBeenSet() const
Definition: PullRequestSourceReferenceUpdatedEventMetadata.h:141
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::WithRepositoryName
PullRequestSourceReferenceUpdatedEventMetadata & WithRepositoryName(const Aws::String &value)
Definition: PullRequestSourceReferenceUpdatedEventMetadata.h:69
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::SetBeforeCommitId
void SetBeforeCommitId(Aws::String &&value)
Definition: PullRequestSourceReferenceUpdatedEventMetadata.h:104
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::SetBeforeCommitId
void SetBeforeCommitId(const char *value)
Definition: PullRequestSourceReferenceUpdatedEventMetadata.h:110
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::WithBeforeCommitId
PullRequestSourceReferenceUpdatedEventMetadata & WithBeforeCommitId(const Aws::String &value)
Definition: PullRequestSourceReferenceUpdatedEventMetadata.h:116
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::WithAfterCommitId
PullRequestSourceReferenceUpdatedEventMetadata & WithAfterCommitId(const char *value)
Definition: PullRequestSourceReferenceUpdatedEventMetadata.h:177
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::MergeBaseHasBeenSet
bool MergeBaseHasBeenSet() const
Definition: PullRequestSourceReferenceUpdatedEventMetadata.h:190
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::BeforeCommitIdHasBeenSet
bool BeforeCommitIdHasBeenSet() const
Definition: PullRequestSourceReferenceUpdatedEventMetadata.h:92
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::WithMergeBase
PullRequestSourceReferenceUpdatedEventMetadata & WithMergeBase(const Aws::String &value)
Definition: PullRequestSourceReferenceUpdatedEventMetadata.h:214
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::WithRepositoryName
PullRequestSourceReferenceUpdatedEventMetadata & WithRepositoryName(Aws::String &&value)
Definition: PullRequestSourceReferenceUpdatedEventMetadata.h:74
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::SetMergeBase
void SetMergeBase(const Aws::String &value)
Definition: PullRequestSourceReferenceUpdatedEventMetadata.h:196
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: PullRequestSourceReferenceUpdatedEventMetadata.h:64
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::SetAfterCommitId
void SetAfterCommitId(const char *value)
Definition: PullRequestSourceReferenceUpdatedEventMetadata.h:159
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::WithAfterCommitId
PullRequestSourceReferenceUpdatedEventMetadata & WithAfterCommitId(Aws::String &&value)
Definition: PullRequestSourceReferenceUpdatedEventMetadata.h:171
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::GetAfterCommitId
const Aws::String & GetAfterCommitId() const
Definition: PullRequestSourceReferenceUpdatedEventMetadata.h:135
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::GetBeforeCommitId
const Aws::String & GetBeforeCommitId() const
Definition: PullRequestSourceReferenceUpdatedEventMetadata.h:86
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::WithBeforeCommitId
PullRequestSourceReferenceUpdatedEventMetadata & WithBeforeCommitId(const char *value)
Definition: PullRequestSourceReferenceUpdatedEventMetadata.h:128
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: PullRequestSourceReferenceUpdatedEventMetadata.h:54
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::WithRepositoryName
PullRequestSourceReferenceUpdatedEventMetadata & WithRepositoryName(const char *value)
Definition: PullRequestSourceReferenceUpdatedEventMetadata.h:79
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::WithMergeBase
PullRequestSourceReferenceUpdatedEventMetadata & WithMergeBase(const char *value)
Definition: PullRequestSourceReferenceUpdatedEventMetadata.h:226
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: PullRequestSourceReferenceUpdatedEventMetadata.h:59
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::PullRequestSourceReferenceUpdatedEventMetadata
PullRequestSourceReferenceUpdatedEventMetadata(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::PullRequestSourceReferenceUpdatedEventMetadata
PullRequestSourceReferenceUpdatedEventMetadata()
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::SetBeforeCommitId
void SetBeforeCommitId(const Aws::String &value)
Definition: PullRequestSourceReferenceUpdatedEventMetadata.h:98
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::WithAfterCommitId
PullRequestSourceReferenceUpdatedEventMetadata & WithAfterCommitId(const Aws::String &value)
Definition: PullRequestSourceReferenceUpdatedEventMetadata.h:165
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata
Definition: PullRequestSourceReferenceUpdatedEventMetadata.h:33
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::WithMergeBase
PullRequestSourceReferenceUpdatedEventMetadata & WithMergeBase(Aws::String &&value)
Definition: PullRequestSourceReferenceUpdatedEventMetadata.h:220
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: PullRequestSourceReferenceUpdatedEventMetadata.h:49
Aws::CodeCommit::Model::PullRequestSourceReferenceUpdatedEventMetadata::SetMergeBase
void SetMergeBase(const char *value)
Definition: PullRequestSourceReferenceUpdatedEventMetadata.h:208