AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
48 inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
49 inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
50 inline CreateWebhookRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
51 inline CreateWebhookRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
52 inline CreateWebhookRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
54
56
63 inline const Aws::String& GetBranchFilter() const{ return m_branchFilter; }
64 inline bool BranchFilterHasBeenSet() const { return m_branchFilterHasBeenSet; }
65 inline void SetBranchFilter(const Aws::String& value) { m_branchFilterHasBeenSet = true; m_branchFilter = value; }
66 inline void SetBranchFilter(Aws::String&& value) { m_branchFilterHasBeenSet = true; m_branchFilter = std::move(value); }
67 inline void SetBranchFilter(const char* value) { m_branchFilterHasBeenSet = true; m_branchFilter.assign(value); }
68 inline CreateWebhookRequest& WithBranchFilter(const Aws::String& value) { SetBranchFilter(value); return *this;}
69 inline CreateWebhookRequest& WithBranchFilter(Aws::String&& value) { SetBranchFilter(std::move(value)); return *this;}
70 inline CreateWebhookRequest& WithBranchFilter(const char* value) { SetBranchFilter(value); return *this;}
72
74
82 inline const Aws::Vector<Aws::Vector<WebhookFilter>>& GetFilterGroups() const{ return m_filterGroups; }
83 inline bool FilterGroupsHasBeenSet() const { return m_filterGroupsHasBeenSet; }
84 inline void SetFilterGroups(const Aws::Vector<Aws::Vector<WebhookFilter>>& value) { m_filterGroupsHasBeenSet = true; m_filterGroups = value; }
85 inline void SetFilterGroups(Aws::Vector<Aws::Vector<WebhookFilter>>&& value) { m_filterGroupsHasBeenSet = true; m_filterGroups = std::move(value); }
88 inline CreateWebhookRequest& AddFilterGroups(const Aws::Vector<WebhookFilter>& value) { m_filterGroupsHasBeenSet = true; m_filterGroups.push_back(value); return *this; }
89 inline CreateWebhookRequest& AddFilterGroups(Aws::Vector<WebhookFilter>&& value) { m_filterGroupsHasBeenSet = true; m_filterGroups.push_back(std::move(value)); return *this; }
91
93
96 inline const WebhookBuildType& GetBuildType() const{ return m_buildType; }
97 inline bool BuildTypeHasBeenSet() const { return m_buildTypeHasBeenSet; }
98 inline void SetBuildType(const WebhookBuildType& value) { m_buildTypeHasBeenSet = true; m_buildType = value; }
99 inline void SetBuildType(WebhookBuildType&& value) { m_buildTypeHasBeenSet = true; m_buildType = std::move(value); }
100 inline CreateWebhookRequest& WithBuildType(const WebhookBuildType& value) { SetBuildType(value); return *this;}
101 inline CreateWebhookRequest& WithBuildType(WebhookBuildType&& value) { SetBuildType(std::move(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 inline void SetScopeConfiguration(const ScopeConfiguration& value) { m_scopeConfigurationHasBeenSet = true; m_scopeConfiguration = value; }
127 inline void SetScopeConfiguration(ScopeConfiguration&& value) { m_scopeConfigurationHasBeenSet = true; m_scopeConfiguration = std::move(value); }
129 inline CreateWebhookRequest& WithScopeConfiguration(ScopeConfiguration&& value) { SetScopeConfiguration(std::move(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
142 WebhookBuildType m_buildType;
143 bool m_buildTypeHasBeenSet = false;
144
145 bool m_manualCreation;
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
CreateWebhookRequest & WithScopeConfiguration(const ScopeConfiguration &value)
void SetBuildType(const WebhookBuildType &value)
CreateWebhookRequest & AddFilterGroups(Aws::Vector< WebhookFilter > &&value)
CreateWebhookRequest & WithBuildType(const WebhookBuildType &value)
CreateWebhookRequest & WithProjectName(const char *value)
void SetScopeConfiguration(const ScopeConfiguration &value)
void SetProjectName(const Aws::String &value)
CreateWebhookRequest & WithBranchFilter(const Aws::String &value)
CreateWebhookRequest & WithBranchFilter(const char *value)
CreateWebhookRequest & WithFilterGroups(const Aws::Vector< Aws::Vector< WebhookFilter > > &value)
void SetFilterGroups(const Aws::Vector< Aws::Vector< WebhookFilter > > &value)
CreateWebhookRequest & WithProjectName(Aws::String &&value)
CreateWebhookRequest & WithProjectName(const Aws::String &value)
CreateWebhookRequest & WithManualCreation(bool value)
CreateWebhookRequest & AddFilterGroups(const Aws::Vector< WebhookFilter > &value)
CreateWebhookRequest & WithScopeConfiguration(ScopeConfiguration &&value)
CreateWebhookRequest & WithFilterGroups(Aws::Vector< Aws::Vector< WebhookFilter > > &&value)
const WebhookBuildType & GetBuildType() const
AWS_CODEBUILD_API Aws::String SerializePayload() const override
void SetBranchFilter(const Aws::String &value)
CreateWebhookRequest & WithBuildType(WebhookBuildType &&value)
virtual const char * GetServiceRequestName() const override
void SetFilterGroups(Aws::Vector< Aws::Vector< WebhookFilter > > &&value)
void SetScopeConfiguration(ScopeConfiguration &&value)
const ScopeConfiguration & GetScopeConfiguration() const
CreateWebhookRequest & WithBranchFilter(Aws::String &&value)
const Aws::Vector< Aws::Vector< WebhookFilter > > & GetFilterGroups() const
AWS_CODEBUILD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() 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