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

Contains configuration information and metadata about a CloudFront * function.

See Also:

AWS * API Reference

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

The name of the CloudFront function.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the CloudFront function.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the CloudFront function.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the CloudFront function.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the CloudFront function.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the CloudFront function.

*/ inline FunctionSummary& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the CloudFront function.

*/ inline FunctionSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the CloudFront function.

*/ inline FunctionSummary& WithName(const char* value) { SetName(value); return *this;} /** *

The status of the CloudFront function.

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The status of the CloudFront function.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the CloudFront function.

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the CloudFront function.

*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the CloudFront function.

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The status of the CloudFront function.

*/ inline FunctionSummary& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The status of the CloudFront function.

*/ inline FunctionSummary& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The status of the CloudFront function.

*/ inline FunctionSummary& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

Contains configuration information about a CloudFront function.

*/ inline const FunctionConfig& GetFunctionConfig() const{ return m_functionConfig; } /** *

Contains configuration information about a CloudFront function.

*/ inline bool FunctionConfigHasBeenSet() const { return m_functionConfigHasBeenSet; } /** *

Contains configuration information about a CloudFront function.

*/ inline void SetFunctionConfig(const FunctionConfig& value) { m_functionConfigHasBeenSet = true; m_functionConfig = value; } /** *

Contains configuration information about a CloudFront function.

*/ inline void SetFunctionConfig(FunctionConfig&& value) { m_functionConfigHasBeenSet = true; m_functionConfig = std::move(value); } /** *

Contains configuration information about a CloudFront function.

*/ inline FunctionSummary& WithFunctionConfig(const FunctionConfig& value) { SetFunctionConfig(value); return *this;} /** *

Contains configuration information about a CloudFront function.

*/ inline FunctionSummary& WithFunctionConfig(FunctionConfig&& value) { SetFunctionConfig(std::move(value)); return *this;} /** *

Contains metadata about a CloudFront function.

*/ inline const FunctionMetadata& GetFunctionMetadata() const{ return m_functionMetadata; } /** *

Contains metadata about a CloudFront function.

*/ inline bool FunctionMetadataHasBeenSet() const { return m_functionMetadataHasBeenSet; } /** *

Contains metadata about a CloudFront function.

*/ inline void SetFunctionMetadata(const FunctionMetadata& value) { m_functionMetadataHasBeenSet = true; m_functionMetadata = value; } /** *

Contains metadata about a CloudFront function.

*/ inline void SetFunctionMetadata(FunctionMetadata&& value) { m_functionMetadataHasBeenSet = true; m_functionMetadata = std::move(value); } /** *

Contains metadata about a CloudFront function.

*/ inline FunctionSummary& WithFunctionMetadata(const FunctionMetadata& value) { SetFunctionMetadata(value); return *this;} /** *

Contains metadata about a CloudFront function.

*/ inline FunctionSummary& WithFunctionMetadata(FunctionMetadata&& value) { SetFunctionMetadata(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; FunctionConfig m_functionConfig; bool m_functionConfigHasBeenSet = false; FunctionMetadata m_functionMetadata; bool m_functionMetadataHasBeenSet = false; }; } // namespace Model } // namespace CloudFront } // namespace Aws