AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

CreatePullRequestInput

import "github.com/aws/aws-sdk-go/service/codecommit"

type CreatePullRequestInput struct { ClientRequestToken *string `locationName:"clientRequestToken" type:"string" idempotencyToken:"true"` Description *string `locationName:"description" type:"string"` Targets []*Target `locationName:"targets" type:"list" required:"true"` Title *string `locationName:"title" type:"string" required:"true"` }

ClientRequestToken

Type: *string

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 will return information about the initial request that used that token.

The AWS SDKs prepopulate client request tokens. If using an AWS SDK, you do not have to generate an idempotency token, as this will be done for you.

Description

Type: *string

A description of the pull request.

Targets

Returns information about a target for a pull request.

Title

Type: *string

The title of the pull request. This title will be used to identify the pull request to other users in the repository.

Title is a required field

Method

GoString

func (s CreatePullRequestInput) GoString() string

GoString returns the string representation

SetClientRequestToken

func (s *CreatePullRequestInput) SetClientRequestToken(v string) *CreatePullRequestInput

SetClientRequestToken sets the ClientRequestToken field's value.

SetDescription

func (s *CreatePullRequestInput) SetDescription(v string) *CreatePullRequestInput

SetDescription sets the Description field's value.

SetTargets

func (s *CreatePullRequestInput) SetTargets(v []*Target) *CreatePullRequestInput

SetTargets sets the Targets field's value.

SetTitle

func (s *CreatePullRequestInput) SetTitle(v string) *CreatePullRequestInput

SetTitle sets the Title field's value.

String

func (s CreatePullRequestInput) String() string

String returns the string representation

Validate

func (s *CreatePullRequestInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: