/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace CodePipeline { namespace Model { /** */ class PutWebhookRequest : public CodePipelineRequest { public: AWS_CODEPIPELINE_API PutWebhookRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "PutWebhook"; } AWS_CODEPIPELINE_API Aws::String SerializePayload() const override; AWS_CODEPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The detail provided in an input file to create the webhook, such as the * webhook name, the pipeline name, and the action name. Give the webhook a unique * name that helps you identify it. You might name the webhook after the pipeline * and action it targets so that you can easily recognize what it's used for * later.

*/ inline const WebhookDefinition& GetWebhook() const{ return m_webhook; } /** *

The detail provided in an input file to create the webhook, such as the * webhook name, the pipeline name, and the action name. Give the webhook a unique * name that helps you identify it. You might name the webhook after the pipeline * and action it targets so that you can easily recognize what it's used for * later.

*/ inline bool WebhookHasBeenSet() const { return m_webhookHasBeenSet; } /** *

The detail provided in an input file to create the webhook, such as the * webhook name, the pipeline name, and the action name. Give the webhook a unique * name that helps you identify it. You might name the webhook after the pipeline * and action it targets so that you can easily recognize what it's used for * later.

*/ inline void SetWebhook(const WebhookDefinition& value) { m_webhookHasBeenSet = true; m_webhook = value; } /** *

The detail provided in an input file to create the webhook, such as the * webhook name, the pipeline name, and the action name. Give the webhook a unique * name that helps you identify it. You might name the webhook after the pipeline * and action it targets so that you can easily recognize what it's used for * later.

*/ inline void SetWebhook(WebhookDefinition&& value) { m_webhookHasBeenSet = true; m_webhook = std::move(value); } /** *

The detail provided in an input file to create the webhook, such as the * webhook name, the pipeline name, and the action name. Give the webhook a unique * name that helps you identify it. You might name the webhook after the pipeline * and action it targets so that you can easily recognize what it's used for * later.

*/ inline PutWebhookRequest& WithWebhook(const WebhookDefinition& value) { SetWebhook(value); return *this;} /** *

The detail provided in an input file to create the webhook, such as the * webhook name, the pipeline name, and the action name. Give the webhook a unique * name that helps you identify it. You might name the webhook after the pipeline * and action it targets so that you can easily recognize what it's used for * later.

*/ inline PutWebhookRequest& WithWebhook(WebhookDefinition&& value) { SetWebhook(std::move(value)); return *this;} /** *

The tags for the webhook.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tags for the webhook.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags for the webhook.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags for the webhook.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags for the webhook.

*/ inline PutWebhookRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tags for the webhook.

*/ inline PutWebhookRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The tags for the webhook.

*/ inline PutWebhookRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tags for the webhook.

*/ inline PutWebhookRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: WebhookDefinition m_webhook; bool m_webhookHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace CodePipeline } // namespace Aws