/** * 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 CodeBuild { namespace Model { class CreateWebhookResult { public: AWS_CODEBUILD_API CreateWebhookResult(); AWS_CODEBUILD_API CreateWebhookResult(const Aws::AmazonWebServiceResult& result); AWS_CODEBUILD_API CreateWebhookResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Information about a webhook that connects repository events to a build * project in CodeBuild.

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

Information about a webhook that connects repository events to a build * project in CodeBuild.

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

Information about a webhook that connects repository events to a build * project in CodeBuild.

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

Information about a webhook that connects repository events to a build * project in CodeBuild.

*/ inline CreateWebhookResult& WithWebhook(const Webhook& value) { SetWebhook(value); return *this;} /** *

Information about a webhook that connects repository events to a build * project in CodeBuild.

*/ inline CreateWebhookResult& WithWebhook(Webhook&& 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 CreateWebhookResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateWebhookResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateWebhookResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Webhook m_webhook; Aws::String m_requestId; }; } // namespace Model } // namespace CodeBuild } // namespace Aws