This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files

335 lines
10 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/amplify/Amplify_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Amplify
{
namespace Model
{
/**
* <p> Describes a webhook that connects repository events to an Amplify app.
* </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/Webhook">AWS API
* Reference</a></p>
*/
class AWS_AMPLIFY_API Webhook
{
public:
Webhook();
Webhook(Aws::Utils::Json::JsonView jsonValue);
Webhook& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> The Amazon Resource Name (ARN) for the webhook. </p>
*/
inline const Aws::String& GetWebhookArn() const{ return m_webhookArn; }
/**
* <p> The Amazon Resource Name (ARN) for the webhook. </p>
*/
inline bool WebhookArnHasBeenSet() const { return m_webhookArnHasBeenSet; }
/**
* <p> The Amazon Resource Name (ARN) for the webhook. </p>
*/
inline void SetWebhookArn(const Aws::String& value) { m_webhookArnHasBeenSet = true; m_webhookArn = value; }
/**
* <p> The Amazon Resource Name (ARN) for the webhook. </p>
*/
inline void SetWebhookArn(Aws::String&& value) { m_webhookArnHasBeenSet = true; m_webhookArn = std::move(value); }
/**
* <p> The Amazon Resource Name (ARN) for the webhook. </p>
*/
inline void SetWebhookArn(const char* value) { m_webhookArnHasBeenSet = true; m_webhookArn.assign(value); }
/**
* <p> The Amazon Resource Name (ARN) for the webhook. </p>
*/
inline Webhook& WithWebhookArn(const Aws::String& value) { SetWebhookArn(value); return *this;}
/**
* <p> The Amazon Resource Name (ARN) for the webhook. </p>
*/
inline Webhook& WithWebhookArn(Aws::String&& value) { SetWebhookArn(std::move(value)); return *this;}
/**
* <p> The Amazon Resource Name (ARN) for the webhook. </p>
*/
inline Webhook& WithWebhookArn(const char* value) { SetWebhookArn(value); return *this;}
/**
* <p> The ID of the webhook. </p>
*/
inline const Aws::String& GetWebhookId() const{ return m_webhookId; }
/**
* <p> The ID of the webhook. </p>
*/
inline bool WebhookIdHasBeenSet() const { return m_webhookIdHasBeenSet; }
/**
* <p> The ID of the webhook. </p>
*/
inline void SetWebhookId(const Aws::String& value) { m_webhookIdHasBeenSet = true; m_webhookId = value; }
/**
* <p> The ID of the webhook. </p>
*/
inline void SetWebhookId(Aws::String&& value) { m_webhookIdHasBeenSet = true; m_webhookId = std::move(value); }
/**
* <p> The ID of the webhook. </p>
*/
inline void SetWebhookId(const char* value) { m_webhookIdHasBeenSet = true; m_webhookId.assign(value); }
/**
* <p> The ID of the webhook. </p>
*/
inline Webhook& WithWebhookId(const Aws::String& value) { SetWebhookId(value); return *this;}
/**
* <p> The ID of the webhook. </p>
*/
inline Webhook& WithWebhookId(Aws::String&& value) { SetWebhookId(std::move(value)); return *this;}
/**
* <p> The ID of the webhook. </p>
*/
inline Webhook& WithWebhookId(const char* value) { SetWebhookId(value); return *this;}
/**
* <p> The URL of the webhook. </p>
*/
inline const Aws::String& GetWebhookUrl() const{ return m_webhookUrl; }
/**
* <p> The URL of the webhook. </p>
*/
inline bool WebhookUrlHasBeenSet() const { return m_webhookUrlHasBeenSet; }
/**
* <p> The URL of the webhook. </p>
*/
inline void SetWebhookUrl(const Aws::String& value) { m_webhookUrlHasBeenSet = true; m_webhookUrl = value; }
/**
* <p> The URL of the webhook. </p>
*/
inline void SetWebhookUrl(Aws::String&& value) { m_webhookUrlHasBeenSet = true; m_webhookUrl = std::move(value); }
/**
* <p> The URL of the webhook. </p>
*/
inline void SetWebhookUrl(const char* value) { m_webhookUrlHasBeenSet = true; m_webhookUrl.assign(value); }
/**
* <p> The URL of the webhook. </p>
*/
inline Webhook& WithWebhookUrl(const Aws::String& value) { SetWebhookUrl(value); return *this;}
/**
* <p> The URL of the webhook. </p>
*/
inline Webhook& WithWebhookUrl(Aws::String&& value) { SetWebhookUrl(std::move(value)); return *this;}
/**
* <p> The URL of the webhook. </p>
*/
inline Webhook& WithWebhookUrl(const char* value) { SetWebhookUrl(value); return *this;}
/**
* <p> The name for a branch that is part of an Amplify app. </p>
*/
inline const Aws::String& GetBranchName() const{ return m_branchName; }
/**
* <p> The name for a branch that is part of an Amplify app. </p>
*/
inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
/**
* <p> The name for a branch that is part of an Amplify app. </p>
*/
inline void SetBranchName(const Aws::String& value) { m_branchNameHasBeenSet = true; m_branchName = value; }
/**
* <p> The name for a branch that is part of an Amplify app. </p>
*/
inline void SetBranchName(Aws::String&& value) { m_branchNameHasBeenSet = true; m_branchName = std::move(value); }
/**
* <p> The name for a branch that is part of an Amplify app. </p>
*/
inline void SetBranchName(const char* value) { m_branchNameHasBeenSet = true; m_branchName.assign(value); }
/**
* <p> The name for a branch that is part of an Amplify app. </p>
*/
inline Webhook& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;}
/**
* <p> The name for a branch that is part of an Amplify app. </p>
*/
inline Webhook& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;}
/**
* <p> The name for a branch that is part of an Amplify app. </p>
*/
inline Webhook& WithBranchName(const char* value) { SetBranchName(value); return *this;}
/**
* <p> The description for a webhook. </p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p> The description for a webhook. </p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p> The description for a webhook. </p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p> The description for a webhook. </p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p> The description for a webhook. </p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p> The description for a webhook. </p>
*/
inline Webhook& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p> The description for a webhook. </p>
*/
inline Webhook& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p> The description for a webhook. </p>
*/
inline Webhook& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p> The create date and time for a webhook. </p>
*/
inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
/**
* <p> The create date and time for a webhook. </p>
*/
inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
/**
* <p> The create date and time for a webhook. </p>
*/
inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
/**
* <p> The create date and time for a webhook. </p>
*/
inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); }
/**
* <p> The create date and time for a webhook. </p>
*/
inline Webhook& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;}
/**
* <p> The create date and time for a webhook. </p>
*/
inline Webhook& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;}
/**
* <p> Updates the date and time for a webhook. </p>
*/
inline const Aws::Utils::DateTime& GetUpdateTime() const{ return m_updateTime; }
/**
* <p> Updates the date and time for a webhook. </p>
*/
inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
/**
* <p> Updates the date and time for a webhook. </p>
*/
inline void SetUpdateTime(const Aws::Utils::DateTime& value) { m_updateTimeHasBeenSet = true; m_updateTime = value; }
/**
* <p> Updates the date and time for a webhook. </p>
*/
inline void SetUpdateTime(Aws::Utils::DateTime&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::move(value); }
/**
* <p> Updates the date and time for a webhook. </p>
*/
inline Webhook& WithUpdateTime(const Aws::Utils::DateTime& value) { SetUpdateTime(value); return *this;}
/**
* <p> Updates the date and time for a webhook. </p>
*/
inline Webhook& WithUpdateTime(Aws::Utils::DateTime&& value) { SetUpdateTime(std::move(value)); return *this;}
private:
Aws::String m_webhookArn;
bool m_webhookArnHasBeenSet;
Aws::String m_webhookId;
bool m_webhookIdHasBeenSet;
Aws::String m_webhookUrl;
bool m_webhookUrlHasBeenSet;
Aws::String m_branchName;
bool m_branchNameHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::Utils::DateTime m_createTime;
bool m_createTimeHasBeenSet;
Aws::Utils::DateTime m_updateTime;
bool m_updateTimeHasBeenSet;
};
} // namespace Model
} // namespace Amplify
} // namespace Aws