AWS SDK for C++  1.9.129
AWS SDK for C++
MergeBranchesByFastForwardRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace CodeCommit
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "MergeBranchesByFastForward"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
41 
45  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
46 
50  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
51 
55  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
56 
60  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
61 
65  inline MergeBranchesByFastForwardRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
66 
70  inline MergeBranchesByFastForwardRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
71 
75  inline MergeBranchesByFastForwardRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
76 
77 
82  inline const Aws::String& GetSourceCommitSpecifier() const{ return m_sourceCommitSpecifier; }
83 
88  inline bool SourceCommitSpecifierHasBeenSet() const { return m_sourceCommitSpecifierHasBeenSet; }
89 
94  inline void SetSourceCommitSpecifier(const Aws::String& value) { m_sourceCommitSpecifierHasBeenSet = true; m_sourceCommitSpecifier = value; }
95 
100  inline void SetSourceCommitSpecifier(Aws::String&& value) { m_sourceCommitSpecifierHasBeenSet = true; m_sourceCommitSpecifier = std::move(value); }
101 
106  inline void SetSourceCommitSpecifier(const char* value) { m_sourceCommitSpecifierHasBeenSet = true; m_sourceCommitSpecifier.assign(value); }
107 
112  inline MergeBranchesByFastForwardRequest& WithSourceCommitSpecifier(const Aws::String& value) { SetSourceCommitSpecifier(value); return *this;}
113 
118  inline MergeBranchesByFastForwardRequest& WithSourceCommitSpecifier(Aws::String&& value) { SetSourceCommitSpecifier(std::move(value)); return *this;}
119 
124  inline MergeBranchesByFastForwardRequest& WithSourceCommitSpecifier(const char* value) { SetSourceCommitSpecifier(value); return *this;}
125 
126 
131  inline const Aws::String& GetDestinationCommitSpecifier() const{ return m_destinationCommitSpecifier; }
132 
137  inline bool DestinationCommitSpecifierHasBeenSet() const { return m_destinationCommitSpecifierHasBeenSet; }
138 
143  inline void SetDestinationCommitSpecifier(const Aws::String& value) { m_destinationCommitSpecifierHasBeenSet = true; m_destinationCommitSpecifier = value; }
144 
149  inline void SetDestinationCommitSpecifier(Aws::String&& value) { m_destinationCommitSpecifierHasBeenSet = true; m_destinationCommitSpecifier = std::move(value); }
150 
155  inline void SetDestinationCommitSpecifier(const char* value) { m_destinationCommitSpecifierHasBeenSet = true; m_destinationCommitSpecifier.assign(value); }
156 
161  inline MergeBranchesByFastForwardRequest& WithDestinationCommitSpecifier(const Aws::String& value) { SetDestinationCommitSpecifier(value); return *this;}
162 
167  inline MergeBranchesByFastForwardRequest& WithDestinationCommitSpecifier(Aws::String&& value) { SetDestinationCommitSpecifier(std::move(value)); return *this;}
168 
173  inline MergeBranchesByFastForwardRequest& WithDestinationCommitSpecifier(const char* value) { SetDestinationCommitSpecifier(value); return *this;}
174 
175 
179  inline const Aws::String& GetTargetBranch() const{ return m_targetBranch; }
180 
184  inline bool TargetBranchHasBeenSet() const { return m_targetBranchHasBeenSet; }
185 
189  inline void SetTargetBranch(const Aws::String& value) { m_targetBranchHasBeenSet = true; m_targetBranch = value; }
190 
194  inline void SetTargetBranch(Aws::String&& value) { m_targetBranchHasBeenSet = true; m_targetBranch = std::move(value); }
195 
199  inline void SetTargetBranch(const char* value) { m_targetBranchHasBeenSet = true; m_targetBranch.assign(value); }
200 
204  inline MergeBranchesByFastForwardRequest& WithTargetBranch(const Aws::String& value) { SetTargetBranch(value); return *this;}
205 
209  inline MergeBranchesByFastForwardRequest& WithTargetBranch(Aws::String&& value) { SetTargetBranch(std::move(value)); return *this;}
210 
214  inline MergeBranchesByFastForwardRequest& WithTargetBranch(const char* value) { SetTargetBranch(value); return *this;}
215 
216  private:
217 
218  Aws::String m_repositoryName;
219  bool m_repositoryNameHasBeenSet;
220 
221  Aws::String m_sourceCommitSpecifier;
222  bool m_sourceCommitSpecifierHasBeenSet;
223 
224  Aws::String m_destinationCommitSpecifier;
225  bool m_destinationCommitSpecifierHasBeenSet;
226 
227  Aws::String m_targetBranch;
228  bool m_targetBranchHasBeenSet;
229  };
230 
231 } // namespace Model
232 } // namespace CodeCommit
233 } // namespace Aws
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::GetTargetBranch
const Aws::String & GetTargetBranch() const
Definition: MergeBranchesByFastForwardRequest.h:179
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::SetTargetBranch
void SetTargetBranch(Aws::String &&value)
Definition: MergeBranchesByFastForwardRequest.h:194
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::WithSourceCommitSpecifier
MergeBranchesByFastForwardRequest & WithSourceCommitSpecifier(Aws::String &&value)
Definition: MergeBranchesByFastForwardRequest.h:118
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::SetSourceCommitSpecifier
void SetSourceCommitSpecifier(Aws::String &&value)
Definition: MergeBranchesByFastForwardRequest.h:100
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: MergeBranchesByFastForwardRequest.h:55
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::WithDestinationCommitSpecifier
MergeBranchesByFastForwardRequest & WithDestinationCommitSpecifier(const char *value)
Definition: MergeBranchesByFastForwardRequest.h:173
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: MergeBranchesByFastForwardRequest.h:40
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::WithRepositoryName
MergeBranchesByFastForwardRequest & WithRepositoryName(Aws::String &&value)
Definition: MergeBranchesByFastForwardRequest.h:70
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::TargetBranchHasBeenSet
bool TargetBranchHasBeenSet() const
Definition: MergeBranchesByFastForwardRequest.h:184
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: MergeBranchesByFastForwardRequest.h:50
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::SetSourceCommitSpecifier
void SetSourceCommitSpecifier(const Aws::String &value)
Definition: MergeBranchesByFastForwardRequest.h:94
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::WithTargetBranch
MergeBranchesByFastForwardRequest & WithTargetBranch(Aws::String &&value)
Definition: MergeBranchesByFastForwardRequest.h:209
Aws::CodeCommit::CodeCommitRequest
Definition: CodeCommitRequest.h:17
CodeCommitRequest.h
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::WithRepositoryName
MergeBranchesByFastForwardRequest & WithRepositoryName(const char *value)
Definition: MergeBranchesByFastForwardRequest.h:75
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: MergeBranchesByFastForwardRequest.h:60
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::GetDestinationCommitSpecifier
const Aws::String & GetDestinationCommitSpecifier() const
Definition: MergeBranchesByFastForwardRequest.h:131
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::WithDestinationCommitSpecifier
MergeBranchesByFastForwardRequest & WithDestinationCommitSpecifier(Aws::String &&value)
Definition: MergeBranchesByFastForwardRequest.h:167
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::SetTargetBranch
void SetTargetBranch(const Aws::String &value)
Definition: MergeBranchesByFastForwardRequest.h:189
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::WithRepositoryName
MergeBranchesByFastForwardRequest & WithRepositoryName(const Aws::String &value)
Definition: MergeBranchesByFastForwardRequest.h:65
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: MergeBranchesByFastForwardRequest.h:45
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::SetDestinationCommitSpecifier
void SetDestinationCommitSpecifier(const char *value)
Definition: MergeBranchesByFastForwardRequest.h:155
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::SetDestinationCommitSpecifier
void SetDestinationCommitSpecifier(Aws::String &&value)
Definition: MergeBranchesByFastForwardRequest.h:149
AWSString.h
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::MergeBranchesByFastForwardRequest
MergeBranchesByFastForwardRequest()
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::SetSourceCommitSpecifier
void SetSourceCommitSpecifier(const char *value)
Definition: MergeBranchesByFastForwardRequest.h:106
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::WithTargetBranch
MergeBranchesByFastForwardRequest & WithTargetBranch(const char *value)
Definition: MergeBranchesByFastForwardRequest.h:214
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::DestinationCommitSpecifierHasBeenSet
bool DestinationCommitSpecifierHasBeenSet() const
Definition: MergeBranchesByFastForwardRequest.h:137
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::WithSourceCommitSpecifier
MergeBranchesByFastForwardRequest & WithSourceCommitSpecifier(const char *value)
Definition: MergeBranchesByFastForwardRequest.h:124
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::WithDestinationCommitSpecifier
MergeBranchesByFastForwardRequest & WithDestinationCommitSpecifier(const Aws::String &value)
Definition: MergeBranchesByFastForwardRequest.h:161
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest
Definition: MergeBranchesByFastForwardRequest.h:22
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::SetTargetBranch
void SetTargetBranch(const char *value)
Definition: MergeBranchesByFastForwardRequest.h:199
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::GetSourceCommitSpecifier
const Aws::String & GetSourceCommitSpecifier() const
Definition: MergeBranchesByFastForwardRequest.h:82
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::WithSourceCommitSpecifier
MergeBranchesByFastForwardRequest & WithSourceCommitSpecifier(const Aws::String &value)
Definition: MergeBranchesByFastForwardRequest.h:112
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::SourceCommitSpecifierHasBeenSet
bool SourceCommitSpecifierHasBeenSet() const
Definition: MergeBranchesByFastForwardRequest.h:88
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::WithTargetBranch
MergeBranchesByFastForwardRequest & WithTargetBranch(const Aws::String &value)
Definition: MergeBranchesByFastForwardRequest.h:204
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: MergeBranchesByFastForwardRequest.h:30
Aws::CodeCommit::Model::MergeBranchesByFastForwardRequest::SetDestinationCommitSpecifier
void SetDestinationCommitSpecifier(const Aws::String &value)
Definition: MergeBranchesByFastForwardRequest.h:143