/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a webhook that connects repository events to an Amplify app.
* See Also:
AWS API
* Reference
The Amazon Resource Name (ARN) for the webhook.
*/ inline const Aws::String& GetWebhookArn() const{ return m_webhookArn; } /** *The Amazon Resource Name (ARN) for the webhook.
*/ inline bool WebhookArnHasBeenSet() const { return m_webhookArnHasBeenSet; } /** *The Amazon Resource Name (ARN) for the webhook.
*/ inline void SetWebhookArn(const Aws::String& value) { m_webhookArnHasBeenSet = true; m_webhookArn = value; } /** *The Amazon Resource Name (ARN) for the webhook.
*/ inline void SetWebhookArn(Aws::String&& value) { m_webhookArnHasBeenSet = true; m_webhookArn = std::move(value); } /** *The Amazon Resource Name (ARN) for the webhook.
*/ inline void SetWebhookArn(const char* value) { m_webhookArnHasBeenSet = true; m_webhookArn.assign(value); } /** *The Amazon Resource Name (ARN) for the webhook.
*/ inline Webhook& WithWebhookArn(const Aws::String& value) { SetWebhookArn(value); return *this;} /** *The Amazon Resource Name (ARN) for the webhook.
*/ inline Webhook& WithWebhookArn(Aws::String&& value) { SetWebhookArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) for the webhook.
*/ inline Webhook& WithWebhookArn(const char* value) { SetWebhookArn(value); return *this;} /** *The ID of the webhook.
*/ inline const Aws::String& GetWebhookId() const{ return m_webhookId; } /** *The ID of the webhook.
*/ inline bool WebhookIdHasBeenSet() const { return m_webhookIdHasBeenSet; } /** *The ID of the webhook.
*/ inline void SetWebhookId(const Aws::String& value) { m_webhookIdHasBeenSet = true; m_webhookId = value; } /** *The ID of the webhook.
*/ inline void SetWebhookId(Aws::String&& value) { m_webhookIdHasBeenSet = true; m_webhookId = std::move(value); } /** *The ID of the webhook.
*/ inline void SetWebhookId(const char* value) { m_webhookIdHasBeenSet = true; m_webhookId.assign(value); } /** *The ID of the webhook.
*/ inline Webhook& WithWebhookId(const Aws::String& value) { SetWebhookId(value); return *this;} /** *The ID of the webhook.
*/ inline Webhook& WithWebhookId(Aws::String&& value) { SetWebhookId(std::move(value)); return *this;} /** *The ID of the webhook.
*/ inline Webhook& WithWebhookId(const char* value) { SetWebhookId(value); return *this;} /** *The URL of the webhook.
*/ inline const Aws::String& GetWebhookUrl() const{ return m_webhookUrl; } /** *The URL of the webhook.
*/ inline bool WebhookUrlHasBeenSet() const { return m_webhookUrlHasBeenSet; } /** *The URL of the webhook.
*/ inline void SetWebhookUrl(const Aws::String& value) { m_webhookUrlHasBeenSet = true; m_webhookUrl = value; } /** *The URL of the webhook.
*/ inline void SetWebhookUrl(Aws::String&& value) { m_webhookUrlHasBeenSet = true; m_webhookUrl = std::move(value); } /** *The URL of the webhook.
*/ inline void SetWebhookUrl(const char* value) { m_webhookUrlHasBeenSet = true; m_webhookUrl.assign(value); } /** *The URL of the webhook.
*/ inline Webhook& WithWebhookUrl(const Aws::String& value) { SetWebhookUrl(value); return *this;} /** *The URL of the webhook.
*/ inline Webhook& WithWebhookUrl(Aws::String&& value) { SetWebhookUrl(std::move(value)); return *this;} /** *The URL of the webhook.
*/ inline Webhook& WithWebhookUrl(const char* value) { SetWebhookUrl(value); return *this;} /** *The name for a branch that is part of an Amplify app.
*/ inline const Aws::String& GetBranchName() const{ return m_branchName; } /** *The name for a branch that is part of an Amplify app.
*/ inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; } /** *The name for a branch that is part of an Amplify app.
*/ inline void SetBranchName(const Aws::String& value) { m_branchNameHasBeenSet = true; m_branchName = value; } /** *The name for a branch that is part of an Amplify app.
*/ inline void SetBranchName(Aws::String&& value) { m_branchNameHasBeenSet = true; m_branchName = std::move(value); } /** *The name for a branch that is part of an Amplify app.
*/ inline void SetBranchName(const char* value) { m_branchNameHasBeenSet = true; m_branchName.assign(value); } /** *The name for a branch that is part of an Amplify app.
*/ inline Webhook& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;} /** *The name for a branch that is part of an Amplify app.
*/ inline Webhook& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;} /** *The name for a branch that is part of an Amplify app.
*/ inline Webhook& WithBranchName(const char* value) { SetBranchName(value); return *this;} /** *The description for a webhook.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *The description for a webhook.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *The description for a webhook.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *The description for a webhook.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *The description for a webhook.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *The description for a webhook.
*/ inline Webhook& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *The description for a webhook.
*/ inline Webhook& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *The description for a webhook.
*/ inline Webhook& WithDescription(const char* value) { SetDescription(value); return *this;} /** *The create date and time for a webhook.
*/ inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; } /** *The create date and time for a webhook.
*/ inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; } /** *The create date and time for a webhook.
*/ inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; } /** *The create date and time for a webhook.
*/ inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); } /** *The create date and time for a webhook.
*/ inline Webhook& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;} /** *The create date and time for a webhook.
*/ inline Webhook& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;} /** *Updates the date and time for a webhook.
*/ inline const Aws::Utils::DateTime& GetUpdateTime() const{ return m_updateTime; } /** *Updates the date and time for a webhook.
*/ inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; } /** *Updates the date and time for a webhook.
*/ inline void SetUpdateTime(const Aws::Utils::DateTime& value) { m_updateTimeHasBeenSet = true; m_updateTime = value; } /** *Updates the date and time for a webhook.
*/ inline void SetUpdateTime(Aws::Utils::DateTime&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::move(value); } /** *Updates the date and time for a webhook.
*/ inline Webhook& WithUpdateTime(const Aws::Utils::DateTime& value) { SetUpdateTime(value); return *this;} /** *Updates the date and time for a webhook.
*/ inline Webhook& WithUpdateTime(Aws::Utils::DateTime&& value) { SetUpdateTime(std::move(value)); return *this;} private: Aws::String m_webhookArn; bool m_webhookArnHasBeenSet = false; Aws::String m_webhookId; bool m_webhookIdHasBeenSet = false; Aws::String m_webhookUrl; bool m_webhookUrlHasBeenSet = false; Aws::String m_branchName; bool m_branchNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Utils::DateTime m_createTime; bool m_createTimeHasBeenSet = false; Aws::Utils::DateTime m_updateTime; bool m_updateTimeHasBeenSet = false; }; } // namespace Model } // namespace Amplify } // namespace Aws