AWS SDK for C++  1.9.131
AWS SDK for C++
UpdatePullRequestTitleRequest.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 "UpdatePullRequestTitle"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline const Aws::String& GetPullRequestId() const{ return m_pullRequestId; }
42 
47  inline bool PullRequestIdHasBeenSet() const { return m_pullRequestIdHasBeenSet; }
48 
53  inline void SetPullRequestId(const Aws::String& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = value; }
54 
59  inline void SetPullRequestId(Aws::String&& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = std::move(value); }
60 
65  inline void SetPullRequestId(const char* value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId.assign(value); }
66 
71  inline UpdatePullRequestTitleRequest& WithPullRequestId(const Aws::String& value) { SetPullRequestId(value); return *this;}
72 
77  inline UpdatePullRequestTitleRequest& WithPullRequestId(Aws::String&& value) { SetPullRequestId(std::move(value)); return *this;}
78 
83  inline UpdatePullRequestTitleRequest& WithPullRequestId(const char* value) { SetPullRequestId(value); return *this;}
84 
85 
89  inline const Aws::String& GetTitle() const{ return m_title; }
90 
94  inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
95 
99  inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
100 
104  inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
105 
109  inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
110 
114  inline UpdatePullRequestTitleRequest& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
115 
119  inline UpdatePullRequestTitleRequest& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
120 
124  inline UpdatePullRequestTitleRequest& WithTitle(const char* value) { SetTitle(value); return *this;}
125 
126  private:
127 
128  Aws::String m_pullRequestId;
129  bool m_pullRequestIdHasBeenSet;
130 
131  Aws::String m_title;
132  bool m_titleHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace CodeCommit
137 } // namespace Aws
CodeCommit_EXPORTS.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CodeCommit::Model::UpdatePullRequestTitleRequest::TitleHasBeenSet
bool TitleHasBeenSet() const
Definition: UpdatePullRequestTitleRequest.h:94
Aws::CodeCommit::CodeCommitRequest
Definition: CodeCommitRequest.h:17
Aws::CodeCommit::Model::UpdatePullRequestTitleRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CodeCommitRequest.h
Aws::CodeCommit::Model::UpdatePullRequestTitleRequest::GetTitle
const Aws::String & GetTitle() const
Definition: UpdatePullRequestTitleRequest.h:89
Aws::CodeCommit::Model::UpdatePullRequestTitleRequest::GetPullRequestId
const Aws::String & GetPullRequestId() const
Definition: UpdatePullRequestTitleRequest.h:41
Aws::CodeCommit::Model::UpdatePullRequestTitleRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeCommit::Model::UpdatePullRequestTitleRequest::SetTitle
void SetTitle(const char *value)
Definition: UpdatePullRequestTitleRequest.h:109
Aws::CodeCommit::Model::UpdatePullRequestTitleRequest::PullRequestIdHasBeenSet
bool PullRequestIdHasBeenSet() const
Definition: UpdatePullRequestTitleRequest.h:47
Aws::CodeCommit::Model::UpdatePullRequestTitleRequest::SetPullRequestId
void SetPullRequestId(const Aws::String &value)
Definition: UpdatePullRequestTitleRequest.h:53
Aws::CodeCommit::Model::UpdatePullRequestTitleRequest::UpdatePullRequestTitleRequest
UpdatePullRequestTitleRequest()
Aws::CodeCommit::Model::UpdatePullRequestTitleRequest::SetPullRequestId
void SetPullRequestId(const char *value)
Definition: UpdatePullRequestTitleRequest.h:65
Aws::CodeCommit::Model::UpdatePullRequestTitleRequest::WithPullRequestId
UpdatePullRequestTitleRequest & WithPullRequestId(const Aws::String &value)
Definition: UpdatePullRequestTitleRequest.h:71
Aws::CodeCommit::Model::UpdatePullRequestTitleRequest
Definition: UpdatePullRequestTitleRequest.h:22
Aws::CodeCommit::Model::UpdatePullRequestTitleRequest::SetTitle
void SetTitle(const Aws::String &value)
Definition: UpdatePullRequestTitleRequest.h:99
Aws::CodeCommit::Model::UpdatePullRequestTitleRequest::WithTitle
UpdatePullRequestTitleRequest & WithTitle(Aws::String &&value)
Definition: UpdatePullRequestTitleRequest.h:119
AWSString.h
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::UpdatePullRequestTitleRequest::SetTitle
void SetTitle(Aws::String &&value)
Definition: UpdatePullRequestTitleRequest.h:104
Aws::CodeCommit::Model::UpdatePullRequestTitleRequest::WithPullRequestId
UpdatePullRequestTitleRequest & WithPullRequestId(const char *value)
Definition: UpdatePullRequestTitleRequest.h:83
Aws::CodeCommit::Model::UpdatePullRequestTitleRequest::WithPullRequestId
UpdatePullRequestTitleRequest & WithPullRequestId(Aws::String &&value)
Definition: UpdatePullRequestTitleRequest.h:77
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::UpdatePullRequestTitleRequest::WithTitle
UpdatePullRequestTitleRequest & WithTitle(const Aws::String &value)
Definition: UpdatePullRequestTitleRequest.h:114
Aws::CodeCommit::Model::UpdatePullRequestTitleRequest::WithTitle
UpdatePullRequestTitleRequest & WithTitle(const char *value)
Definition: UpdatePullRequestTitleRequest.h:124
Aws::CodeCommit::Model::UpdatePullRequestTitleRequest::SetPullRequestId
void SetPullRequestId(Aws::String &&value)
Definition: UpdatePullRequestTitleRequest.h:59
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::UpdatePullRequestTitleRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdatePullRequestTitleRequest.h:30