AWS SDK for C++  1.9.15
AWS SDK for C++
CreatePullRequestRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 #include <aws/core/utils/UUID.h>
14 
15 namespace Aws
16 {
17 namespace CodeCommit
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreatePullRequest"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
44  inline const Aws::String& GetTitle() const{ return m_title; }
45 
50  inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
51 
56  inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
57 
62  inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
63 
68  inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
69 
74  inline CreatePullRequestRequest& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
75 
80  inline CreatePullRequestRequest& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
81 
86  inline CreatePullRequestRequest& WithTitle(const char* value) { SetTitle(value); return *this;}
87 
88 
92  inline const Aws::String& GetDescription() const{ return m_description; }
93 
97  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
98 
102  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
103 
107  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
108 
112  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
113 
117  inline CreatePullRequestRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
118 
122  inline CreatePullRequestRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
123 
127  inline CreatePullRequestRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
128 
129 
136  inline const Aws::Vector<Target>& GetTargets() const{ return m_targets; }
137 
144  inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
145 
152  inline void SetTargets(const Aws::Vector<Target>& value) { m_targetsHasBeenSet = true; m_targets = value; }
153 
160  inline void SetTargets(Aws::Vector<Target>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
161 
168  inline CreatePullRequestRequest& WithTargets(const Aws::Vector<Target>& value) { SetTargets(value); return *this;}
169 
176  inline CreatePullRequestRequest& WithTargets(Aws::Vector<Target>&& value) { SetTargets(std::move(value)); return *this;}
177 
184  inline CreatePullRequestRequest& AddTargets(const Target& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
185 
192  inline CreatePullRequestRequest& AddTargets(Target&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
193 
194 
203  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
204 
213  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
214 
223  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
224 
233  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
234 
243  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
244 
253  inline CreatePullRequestRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
254 
263  inline CreatePullRequestRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
264 
273  inline CreatePullRequestRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
274 
275  private:
276 
277  Aws::String m_title;
278  bool m_titleHasBeenSet;
279 
280  Aws::String m_description;
281  bool m_descriptionHasBeenSet;
282 
283  Aws::Vector<Target> m_targets;
284  bool m_targetsHasBeenSet;
285 
286  Aws::String m_clientRequestToken;
287  bool m_clientRequestTokenHasBeenSet;
288  };
289 
290 } // namespace Model
291 } // namespace CodeCommit
292 } // namespace Aws
Aws::CodeCommit::Model::CreatePullRequestRequest::AddTargets
CreatePullRequestRequest & AddTargets(const Target &value)
Definition: CreatePullRequestRequest.h:184
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::CreatePullRequestRequest::GetTargets
const Aws::Vector< Target > & GetTargets() const
Definition: CreatePullRequestRequest.h:136
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CodeCommit::Model::CreatePullRequestRequest::SetClientRequestToken
void SetClientRequestToken(const Aws::String &value)
Definition: CreatePullRequestRequest.h:223
Aws::CodeCommit::Model::CreatePullRequestRequest::WithTargets
CreatePullRequestRequest & WithTargets(Aws::Vector< Target > &&value)
Definition: CreatePullRequestRequest.h:176
Aws::CodeCommit::Model::CreatePullRequestRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreatePullRequestRequest.h:92
Aws::CodeCommit::Model::CreatePullRequestRequest::WithClientRequestToken
CreatePullRequestRequest & WithClientRequestToken(Aws::String &&value)
Definition: CreatePullRequestRequest.h:263
Aws::CodeCommit::CodeCommitRequest
Definition: CodeCommitRequest.h:17
Aws::CodeCommit::Model::CreatePullRequestRequest::SetTitle
void SetTitle(const Aws::String &value)
Definition: CreatePullRequestRequest.h:56
Aws::CodeCommit::Model::CreatePullRequestRequest::SetClientRequestToken
void SetClientRequestToken(Aws::String &&value)
Definition: CreatePullRequestRequest.h:233
Aws::CodeCommit::Model::CreatePullRequestRequest::WithTitle
CreatePullRequestRequest & WithTitle(const char *value)
Definition: CreatePullRequestRequest.h:86
Aws::CodeCommit::Model::CreatePullRequestRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CodeCommit::Model::CreatePullRequestRequest::WithTargets
CreatePullRequestRequest & WithTargets(const Aws::Vector< Target > &value)
Definition: CreatePullRequestRequest.h:168
Aws::CodeCommit::Model::CreatePullRequestRequest::SetTitle
void SetTitle(Aws::String &&value)
Definition: CreatePullRequestRequest.h:62
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CodeCommit::Model::Target
Definition: Target.h:33
Aws::CodeCommit::Model::CreatePullRequestRequest::WithDescription
CreatePullRequestRequest & WithDescription(const Aws::String &value)
Definition: CreatePullRequestRequest.h:117
CodeCommitRequest.h
AWSVector.h
Aws::CodeCommit::Model::CreatePullRequestRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreatePullRequestRequest.h:33
Aws::CodeCommit::Model::CreatePullRequestRequest::TargetsHasBeenSet
bool TargetsHasBeenSet() const
Definition: CreatePullRequestRequest.h:144
Aws::CodeCommit::Model::CreatePullRequestRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeCommit::Model::CreatePullRequestRequest::AddTargets
CreatePullRequestRequest & AddTargets(Target &&value)
Definition: CreatePullRequestRequest.h:192
Aws::CodeCommit::Model::CreatePullRequestRequest::SetClientRequestToken
void SetClientRequestToken(const char *value)
Definition: CreatePullRequestRequest.h:243
Aws::CodeCommit::Model::CreatePullRequestRequest::WithClientRequestToken
CreatePullRequestRequest & WithClientRequestToken(const char *value)
Definition: CreatePullRequestRequest.h:273
Aws::CodeCommit::Model::CreatePullRequestRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreatePullRequestRequest.h:107
Aws::CodeCommit::Model::CreatePullRequestRequest::GetTitle
const Aws::String & GetTitle() const
Definition: CreatePullRequestRequest.h:44
Target.h
Aws::CodeCommit::Model::CreatePullRequestRequest::ClientRequestTokenHasBeenSet
bool ClientRequestTokenHasBeenSet() const
Definition: CreatePullRequestRequest.h:213
Aws::CodeCommit::Model::CreatePullRequestRequest::SetTargets
void SetTargets(Aws::Vector< Target > &&value)
Definition: CreatePullRequestRequest.h:160
Aws::CodeCommit::Model::CreatePullRequestRequest::SetTargets
void SetTargets(const Aws::Vector< Target > &value)
Definition: CreatePullRequestRequest.h:152
AWSString.h
Aws::CodeCommit::Model::CreatePullRequestRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreatePullRequestRequest.h:102
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::CreatePullRequestRequest
Definition: CreatePullRequestRequest.h:25
Aws::CodeCommit::Model::CreatePullRequestRequest::WithTitle
CreatePullRequestRequest & WithTitle(Aws::String &&value)
Definition: CreatePullRequestRequest.h:80
Aws::CodeCommit::Model::CreatePullRequestRequest::TitleHasBeenSet
bool TitleHasBeenSet() const
Definition: CreatePullRequestRequest.h:50
Aws::CodeCommit::Model::CreatePullRequestRequest::SetDescription
void SetDescription(const char *value)
Definition: CreatePullRequestRequest.h:112
Aws::CodeCommit::Model::CreatePullRequestRequest::WithClientRequestToken
CreatePullRequestRequest & WithClientRequestToken(const Aws::String &value)
Definition: CreatePullRequestRequest.h:253
Aws::CodeCommit::Model::CreatePullRequestRequest::SetTitle
void SetTitle(const char *value)
Definition: CreatePullRequestRequest.h:68
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::CreatePullRequestRequest::WithTitle
CreatePullRequestRequest & WithTitle(const Aws::String &value)
Definition: CreatePullRequestRequest.h:74
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::CreatePullRequestRequest::WithDescription
CreatePullRequestRequest & WithDescription(Aws::String &&value)
Definition: CreatePullRequestRequest.h:122
Aws::CodeCommit::Model::CreatePullRequestRequest::WithDescription
CreatePullRequestRequest & WithDescription(const char *value)
Definition: CreatePullRequestRequest.h:127
UUID.h
Aws::CodeCommit::Model::CreatePullRequestRequest::GetClientRequestToken
const Aws::String & GetClientRequestToken() const
Definition: CreatePullRequestRequest.h:203
Aws::CodeCommit::Model::CreatePullRequestRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreatePullRequestRequest.h:97
Aws::CodeCommit::Model::CreatePullRequestRequest::CreatePullRequestRequest
CreatePullRequestRequest()