/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CodePipeline { namespace Model { class PutWebhookResult { public: AWS_CODEPIPELINE_API PutWebhookResult(); AWS_CODEPIPELINE_API PutWebhookResult(const Aws::AmazonWebServiceResult& result); AWS_CODEPIPELINE_API PutWebhookResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The detail returned from creating the webhook, such as the webhook name, * webhook URL, and webhook ARN.

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

The detail returned from creating the webhook, such as the webhook name, * webhook URL, and webhook ARN.

*/ inline void SetWebhook(const ListWebhookItem& value) { m_webhook = value; } /** *

The detail returned from creating the webhook, such as the webhook name, * webhook URL, and webhook ARN.

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

The detail returned from creating the webhook, such as the webhook name, * webhook URL, and webhook ARN.

*/ inline PutWebhookResult& WithWebhook(const ListWebhookItem& value) { SetWebhook(value); return *this;} /** *

The detail returned from creating the webhook, such as the webhook name, * webhook URL, and webhook ARN.

*/ inline PutWebhookResult& WithWebhook(ListWebhookItem&& value) { SetWebhook(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline PutWebhookResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline PutWebhookResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline PutWebhookResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: ListWebhookItem m_webhook; Aws::String m_requestId; }; } // namespace Model } // namespace CodePipeline } // namespace Aws