/** * 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 { /** *

Contains information about a key group.

See Also:

AWS * API Reference

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

A key group.

*/ inline const KeyGroup& GetKeyGroup() const{ return m_keyGroup; } /** *

A key group.

*/ inline bool KeyGroupHasBeenSet() const { return m_keyGroupHasBeenSet; } /** *

A key group.

*/ inline void SetKeyGroup(const KeyGroup& value) { m_keyGroupHasBeenSet = true; m_keyGroup = value; } /** *

A key group.

*/ inline void SetKeyGroup(KeyGroup&& value) { m_keyGroupHasBeenSet = true; m_keyGroup = std::move(value); } /** *

A key group.

*/ inline KeyGroupSummary& WithKeyGroup(const KeyGroup& value) { SetKeyGroup(value); return *this;} /** *

A key group.

*/ inline KeyGroupSummary& WithKeyGroup(KeyGroup&& value) { SetKeyGroup(std::move(value)); return *this;} private: KeyGroup m_keyGroup; bool m_keyGroupHasBeenSet = false; }; } // namespace Model } // namespace CloudFront } // namespace Aws