AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
47 inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
48 inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
49 inline UpdateWebhookRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
50 inline UpdateWebhookRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
51 inline UpdateWebhookRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
53
55
62 inline const Aws::String& GetBranchFilter() const{ return m_branchFilter; }
63 inline bool BranchFilterHasBeenSet() const { return m_branchFilterHasBeenSet; }
64 inline void SetBranchFilter(const Aws::String& value) { m_branchFilterHasBeenSet = true; m_branchFilter = value; }
65 inline void SetBranchFilter(Aws::String&& value) { m_branchFilterHasBeenSet = true; m_branchFilter = std::move(value); }
66 inline void SetBranchFilter(const char* value) { m_branchFilterHasBeenSet = true; m_branchFilter.assign(value); }
67 inline UpdateWebhookRequest& WithBranchFilter(const Aws::String& value) { SetBranchFilter(value); return *this;}
68 inline UpdateWebhookRequest& WithBranchFilter(Aws::String&& value) { SetBranchFilter(std::move(value)); return *this;}
69 inline UpdateWebhookRequest& WithBranchFilter(const char* value) { SetBranchFilter(value); return *this;}
71
73
78 inline bool GetRotateSecret() const{ return m_rotateSecret; }
79 inline bool RotateSecretHasBeenSet() const { return m_rotateSecretHasBeenSet; }
80 inline void SetRotateSecret(bool value) { m_rotateSecretHasBeenSet = true; m_rotateSecret = value; }
81 inline UpdateWebhookRequest& WithRotateSecret(bool value) { SetRotateSecret(value); return *this;}
83
85
90 inline const Aws::Vector<Aws::Vector<WebhookFilter>>& GetFilterGroups() const{ return m_filterGroups; }
91 inline bool FilterGroupsHasBeenSet() const { return m_filterGroupsHasBeenSet; }
92 inline void SetFilterGroups(const Aws::Vector<Aws::Vector<WebhookFilter>>& value) { m_filterGroupsHasBeenSet = true; m_filterGroups = value; }
93 inline void SetFilterGroups(Aws::Vector<Aws::Vector<WebhookFilter>>&& value) { m_filterGroupsHasBeenSet = true; m_filterGroups = std::move(value); }
96 inline UpdateWebhookRequest& AddFilterGroups(const Aws::Vector<WebhookFilter>& value) { m_filterGroupsHasBeenSet = true; m_filterGroups.push_back(value); return *this; }
97 inline UpdateWebhookRequest& AddFilterGroups(Aws::Vector<WebhookFilter>&& value) { m_filterGroupsHasBeenSet = true; m_filterGroups.push_back(std::move(value)); return *this; }
99
101
104 inline const WebhookBuildType& GetBuildType() const{ return m_buildType; }
105 inline bool BuildTypeHasBeenSet() const { return m_buildTypeHasBeenSet; }
106 inline void SetBuildType(const WebhookBuildType& value) { m_buildTypeHasBeenSet = true; m_buildType = value; }
107 inline void SetBuildType(WebhookBuildType&& value) { m_buildTypeHasBeenSet = true; m_buildType = std::move(value); }
108 inline UpdateWebhookRequest& WithBuildType(const WebhookBuildType& value) { SetBuildType(value); return *this;}
109 inline UpdateWebhookRequest& WithBuildType(WebhookBuildType&& value) { SetBuildType(std::move(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;
120 bool m_rotateSecretHasBeenSet = false;
121
123 bool m_filterGroupsHasBeenSet = false;
124
125 WebhookBuildType m_buildType;
126 bool m_buildTypeHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace CodeBuild
131} // namespace Aws
void SetBranchFilter(const Aws::String &value)
UpdateWebhookRequest & WithBranchFilter(const Aws::String &value)
const Aws::Vector< Aws::Vector< WebhookFilter > > & GetFilterGroups() const
UpdateWebhookRequest & WithBuildType(WebhookBuildType &&value)
UpdateWebhookRequest & WithBranchFilter(const char *value)
void SetFilterGroups(Aws::Vector< Aws::Vector< WebhookFilter > > &&value)
void SetBuildType(const WebhookBuildType &value)
void SetProjectName(const Aws::String &value)
UpdateWebhookRequest & WithFilterGroups(const Aws::Vector< Aws::Vector< WebhookFilter > > &value)
const WebhookBuildType & GetBuildType() const
UpdateWebhookRequest & WithRotateSecret(bool value)
UpdateWebhookRequest & WithProjectName(Aws::String &&value)
UpdateWebhookRequest & WithProjectName(const Aws::String &value)
UpdateWebhookRequest & WithFilterGroups(Aws::Vector< Aws::Vector< WebhookFilter > > &&value)
AWS_CODEBUILD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateWebhookRequest & AddFilterGroups(const Aws::Vector< WebhookFilter > &value)
void SetFilterGroups(const Aws::Vector< Aws::Vector< WebhookFilter > > &value)
UpdateWebhookRequest & WithBranchFilter(Aws::String &&value)
UpdateWebhookRequest & WithBuildType(const WebhookBuildType &value)
UpdateWebhookRequest & WithProjectName(const char *value)
virtual const char * GetServiceRequestName() const override
AWS_CODEBUILD_API Aws::String SerializePayload() const override
UpdateWebhookRequest & AddFilterGroups(Aws::Vector< WebhookFilter > &&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