AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateWebhookRequest.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/WebhookFilter.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CodeBuild
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CODEBUILD_API UpdateWebhookRequest() = default;
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 "UpdateWebhook"; }
34
35 AWS_CODEBUILD_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetProjectName() const { return m_projectName; }
45 inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
46 template<typename ProjectNameT = Aws::String>
47 void SetProjectName(ProjectNameT&& value) { m_projectNameHasBeenSet = true; m_projectName = std::forward<ProjectNameT>(value); }
48 template<typename ProjectNameT = Aws::String>
49 UpdateWebhookRequest& WithProjectName(ProjectNameT&& value) { SetProjectName(std::forward<ProjectNameT>(value)); return *this;}
51
53
60 inline const Aws::String& GetBranchFilter() const { return m_branchFilter; }
61 inline bool BranchFilterHasBeenSet() const { return m_branchFilterHasBeenSet; }
62 template<typename BranchFilterT = Aws::String>
63 void SetBranchFilter(BranchFilterT&& value) { m_branchFilterHasBeenSet = true; m_branchFilter = std::forward<BranchFilterT>(value); }
64 template<typename BranchFilterT = Aws::String>
65 UpdateWebhookRequest& WithBranchFilter(BranchFilterT&& value) { SetBranchFilter(std::forward<BranchFilterT>(value)); return *this;}
67
69
74 inline bool GetRotateSecret() const { return m_rotateSecret; }
75 inline bool RotateSecretHasBeenSet() const { return m_rotateSecretHasBeenSet; }
76 inline void SetRotateSecret(bool value) { m_rotateSecretHasBeenSet = true; m_rotateSecret = value; }
77 inline UpdateWebhookRequest& WithRotateSecret(bool value) { SetRotateSecret(value); return *this;}
79
81
86 inline const Aws::Vector<Aws::Vector<WebhookFilter>>& GetFilterGroups() const { return m_filterGroups; }
87 inline bool FilterGroupsHasBeenSet() const { return m_filterGroupsHasBeenSet; }
88 template<typename FilterGroupsT = Aws::Vector<Aws::Vector<WebhookFilter>>>
89 void SetFilterGroups(FilterGroupsT&& value) { m_filterGroupsHasBeenSet = true; m_filterGroups = std::forward<FilterGroupsT>(value); }
90 template<typename FilterGroupsT = Aws::Vector<Aws::Vector<WebhookFilter>>>
91 UpdateWebhookRequest& WithFilterGroups(FilterGroupsT&& value) { SetFilterGroups(std::forward<FilterGroupsT>(value)); return *this;}
92 template<typename FilterGroupsT = Aws::Vector<WebhookFilter>>
93 UpdateWebhookRequest& AddFilterGroups(FilterGroupsT&& value) { m_filterGroupsHasBeenSet = true; m_filterGroups.emplace_back(std::forward<FilterGroupsT>(value)); return *this; }
95
97
106 inline WebhookBuildType GetBuildType() const { return m_buildType; }
107 inline bool BuildTypeHasBeenSet() const { return m_buildTypeHasBeenSet; }
108 inline void SetBuildType(WebhookBuildType value) { m_buildTypeHasBeenSet = true; m_buildType = value; }
109 inline UpdateWebhookRequest& WithBuildType(WebhookBuildType value) { SetBuildType(value); return *this;}
111 private:
112
113 Aws::String m_projectName;
114 bool m_projectNameHasBeenSet = false;
115
116 Aws::String m_branchFilter;
117 bool m_branchFilterHasBeenSet = false;
118
119 bool m_rotateSecret{false};
120 bool m_rotateSecretHasBeenSet = false;
121
123 bool m_filterGroupsHasBeenSet = false;
124
126 bool m_buildTypeHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace CodeBuild
131} // namespace Aws
AWS_CODEBUILD_API UpdateWebhookRequest()=default
const Aws::Vector< Aws::Vector< WebhookFilter > > & GetFilterGroups() const
UpdateWebhookRequest & WithBranchFilter(BranchFilterT &&value)
UpdateWebhookRequest & WithRotateSecret(bool value)
UpdateWebhookRequest & WithFilterGroups(FilterGroupsT &&value)
UpdateWebhookRequest & AddFilterGroups(FilterGroupsT &&value)
AWS_CODEBUILD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateWebhookRequest & WithBuildType(WebhookBuildType value)
UpdateWebhookRequest & WithProjectName(ProjectNameT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CODEBUILD_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