AWS SDK for C++  1.9.155
AWS SDK for C++
UpdateWebhookRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Amplify
15 {
16 namespace Model
17 {
18 
26  {
27  public:
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 "UpdateWebhook"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
42  inline const Aws::String& GetWebhookId() const{ return m_webhookId; }
43 
47  inline bool WebhookIdHasBeenSet() const { return m_webhookIdHasBeenSet; }
48 
52  inline void SetWebhookId(const Aws::String& value) { m_webhookIdHasBeenSet = true; m_webhookId = value; }
53 
57  inline void SetWebhookId(Aws::String&& value) { m_webhookIdHasBeenSet = true; m_webhookId = std::move(value); }
58 
62  inline void SetWebhookId(const char* value) { m_webhookIdHasBeenSet = true; m_webhookId.assign(value); }
63 
67  inline UpdateWebhookRequest& WithWebhookId(const Aws::String& value) { SetWebhookId(value); return *this;}
68 
72  inline UpdateWebhookRequest& WithWebhookId(Aws::String&& value) { SetWebhookId(std::move(value)); return *this;}
73 
77  inline UpdateWebhookRequest& WithWebhookId(const char* value) { SetWebhookId(value); return *this;}
78 
79 
83  inline const Aws::String& GetBranchName() const{ return m_branchName; }
84 
88  inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
89 
93  inline void SetBranchName(const Aws::String& value) { m_branchNameHasBeenSet = true; m_branchName = value; }
94 
98  inline void SetBranchName(Aws::String&& value) { m_branchNameHasBeenSet = true; m_branchName = std::move(value); }
99 
103  inline void SetBranchName(const char* value) { m_branchNameHasBeenSet = true; m_branchName.assign(value); }
104 
108  inline UpdateWebhookRequest& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;}
109 
113  inline UpdateWebhookRequest& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;}
114 
118  inline UpdateWebhookRequest& WithBranchName(const char* value) { SetBranchName(value); return *this;}
119 
120 
124  inline const Aws::String& GetDescription() const{ return m_description; }
125 
129  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
130 
134  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
135 
139  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
140 
144  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
145 
149  inline UpdateWebhookRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
150 
154  inline UpdateWebhookRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
155 
159  inline UpdateWebhookRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
160 
161  private:
162 
163  Aws::String m_webhookId;
164  bool m_webhookIdHasBeenSet;
165 
166  Aws::String m_branchName;
167  bool m_branchNameHasBeenSet;
168 
169  Aws::String m_description;
170  bool m_descriptionHasBeenSet;
171  };
172 
173 } // namespace Model
174 } // namespace Amplify
175 } // namespace Aws
Amplify_EXPORTS.h
Aws::Amplify::Model::UpdateWebhookRequest::WithBranchName
UpdateWebhookRequest & WithBranchName(Aws::String &&value)
Definition: UpdateWebhookRequest.h:113
Aws::Amplify::Model::UpdateWebhookRequest::GetWebhookId
const Aws::String & GetWebhookId() const
Definition: UpdateWebhookRequest.h:42
Aws::Amplify::Model::UpdateWebhookRequest::WithWebhookId
UpdateWebhookRequest & WithWebhookId(const char *value)
Definition: UpdateWebhookRequest.h:77
Aws::Amplify::Model::UpdateWebhookRequest
Definition: UpdateWebhookRequest.h:26
Aws::Amplify::Model::UpdateWebhookRequest::SetBranchName
void SetBranchName(Aws::String &&value)
Definition: UpdateWebhookRequest.h:98
Aws::Amplify::Model::UpdateWebhookRequest::SetBranchName
void SetBranchName(const char *value)
Definition: UpdateWebhookRequest.h:103
AmplifyRequest.h
Aws::Amplify::AmplifyRequest
Definition: AmplifyRequest.h:17
Aws::Amplify::Model::UpdateWebhookRequest::WithDescription
UpdateWebhookRequest & WithDescription(const Aws::String &value)
Definition: UpdateWebhookRequest.h:149
Aws::Amplify::Model::UpdateWebhookRequest::SetWebhookId
void SetWebhookId(const char *value)
Definition: UpdateWebhookRequest.h:62
Aws::Amplify::Model::UpdateWebhookRequest::WithDescription
UpdateWebhookRequest & WithDescription(Aws::String &&value)
Definition: UpdateWebhookRequest.h:154
AWSString.h
Aws::Amplify::Model::UpdateWebhookRequest::WithWebhookId
UpdateWebhookRequest & WithWebhookId(Aws::String &&value)
Definition: UpdateWebhookRequest.h:72
Aws::Amplify::Model::UpdateWebhookRequest::SetDescription
void SetDescription(const char *value)
Definition: UpdateWebhookRequest.h:144
Aws::Amplify::Model::UpdateWebhookRequest::SetBranchName
void SetBranchName(const Aws::String &value)
Definition: UpdateWebhookRequest.h:93
Aws::Amplify::Model::UpdateWebhookRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: UpdateWebhookRequest.h:134
Aws::Amplify::Model::UpdateWebhookRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: UpdateWebhookRequest.h:139
Aws::Amplify::Model::UpdateWebhookRequest::GetDescription
const Aws::String & GetDescription() const
Definition: UpdateWebhookRequest.h:124
Aws::Amplify::Model::UpdateWebhookRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Amplify::Model::UpdateWebhookRequest::GetBranchName
const Aws::String & GetBranchName() const
Definition: UpdateWebhookRequest.h:83
Aws::Amplify::Model::UpdateWebhookRequest::WebhookIdHasBeenSet
bool WebhookIdHasBeenSet() const
Definition: UpdateWebhookRequest.h:47
Aws::Amplify::Model::UpdateWebhookRequest::BranchNameHasBeenSet
bool BranchNameHasBeenSet() const
Definition: UpdateWebhookRequest.h:88
Aws
Definition: AccessManagementClient.h:15
Aws::Amplify::Model::UpdateWebhookRequest::UpdateWebhookRequest
UpdateWebhookRequest()
Aws::Amplify::Model::UpdateWebhookRequest::SetWebhookId
void SetWebhookId(Aws::String &&value)
Definition: UpdateWebhookRequest.h:57
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Amplify::Model::UpdateWebhookRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: UpdateWebhookRequest.h:129
Aws::Amplify::Model::UpdateWebhookRequest::WithBranchName
UpdateWebhookRequest & WithBranchName(const char *value)
Definition: UpdateWebhookRequest.h:118
Aws::Amplify::Model::UpdateWebhookRequest::WithBranchName
UpdateWebhookRequest & WithBranchName(const Aws::String &value)
Definition: UpdateWebhookRequest.h:108
Aws::Amplify::Model::UpdateWebhookRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateWebhookRequest.h:34
Aws::Amplify::Model::UpdateWebhookRequest::WithDescription
UpdateWebhookRequest & WithDescription(const char *value)
Definition: UpdateWebhookRequest.h:159
Aws::Amplify::Model::UpdateWebhookRequest::SetWebhookId
void SetWebhookId(const Aws::String &value)
Definition: UpdateWebhookRequest.h:52
AWS_AMPLIFY_API
#define AWS_AMPLIFY_API
Definition: Amplify_EXPORTS.h:28
Aws::Amplify::Model::UpdateWebhookRequest::WithWebhookId
UpdateWebhookRequest & WithWebhookId(const Aws::String &value)
Definition: UpdateWebhookRequest.h:67