AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
CreatePullRequestRequest.h
1
6#pragma once
7#include <aws/codecommit/CodeCommitRequest.h>
8#include <aws/codecommit/CodeCommit_EXPORTS.h>
9#include <aws/codecommit/model/Target.h>
10#include <aws/core/utils/UUID.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace CodeCommit {
18namespace Model {
19
23 public:
24 AWS_CODECOMMIT_API CreatePullRequestRequest() = default;
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 "CreatePullRequest"; }
31
32 AWS_CODECOMMIT_API Aws::String SerializePayload() const override;
33
35
37
41 inline const Aws::String& GetTitle() const { return m_title; }
42 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
43 template <typename TitleT = Aws::String>
44 void SetTitle(TitleT&& value) {
45 m_titleHasBeenSet = true;
46 m_title = std::forward<TitleT>(value);
47 }
48 template <typename TitleT = Aws::String>
50 SetTitle(std::forward<TitleT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
80 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
81 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
82 template <typename TargetsT = Aws::Vector<Target>>
83 void SetTargets(TargetsT&& value) {
84 m_targetsHasBeenSet = true;
85 m_targets = std::forward<TargetsT>(value);
86 }
87 template <typename TargetsT = Aws::Vector<Target>>
89 SetTargets(std::forward<TargetsT>(value));
90 return *this;
91 }
92 template <typename TargetsT = Target>
94 m_targetsHasBeenSet = true;
95 m_targets.emplace_back(std::forward<TargetsT>(value));
96 return *this;
97 }
99
101
110 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
111 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
112 template <typename ClientRequestTokenT = Aws::String>
113 void SetClientRequestToken(ClientRequestTokenT&& value) {
114 m_clientRequestTokenHasBeenSet = true;
115 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
116 }
117 template <typename ClientRequestTokenT = Aws::String>
118 CreatePullRequestRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
119 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
120 return *this;
121 }
123 private:
124 Aws::String m_title;
125
126 Aws::String m_description;
127
128 Aws::Vector<Target> m_targets;
129
130 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
131 bool m_titleHasBeenSet = false;
132 bool m_descriptionHasBeenSet = false;
133 bool m_targetsHasBeenSet = false;
134 bool m_clientRequestTokenHasBeenSet = true;
135};
136
137} // namespace Model
138} // namespace CodeCommit
139} // namespace Aws
AWS_CODECOMMIT_API CreatePullRequestRequest()=default
CreatePullRequestRequest & WithDescription(DescriptionT &&value)
CreatePullRequestRequest & WithClientRequestToken(ClientRequestTokenT &&value)
CreatePullRequestRequest & AddTargets(TargetsT &&value)
virtual const char * GetServiceRequestName() const override
CreatePullRequestRequest & WithTitle(TitleT &&value)
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreatePullRequestRequest & WithTargets(TargetsT &&value)
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
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