/** * 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 complex data type of public keys you add to CloudFront to use with features * like field-level encryption.

See Also:

AWS * API Reference

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

A unique ID assigned to a public key you've added to CloudFront.

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

A unique ID assigned to a public key you've added to CloudFront.

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

A unique ID assigned to a public key you've added to CloudFront.

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

A unique ID assigned to a public key you've added to CloudFront.

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

A unique ID assigned to a public key you've added to CloudFront.

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

A unique ID assigned to a public key you've added to CloudFront.

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

A unique ID assigned to a public key you've added to CloudFront.

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

A unique ID assigned to a public key you've added to CloudFront.

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

A time you added a public key to CloudFront.

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

A time you added a public key to CloudFront.

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

A time you added a public key to CloudFront.

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

A time you added a public key to CloudFront.

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

A time you added a public key to CloudFront.

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

A time you added a public key to CloudFront.

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

A complex data type for a public key you add to CloudFront to use with * features like field-level encryption.

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

A complex data type for a public key you add to CloudFront to use with * features like field-level encryption.

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

A complex data type for a public key you add to CloudFront to use with * features like field-level encryption.

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

A complex data type for a public key you add to CloudFront to use with * features like field-level encryption.

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

A complex data type for a public key you add to CloudFront to use with * features like field-level encryption.

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

A complex data type for a public key you add to CloudFront to use with * features like field-level encryption.

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