/** * 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 public key that you can use with signed * URLs and signed cookies, or with field-level * encryption.

See Also:

AWS * API Reference

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

The identifier of the public key.

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

The identifier of the public key.

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

The identifier of the public key.

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

The identifier of the public key.

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

The identifier of the public key.

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

The identifier of the public key.

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

The identifier of the public key.

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

The identifier of the public key.

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

The date and time when the public key was uploaded.

*/ inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; } /** *

The date and time when the public key was uploaded.

*/ inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; } /** *

The date and time when the public key was uploaded.

*/ inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; } /** *

The date and time when the public key was uploaded.

*/ inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); } /** *

The date and time when the public key was uploaded.

*/ inline PublicKey& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;} /** *

The date and time when the public key was uploaded.

*/ inline PublicKey& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;} /** *

Configuration information about a public key that you can use with signed * URLs and signed cookies, or with field-level * encryption.

*/ inline const PublicKeyConfig& GetPublicKeyConfig() const{ return m_publicKeyConfig; } /** *

Configuration information about a public key that you can use with signed * URLs and signed cookies, or with field-level * encryption.

*/ inline bool PublicKeyConfigHasBeenSet() const { return m_publicKeyConfigHasBeenSet; } /** *

Configuration information about a public key that you can use with signed * URLs and signed cookies, or with field-level * encryption.

*/ inline void SetPublicKeyConfig(const PublicKeyConfig& value) { m_publicKeyConfigHasBeenSet = true; m_publicKeyConfig = value; } /** *

Configuration information about a public key that you can use with signed * URLs and signed cookies, or with field-level * encryption.

*/ inline void SetPublicKeyConfig(PublicKeyConfig&& value) { m_publicKeyConfigHasBeenSet = true; m_publicKeyConfig = std::move(value); } /** *

Configuration information about a public key that you can use with signed * URLs and signed cookies, or with field-level * encryption.

*/ inline PublicKey& WithPublicKeyConfig(const PublicKeyConfig& value) { SetPublicKeyConfig(value); return *this;} /** *

Configuration information about a public key that you can use with signed * URLs and signed cookies, or with field-level * encryption.

*/ inline PublicKey& WithPublicKeyConfig(PublicKeyConfig&& value) { SetPublicKeyConfig(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::Utils::DateTime m_createdTime; bool m_createdTimeHasBeenSet = false; PublicKeyConfig m_publicKeyConfig; bool m_publicKeyConfigHasBeenSet = false; }; } // namespace Model } // namespace CloudFront } // namespace Aws