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

A key group configuration.

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 KeyGroupConfig { public: AWS_CLOUDFRONT_API KeyGroupConfig(); AWS_CLOUDFRONT_API KeyGroupConfig(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDFRONT_API KeyGroupConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

A name to identify the key group.

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

A name to identify the key group.

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

A name to identify the key group.

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

A name to identify the key group.

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

A name to identify the key group.

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

A name to identify the key group.

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

A name to identify the key group.

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

A name to identify the key group.

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

A list of the identifiers of the public keys in the key group.

*/ inline const Aws::Vector& GetItems() const{ return m_items; } /** *

A list of the identifiers of the public keys in the key group.

*/ inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; } /** *

A list of the identifiers of the public keys in the key group.

*/ inline void SetItems(const Aws::Vector& value) { m_itemsHasBeenSet = true; m_items = value; } /** *

A list of the identifiers of the public keys in the key group.

*/ inline void SetItems(Aws::Vector&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); } /** *

A list of the identifiers of the public keys in the key group.

*/ inline KeyGroupConfig& WithItems(const Aws::Vector& value) { SetItems(value); return *this;} /** *

A list of the identifiers of the public keys in the key group.

*/ inline KeyGroupConfig& WithItems(Aws::Vector&& value) { SetItems(std::move(value)); return *this;} /** *

A list of the identifiers of the public keys in the key group.

*/ inline KeyGroupConfig& AddItems(const Aws::String& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; } /** *

A list of the identifiers of the public keys in the key group.

*/ inline KeyGroupConfig& AddItems(Aws::String&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; } /** *

A list of the identifiers of the public keys in the key group.

*/ inline KeyGroupConfig& AddItems(const char* value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; } /** *

A comment to describe the key group. The comment cannot be longer than 128 * characters.

*/ inline const Aws::String& GetComment() const{ return m_comment; } /** *

A comment to describe the key group. The comment cannot be longer than 128 * characters.

*/ inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; } /** *

A comment to describe the key group. The comment cannot be longer than 128 * characters.

*/ inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; } /** *

A comment to describe the key group. The comment cannot be longer than 128 * characters.

*/ inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); } /** *

A comment to describe the key group. The comment cannot be longer than 128 * characters.

*/ inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); } /** *

A comment to describe the key group. The comment cannot be longer than 128 * characters.

*/ inline KeyGroupConfig& WithComment(const Aws::String& value) { SetComment(value); return *this;} /** *

A comment to describe the key group. The comment cannot be longer than 128 * characters.

*/ inline KeyGroupConfig& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;} /** *

A comment to describe the key group. The comment cannot be longer than 128 * characters.

*/ inline KeyGroupConfig& WithComment(const char* value) { SetComment(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_items; bool m_itemsHasBeenSet = false; Aws::String m_comment; bool m_commentHasBeenSet = false; }; } // namespace Model } // namespace CloudFront } // namespace Aws