AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename RepositoryNameT = Aws::String>
50 void SetRepositoryName(RepositoryNameT&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::forward<RepositoryNameT>(value); }
51 template<typename RepositoryNameT = Aws::String>
52 PullRequestTarget& WithRepositoryName(RepositoryNameT&& value) { SetRepositoryName(std::forward<RepositoryNameT>(value)); return *this;}
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) { m_sourceReferenceHasBeenSet = true; m_sourceReference = std::forward<SourceReferenceT>(value); }
64 template<typename SourceReferenceT = Aws::String>
65 PullRequestTarget& WithSourceReference(SourceReferenceT&& value) { SetSourceReference(std::forward<SourceReferenceT>(value)); return *this;}
67
69
73 inline const Aws::String& GetDestinationReference() const { return m_destinationReference; }
74 inline bool DestinationReferenceHasBeenSet() const { return m_destinationReferenceHasBeenSet; }
75 template<typename DestinationReferenceT = Aws::String>
76 void SetDestinationReference(DestinationReferenceT&& value) { m_destinationReferenceHasBeenSet = true; m_destinationReference = std::forward<DestinationReferenceT>(value); }
77 template<typename DestinationReferenceT = Aws::String>
78 PullRequestTarget& WithDestinationReference(DestinationReferenceT&& value) { SetDestinationReference(std::forward<DestinationReferenceT>(value)); return *this;}
80
82
86 inline const Aws::String& GetDestinationCommit() const { return m_destinationCommit; }
87 inline bool DestinationCommitHasBeenSet() const { return m_destinationCommitHasBeenSet; }
88 template<typename DestinationCommitT = Aws::String>
89 void SetDestinationCommit(DestinationCommitT&& value) { m_destinationCommitHasBeenSet = true; m_destinationCommit = std::forward<DestinationCommitT>(value); }
90 template<typename DestinationCommitT = Aws::String>
91 PullRequestTarget& WithDestinationCommit(DestinationCommitT&& value) { SetDestinationCommit(std::forward<DestinationCommitT>(value)); return *this;}
93
95
100 inline const Aws::String& GetSourceCommit() const { return m_sourceCommit; }
101 inline bool SourceCommitHasBeenSet() const { return m_sourceCommitHasBeenSet; }
102 template<typename SourceCommitT = Aws::String>
103 void SetSourceCommit(SourceCommitT&& value) { m_sourceCommitHasBeenSet = true; m_sourceCommit = std::forward<SourceCommitT>(value); }
104 template<typename SourceCommitT = Aws::String>
105 PullRequestTarget& WithSourceCommit(SourceCommitT&& value) { SetSourceCommit(std::forward<SourceCommitT>(value)); return *this;}
107
109
113 inline const Aws::String& GetMergeBase() const { return m_mergeBase; }
114 inline bool MergeBaseHasBeenSet() const { return m_mergeBaseHasBeenSet; }
115 template<typename MergeBaseT = Aws::String>
116 void SetMergeBase(MergeBaseT&& value) { m_mergeBaseHasBeenSet = true; m_mergeBase = std::forward<MergeBaseT>(value); }
117 template<typename MergeBaseT = Aws::String>
118 PullRequestTarget& WithMergeBase(MergeBaseT&& value) { SetMergeBase(std::forward<MergeBaseT>(value)); return *this;}
120
122
126 inline const MergeMetadata& GetMergeMetadata() const { return m_mergeMetadata; }
127 inline bool MergeMetadataHasBeenSet() const { return m_mergeMetadataHasBeenSet; }
128 template<typename MergeMetadataT = MergeMetadata>
129 void SetMergeMetadata(MergeMetadataT&& value) { m_mergeMetadataHasBeenSet = true; m_mergeMetadata = std::forward<MergeMetadataT>(value); }
130 template<typename MergeMetadataT = MergeMetadata>
131 PullRequestTarget& WithMergeMetadata(MergeMetadataT&& value) { SetMergeMetadata(std::forward<MergeMetadataT>(value)); return *this;}
133 private:
134
135 Aws::String m_repositoryName;
136 bool m_repositoryNameHasBeenSet = false;
137
138 Aws::String m_sourceReference;
139 bool m_sourceReferenceHasBeenSet = false;
140
141 Aws::String m_destinationReference;
142 bool m_destinationReferenceHasBeenSet = false;
143
144 Aws::String m_destinationCommit;
145 bool m_destinationCommitHasBeenSet = false;
146
147 Aws::String m_sourceCommit;
148 bool m_sourceCommitHasBeenSet = false;
149
150 Aws::String m_mergeBase;
151 bool m_mergeBaseHasBeenSet = false;
152
153 MergeMetadata m_mergeMetadata;
154 bool m_mergeMetadataHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace CodeCommit
159} // 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