AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateWebhookRequest.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/CodeBuildRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/codebuild/model/WebhookBuildType.h>
12#include <aws/codebuild/model/ScopeConfiguration.h>
13#include <aws/codebuild/model/WebhookFilter.h>
14#include <utility>
15
16namespace Aws
17{
18namespace CodeBuild
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_CODEBUILD_API CreateWebhookRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateWebhook"; }
35
36 AWS_CODEBUILD_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::String& GetProjectName() const { return m_projectName; }
46 inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
47 template<typename ProjectNameT = Aws::String>
48 void SetProjectName(ProjectNameT&& value) { m_projectNameHasBeenSet = true; m_projectName = std::forward<ProjectNameT>(value); }
49 template<typename ProjectNameT = Aws::String>
50 CreateWebhookRequest& WithProjectName(ProjectNameT&& value) { SetProjectName(std::forward<ProjectNameT>(value)); return *this;}
52
54
61 inline const Aws::String& GetBranchFilter() const { return m_branchFilter; }
62 inline bool BranchFilterHasBeenSet() const { return m_branchFilterHasBeenSet; }
63 template<typename BranchFilterT = Aws::String>
64 void SetBranchFilter(BranchFilterT&& value) { m_branchFilterHasBeenSet = true; m_branchFilter = std::forward<BranchFilterT>(value); }
65 template<typename BranchFilterT = Aws::String>
66 CreateWebhookRequest& WithBranchFilter(BranchFilterT&& value) { SetBranchFilter(std::forward<BranchFilterT>(value)); return *this;}
68
70
78 inline const Aws::Vector<Aws::Vector<WebhookFilter>>& GetFilterGroups() const { return m_filterGroups; }
79 inline bool FilterGroupsHasBeenSet() const { return m_filterGroupsHasBeenSet; }
80 template<typename FilterGroupsT = Aws::Vector<Aws::Vector<WebhookFilter>>>
81 void SetFilterGroups(FilterGroupsT&& value) { m_filterGroupsHasBeenSet = true; m_filterGroups = std::forward<FilterGroupsT>(value); }
82 template<typename FilterGroupsT = Aws::Vector<Aws::Vector<WebhookFilter>>>
83 CreateWebhookRequest& WithFilterGroups(FilterGroupsT&& value) { SetFilterGroups(std::forward<FilterGroupsT>(value)); return *this;}
84 template<typename FilterGroupsT = Aws::Vector<WebhookFilter>>
85 CreateWebhookRequest& AddFilterGroups(FilterGroupsT&& value) { m_filterGroupsHasBeenSet = true; m_filterGroups.emplace_back(std::forward<FilterGroupsT>(value)); return *this; }
87
89
98 inline WebhookBuildType GetBuildType() const { return m_buildType; }
99 inline bool BuildTypeHasBeenSet() const { return m_buildTypeHasBeenSet; }
100 inline void SetBuildType(WebhookBuildType value) { m_buildTypeHasBeenSet = true; m_buildType = value; }
101 inline CreateWebhookRequest& WithBuildType(WebhookBuildType value) { SetBuildType(value); return *this;}
103
105
112 inline bool GetManualCreation() const { return m_manualCreation; }
113 inline bool ManualCreationHasBeenSet() const { return m_manualCreationHasBeenSet; }
114 inline void SetManualCreation(bool value) { m_manualCreationHasBeenSet = true; m_manualCreation = value; }
115 inline CreateWebhookRequest& WithManualCreation(bool value) { SetManualCreation(value); return *this;}
117
119
124 inline const ScopeConfiguration& GetScopeConfiguration() const { return m_scopeConfiguration; }
125 inline bool ScopeConfigurationHasBeenSet() const { return m_scopeConfigurationHasBeenSet; }
126 template<typename ScopeConfigurationT = ScopeConfiguration>
127 void SetScopeConfiguration(ScopeConfigurationT&& value) { m_scopeConfigurationHasBeenSet = true; m_scopeConfiguration = std::forward<ScopeConfigurationT>(value); }
128 template<typename ScopeConfigurationT = ScopeConfiguration>
129 CreateWebhookRequest& WithScopeConfiguration(ScopeConfigurationT&& value) { SetScopeConfiguration(std::forward<ScopeConfigurationT>(value)); return *this;}
131 private:
132
133 Aws::String m_projectName;
134 bool m_projectNameHasBeenSet = false;
135
136 Aws::String m_branchFilter;
137 bool m_branchFilterHasBeenSet = false;
138
140 bool m_filterGroupsHasBeenSet = false;
141
143 bool m_buildTypeHasBeenSet = false;
144
145 bool m_manualCreation{false};
146 bool m_manualCreationHasBeenSet = false;
147
148 ScopeConfiguration m_scopeConfiguration;
149 bool m_scopeConfigurationHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace CodeBuild
154} // namespace Aws
void SetScopeConfiguration(ScopeConfigurationT &&value)
CreateWebhookRequest & WithManualCreation(bool value)
CreateWebhookRequest & WithBuildType(WebhookBuildType value)
CreateWebhookRequest & WithProjectName(ProjectNameT &&value)
CreateWebhookRequest & WithBranchFilter(BranchFilterT &&value)
AWS_CODEBUILD_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
const ScopeConfiguration & GetScopeConfiguration() const
const Aws::Vector< Aws::Vector< WebhookFilter > > & GetFilterGroups() const
AWS_CODEBUILD_API CreateWebhookRequest()=default
AWS_CODEBUILD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateWebhookRequest & AddFilterGroups(FilterGroupsT &&value)
CreateWebhookRequest & WithScopeConfiguration(ScopeConfigurationT &&value)
CreateWebhookRequest & WithFilterGroups(FilterGroupsT &&value)
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