/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The detail returned for each webhook after listing webhooks, such as the
* webhook URL, the webhook name, and the webhook ARN.See Also:
* AWS
* API Reference
The detail returned for each webhook, such as the webhook authentication type * and filter rules.
*/ inline const WebhookDefinition& GetDefinition() const{ return m_definition; } /** *The detail returned for each webhook, such as the webhook authentication type * and filter rules.
*/ inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; } /** *The detail returned for each webhook, such as the webhook authentication type * and filter rules.
*/ inline void SetDefinition(const WebhookDefinition& value) { m_definitionHasBeenSet = true; m_definition = value; } /** *The detail returned for each webhook, such as the webhook authentication type * and filter rules.
*/ inline void SetDefinition(WebhookDefinition&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); } /** *The detail returned for each webhook, such as the webhook authentication type * and filter rules.
*/ inline ListWebhookItem& WithDefinition(const WebhookDefinition& value) { SetDefinition(value); return *this;} /** *The detail returned for each webhook, such as the webhook authentication type * and filter rules.
*/ inline ListWebhookItem& WithDefinition(WebhookDefinition&& value) { SetDefinition(std::move(value)); return *this;} /** *A unique URL generated by CodePipeline. When a POST request is made to this * URL, the defined pipeline is started as long as the body of the post request * satisfies the defined authentication and filtering conditions. Deleting and * re-creating a webhook makes the old URL invalid and generates a new one.
*/ inline const Aws::String& GetUrl() const{ return m_url; } /** *A unique URL generated by CodePipeline. When a POST request is made to this * URL, the defined pipeline is started as long as the body of the post request * satisfies the defined authentication and filtering conditions. Deleting and * re-creating a webhook makes the old URL invalid and generates a new one.
*/ inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; } /** *A unique URL generated by CodePipeline. When a POST request is made to this * URL, the defined pipeline is started as long as the body of the post request * satisfies the defined authentication and filtering conditions. Deleting and * re-creating a webhook makes the old URL invalid and generates a new one.
*/ inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; } /** *A unique URL generated by CodePipeline. When a POST request is made to this * URL, the defined pipeline is started as long as the body of the post request * satisfies the defined authentication and filtering conditions. Deleting and * re-creating a webhook makes the old URL invalid and generates a new one.
*/ inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); } /** *A unique URL generated by CodePipeline. When a POST request is made to this * URL, the defined pipeline is started as long as the body of the post request * satisfies the defined authentication and filtering conditions. Deleting and * re-creating a webhook makes the old URL invalid and generates a new one.
*/ inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); } /** *A unique URL generated by CodePipeline. When a POST request is made to this * URL, the defined pipeline is started as long as the body of the post request * satisfies the defined authentication and filtering conditions. Deleting and * re-creating a webhook makes the old URL invalid and generates a new one.
*/ inline ListWebhookItem& WithUrl(const Aws::String& value) { SetUrl(value); return *this;} /** *A unique URL generated by CodePipeline. When a POST request is made to this * URL, the defined pipeline is started as long as the body of the post request * satisfies the defined authentication and filtering conditions. Deleting and * re-creating a webhook makes the old URL invalid and generates a new one.
*/ inline ListWebhookItem& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;} /** *A unique URL generated by CodePipeline. When a POST request is made to this * URL, the defined pipeline is started as long as the body of the post request * satisfies the defined authentication and filtering conditions. Deleting and * re-creating a webhook makes the old URL invalid and generates a new one.
*/ inline ListWebhookItem& WithUrl(const char* value) { SetUrl(value); return *this;} /** *The text of the error message about the webhook.
*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *The text of the error message about the webhook.
*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *The text of the error message about the webhook.
*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *The text of the error message about the webhook.
*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *The text of the error message about the webhook.
*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *The text of the error message about the webhook.
*/ inline ListWebhookItem& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *The text of the error message about the webhook.
*/ inline ListWebhookItem& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *The text of the error message about the webhook.
*/ inline ListWebhookItem& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} /** *The number code of the error.
*/ inline const Aws::String& GetErrorCode() const{ return m_errorCode; } /** *The number code of the error.
*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *The number code of the error.
*/ inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *The number code of the error.
*/ inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *The number code of the error.
*/ inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); } /** *The number code of the error.
*/ inline ListWebhookItem& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;} /** *The number code of the error.
*/ inline ListWebhookItem& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;} /** *The number code of the error.
*/ inline ListWebhookItem& WithErrorCode(const char* value) { SetErrorCode(value); return *this;} /** *The date and time a webhook was last successfully triggered, in timestamp * format.
*/ inline const Aws::Utils::DateTime& GetLastTriggered() const{ return m_lastTriggered; } /** *The date and time a webhook was last successfully triggered, in timestamp * format.
*/ inline bool LastTriggeredHasBeenSet() const { return m_lastTriggeredHasBeenSet; } /** *The date and time a webhook was last successfully triggered, in timestamp * format.
*/ inline void SetLastTriggered(const Aws::Utils::DateTime& value) { m_lastTriggeredHasBeenSet = true; m_lastTriggered = value; } /** *The date and time a webhook was last successfully triggered, in timestamp * format.
*/ inline void SetLastTriggered(Aws::Utils::DateTime&& value) { m_lastTriggeredHasBeenSet = true; m_lastTriggered = std::move(value); } /** *The date and time a webhook was last successfully triggered, in timestamp * format.
*/ inline ListWebhookItem& WithLastTriggered(const Aws::Utils::DateTime& value) { SetLastTriggered(value); return *this;} /** *The date and time a webhook was last successfully triggered, in timestamp * format.
*/ inline ListWebhookItem& WithLastTriggered(Aws::Utils::DateTime&& value) { SetLastTriggered(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the webhook.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The Amazon Resource Name (ARN) of the webhook.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the webhook.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The Amazon Resource Name (ARN) of the webhook.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The Amazon Resource Name (ARN) of the webhook.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The Amazon Resource Name (ARN) of the webhook.
*/ inline ListWebhookItem& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the webhook.
*/ inline ListWebhookItem& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the webhook.
*/ inline ListWebhookItem& WithArn(const char* value) { SetArn(value); return *this;} /** *Specifies the tags applied to the webhook.
*/ inline const Aws::VectorSpecifies the tags applied to the webhook.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *Specifies the tags applied to the webhook.
*/ inline void SetTags(const Aws::VectorSpecifies the tags applied to the webhook.
*/ inline void SetTags(Aws::VectorSpecifies the tags applied to the webhook.
*/ inline ListWebhookItem& WithTags(const Aws::VectorSpecifies the tags applied to the webhook.
*/ inline ListWebhookItem& WithTags(Aws::VectorSpecifies the tags applied to the webhook.
*/ inline ListWebhookItem& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *Specifies the tags applied to the webhook.
*/ inline ListWebhookItem& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: WebhookDefinition m_definition; bool m_definitionHasBeenSet = false; Aws::String m_url; bool m_urlHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; Aws::String m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::Utils::DateTime m_lastTriggered; bool m_lastTriggeredHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::Vector