/** * 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 Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace CloudFront { namespace Model { /** *

This configuration determines which HTTP requests are sent to the staging * distribution. If the HTTP request contains a header and value that matches what * you specify here, the request is sent to the staging distribution. Otherwise the * request is sent to the primary distribution.

See Also:

AWS * API Reference

*/ class ContinuousDeploymentSingleHeaderConfig { public: AWS_CLOUDFRONT_API ContinuousDeploymentSingleHeaderConfig(); AWS_CLOUDFRONT_API ContinuousDeploymentSingleHeaderConfig(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDFRONT_API ContinuousDeploymentSingleHeaderConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

The request header name that you want CloudFront to send to your staging * distribution. The header must contain the prefix aws-cf-cd-.

*/ inline const Aws::String& GetHeader() const{ return m_header; } /** *

The request header name that you want CloudFront to send to your staging * distribution. The header must contain the prefix aws-cf-cd-.

*/ inline bool HeaderHasBeenSet() const { return m_headerHasBeenSet; } /** *

The request header name that you want CloudFront to send to your staging * distribution. The header must contain the prefix aws-cf-cd-.

*/ inline void SetHeader(const Aws::String& value) { m_headerHasBeenSet = true; m_header = value; } /** *

The request header name that you want CloudFront to send to your staging * distribution. The header must contain the prefix aws-cf-cd-.

*/ inline void SetHeader(Aws::String&& value) { m_headerHasBeenSet = true; m_header = std::move(value); } /** *

The request header name that you want CloudFront to send to your staging * distribution. The header must contain the prefix aws-cf-cd-.

*/ inline void SetHeader(const char* value) { m_headerHasBeenSet = true; m_header.assign(value); } /** *

The request header name that you want CloudFront to send to your staging * distribution. The header must contain the prefix aws-cf-cd-.

*/ inline ContinuousDeploymentSingleHeaderConfig& WithHeader(const Aws::String& value) { SetHeader(value); return *this;} /** *

The request header name that you want CloudFront to send to your staging * distribution. The header must contain the prefix aws-cf-cd-.

*/ inline ContinuousDeploymentSingleHeaderConfig& WithHeader(Aws::String&& value) { SetHeader(std::move(value)); return *this;} /** *

The request header name that you want CloudFront to send to your staging * distribution. The header must contain the prefix aws-cf-cd-.

*/ inline ContinuousDeploymentSingleHeaderConfig& WithHeader(const char* value) { SetHeader(value); return *this;} /** *

The request header value.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

The request header value.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The request header value.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The request header value.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The request header value.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

The request header value.

*/ inline ContinuousDeploymentSingleHeaderConfig& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

The request header value.

*/ inline ContinuousDeploymentSingleHeaderConfig& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

The request header value.

*/ inline ContinuousDeploymentSingleHeaderConfig& WithValue(const char* value) { SetValue(value); return *this;} private: Aws::String m_header; bool m_headerHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace CloudFront } // namespace Aws