/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A public key that you can use with signed
* URLs and signed cookies, or with field-level
* encryption.See Also:
AWS
* API Reference
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