AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreatePullRequestRequest.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/CodeCommitRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/codecommit/model/Target.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace CodeCommit
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CODECOMMIT_API CreatePullRequestRequest();
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_CODECOMMIT_API Aws::String SerializePayload() const override;
36
38
39
41
45 inline const Aws::String& GetTitle() const{ return m_title; }
46 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
47 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
48 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
49 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
50 inline CreatePullRequestRequest& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
51 inline CreatePullRequestRequest& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
52 inline CreatePullRequestRequest& WithTitle(const char* value) { SetTitle(value); return *this;}
54
56
59 inline const Aws::String& GetDescription() const{ return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
62 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
63 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
64 inline CreatePullRequestRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
65 inline CreatePullRequestRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
66 inline CreatePullRequestRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
68
70
76 inline const Aws::Vector<Target>& GetTargets() const{ return m_targets; }
77 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
78 inline void SetTargets(const Aws::Vector<Target>& value) { m_targetsHasBeenSet = true; m_targets = value; }
79 inline void SetTargets(Aws::Vector<Target>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
80 inline CreatePullRequestRequest& WithTargets(const Aws::Vector<Target>& value) { SetTargets(value); return *this;}
81 inline CreatePullRequestRequest& WithTargets(Aws::Vector<Target>&& value) { SetTargets(std::move(value)); return *this;}
82 inline CreatePullRequestRequest& AddTargets(const Target& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
83 inline CreatePullRequestRequest& AddTargets(Target&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
85
87
96 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
97 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
98 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
99 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
100 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
102 inline CreatePullRequestRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
103 inline CreatePullRequestRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
105 private:
106
107 Aws::String m_title;
108 bool m_titleHasBeenSet = false;
109
110 Aws::String m_description;
111 bool m_descriptionHasBeenSet = false;
112
113 Aws::Vector<Target> m_targets;
114 bool m_targetsHasBeenSet = false;
115
116 Aws::String m_clientRequestToken;
117 bool m_clientRequestTokenHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace CodeCommit
122} // namespace Aws
CreatePullRequestRequest & WithDescription(const Aws::String &value)
CreatePullRequestRequest & AddTargets(const Target &value)
CreatePullRequestRequest & WithTitle(Aws::String &&value)
void SetTargets(const Aws::Vector< Target > &value)
CreatePullRequestRequest & WithTitle(const Aws::String &value)
CreatePullRequestRequest & WithClientRequestToken(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreatePullRequestRequest & WithTargets(const Aws::Vector< Target > &value)
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreatePullRequestRequest & WithDescription(const char *value)
CreatePullRequestRequest & WithTargets(Aws::Vector< Target > &&value)
CreatePullRequestRequest & WithTitle(const char *value)
CreatePullRequestRequest & WithClientRequestToken(Aws::String &&value)
CreatePullRequestRequest & WithDescription(Aws::String &&value)
CreatePullRequestRequest & WithClientRequestToken(const char *value)
CreatePullRequestRequest & AddTargets(Target &&value)
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector