/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodePipeline { namespace Model { /** *

The authentication applied to incoming webhook trigger * requests.

See Also:

AWS * API Reference

*/ class WebhookAuthConfiguration { public: AWS_CODEPIPELINE_API WebhookAuthConfiguration(); AWS_CODEPIPELINE_API WebhookAuthConfiguration(Aws::Utils::Json::JsonView jsonValue); AWS_CODEPIPELINE_API WebhookAuthConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The property used to configure acceptance of webhooks in an IP address range. * For IP, only the AllowedIPRange property must be set. This property * must be set to a valid CIDR range.

*/ inline const Aws::String& GetAllowedIPRange() const{ return m_allowedIPRange; } /** *

The property used to configure acceptance of webhooks in an IP address range. * For IP, only the AllowedIPRange property must be set. This property * must be set to a valid CIDR range.

*/ inline bool AllowedIPRangeHasBeenSet() const { return m_allowedIPRangeHasBeenSet; } /** *

The property used to configure acceptance of webhooks in an IP address range. * For IP, only the AllowedIPRange property must be set. This property * must be set to a valid CIDR range.

*/ inline void SetAllowedIPRange(const Aws::String& value) { m_allowedIPRangeHasBeenSet = true; m_allowedIPRange = value; } /** *

The property used to configure acceptance of webhooks in an IP address range. * For IP, only the AllowedIPRange property must be set. This property * must be set to a valid CIDR range.

*/ inline void SetAllowedIPRange(Aws::String&& value) { m_allowedIPRangeHasBeenSet = true; m_allowedIPRange = std::move(value); } /** *

The property used to configure acceptance of webhooks in an IP address range. * For IP, only the AllowedIPRange property must be set. This property * must be set to a valid CIDR range.

*/ inline void SetAllowedIPRange(const char* value) { m_allowedIPRangeHasBeenSet = true; m_allowedIPRange.assign(value); } /** *

The property used to configure acceptance of webhooks in an IP address range. * For IP, only the AllowedIPRange property must be set. This property * must be set to a valid CIDR range.

*/ inline WebhookAuthConfiguration& WithAllowedIPRange(const Aws::String& value) { SetAllowedIPRange(value); return *this;} /** *

The property used to configure acceptance of webhooks in an IP address range. * For IP, only the AllowedIPRange property must be set. This property * must be set to a valid CIDR range.

*/ inline WebhookAuthConfiguration& WithAllowedIPRange(Aws::String&& value) { SetAllowedIPRange(std::move(value)); return *this;} /** *

The property used to configure acceptance of webhooks in an IP address range. * For IP, only the AllowedIPRange property must be set. This property * must be set to a valid CIDR range.

*/ inline WebhookAuthConfiguration& WithAllowedIPRange(const char* value) { SetAllowedIPRange(value); return *this;} /** *

The property used to configure GitHub authentication. For GITHUB_HMAC, only * the SecretToken property must be set.

*/ inline const Aws::String& GetSecretToken() const{ return m_secretToken; } /** *

The property used to configure GitHub authentication. For GITHUB_HMAC, only * the SecretToken property must be set.

*/ inline bool SecretTokenHasBeenSet() const { return m_secretTokenHasBeenSet; } /** *

The property used to configure GitHub authentication. For GITHUB_HMAC, only * the SecretToken property must be set.

*/ inline void SetSecretToken(const Aws::String& value) { m_secretTokenHasBeenSet = true; m_secretToken = value; } /** *

The property used to configure GitHub authentication. For GITHUB_HMAC, only * the SecretToken property must be set.

*/ inline void SetSecretToken(Aws::String&& value) { m_secretTokenHasBeenSet = true; m_secretToken = std::move(value); } /** *

The property used to configure GitHub authentication. For GITHUB_HMAC, only * the SecretToken property must be set.

*/ inline void SetSecretToken(const char* value) { m_secretTokenHasBeenSet = true; m_secretToken.assign(value); } /** *

The property used to configure GitHub authentication. For GITHUB_HMAC, only * the SecretToken property must be set.

*/ inline WebhookAuthConfiguration& WithSecretToken(const Aws::String& value) { SetSecretToken(value); return *this;} /** *

The property used to configure GitHub authentication. For GITHUB_HMAC, only * the SecretToken property must be set.

*/ inline WebhookAuthConfiguration& WithSecretToken(Aws::String&& value) { SetSecretToken(std::move(value)); return *this;} /** *

The property used to configure GitHub authentication. For GITHUB_HMAC, only * the SecretToken property must be set.

*/ inline WebhookAuthConfiguration& WithSecretToken(const char* value) { SetSecretToken(value); return *this;} private: Aws::String m_allowedIPRange; bool m_allowedIPRangeHasBeenSet = false; Aws::String m_secretToken; bool m_secretTokenHasBeenSet = false; }; } // namespace Model } // namespace CodePipeline } // namespace Aws