/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace CodePipeline { namespace Model { /** */ class RegisterWebhookWithThirdPartyRequest : public CodePipelineRequest { public: AWS_CODEPIPELINE_API RegisterWebhookWithThirdPartyRequest(); // 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 "RegisterWebhookWithThirdParty"; } AWS_CODEPIPELINE_API Aws::String SerializePayload() const override; AWS_CODEPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of an existing webhook created with PutWebhook to register with a * supported third party.

*/ inline const Aws::String& GetWebhookName() const{ return m_webhookName; } /** *

The name of an existing webhook created with PutWebhook to register with a * supported third party.

*/ inline bool WebhookNameHasBeenSet() const { return m_webhookNameHasBeenSet; } /** *

The name of an existing webhook created with PutWebhook to register with a * supported third party.

*/ inline void SetWebhookName(const Aws::String& value) { m_webhookNameHasBeenSet = true; m_webhookName = value; } /** *

The name of an existing webhook created with PutWebhook to register with a * supported third party.

*/ inline void SetWebhookName(Aws::String&& value) { m_webhookNameHasBeenSet = true; m_webhookName = std::move(value); } /** *

The name of an existing webhook created with PutWebhook to register with a * supported third party.

*/ inline void SetWebhookName(const char* value) { m_webhookNameHasBeenSet = true; m_webhookName.assign(value); } /** *

The name of an existing webhook created with PutWebhook to register with a * supported third party.

*/ inline RegisterWebhookWithThirdPartyRequest& WithWebhookName(const Aws::String& value) { SetWebhookName(value); return *this;} /** *

The name of an existing webhook created with PutWebhook to register with a * supported third party.

*/ inline RegisterWebhookWithThirdPartyRequest& WithWebhookName(Aws::String&& value) { SetWebhookName(std::move(value)); return *this;} /** *

The name of an existing webhook created with PutWebhook to register with a * supported third party.

*/ inline RegisterWebhookWithThirdPartyRequest& WithWebhookName(const char* value) { SetWebhookName(value); return *this;} private: Aws::String m_webhookName; bool m_webhookNameHasBeenSet = false; }; } // namespace Model } // namespace CodePipeline } // namespace Aws