aws_sdk_codecommit/client/create_pull_request.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`CreatePullRequest`](crate::operation::create_pull_request::builders::CreatePullRequestFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`title(impl Into<String>)`](crate::operation::create_pull_request::builders::CreatePullRequestFluentBuilder::title) / [`set_title(Option<String>)`](crate::operation::create_pull_request::builders::CreatePullRequestFluentBuilder::set_title):<br>required: **true**<br><p>The title of the pull request. This title is used to identify the pull request to other users in the repository.</p><br>
7 /// - [`description(impl Into<String>)`](crate::operation::create_pull_request::builders::CreatePullRequestFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_pull_request::builders::CreatePullRequestFluentBuilder::set_description):<br>required: **false**<br><p>A description of the pull request.</p><br>
8 /// - [`targets(Target)`](crate::operation::create_pull_request::builders::CreatePullRequestFluentBuilder::targets) / [`set_targets(Option<Vec::<Target>>)`](crate::operation::create_pull_request::builders::CreatePullRequestFluentBuilder::set_targets):<br>required: **true**<br><p>The targets for the pull request, including the source of the code to be reviewed (the source branch) and the destination where the creator of the pull request intends the code to be merged after the pull request is closed (the destination branch).</p><br>
9 /// - [`client_request_token(impl Into<String>)`](crate::operation::create_pull_request::builders::CreatePullRequestFluentBuilder::client_request_token) / [`set_client_request_token(Option<String>)`](crate::operation::create_pull_request::builders::CreatePullRequestFluentBuilder::set_client_request_token):<br>required: **false**<br><p>A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request returns information about the initial request that used that token.</p><note> <p>The Amazon Web ServicesSDKs prepopulate client request tokens. If you are using an Amazon Web ServicesSDK, an idempotency token is created for you.</p> </note><br>
10 /// - On success, responds with [`CreatePullRequestOutput`](crate::operation::create_pull_request::CreatePullRequestOutput) with field(s):
11 /// - [`pull_request(Option<PullRequest>)`](crate::operation::create_pull_request::CreatePullRequestOutput::pull_request): <p>Information about the newly created pull request.</p>
12 /// - On failure, responds with [`SdkError<CreatePullRequestError>`](crate::operation::create_pull_request::CreatePullRequestError)
13 pub fn create_pull_request(&self) -> crate::operation::create_pull_request::builders::CreatePullRequestFluentBuilder {
14 crate::operation::create_pull_request::builders::CreatePullRequestFluentBuilder::new(self.handle.clone())
15 }
16}