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

A key group.

A key group contains a list of public keys that you can * use with CloudFront * signed URLs and signed cookies.

See Also:

AWS * API Reference

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

The identifier for the key group.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The identifier for the key group.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The identifier for the key group.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The identifier for the key group.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The identifier for the key group.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The identifier for the key group.

*/ inline KeyGroup& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The identifier for the key group.

*/ inline KeyGroup& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The identifier for the key group.

*/ inline KeyGroup& WithId(const char* value) { SetId(value); return *this;} /** *

The date and time when the key group was last modified.

*/ inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } /** *

The date and time when the key group was last modified.

*/ inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; } /** *

The date and time when the key group was last modified.

*/ inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; } /** *

The date and time when the key group was last modified.

*/ inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); } /** *

The date and time when the key group was last modified.

*/ inline KeyGroup& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} /** *

The date and time when the key group was last modified.

*/ inline KeyGroup& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} /** *

The key group configuration.

*/ inline const KeyGroupConfig& GetKeyGroupConfig() const{ return m_keyGroupConfig; } /** *

The key group configuration.

*/ inline bool KeyGroupConfigHasBeenSet() const { return m_keyGroupConfigHasBeenSet; } /** *

The key group configuration.

*/ inline void SetKeyGroupConfig(const KeyGroupConfig& value) { m_keyGroupConfigHasBeenSet = true; m_keyGroupConfig = value; } /** *

The key group configuration.

*/ inline void SetKeyGroupConfig(KeyGroupConfig&& value) { m_keyGroupConfigHasBeenSet = true; m_keyGroupConfig = std::move(value); } /** *

The key group configuration.

*/ inline KeyGroup& WithKeyGroupConfig(const KeyGroupConfig& value) { SetKeyGroupConfig(value); return *this;} /** *

The key group configuration.

*/ inline KeyGroup& WithKeyGroupConfig(KeyGroupConfig&& value) { SetKeyGroupConfig(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::Utils::DateTime m_lastModifiedTime; bool m_lastModifiedTimeHasBeenSet = false; KeyGroupConfig m_keyGroupConfig; bool m_keyGroupConfigHasBeenSet = false; }; } // namespace Model } // namespace CloudFront } // namespace Aws