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

Contains information about a public key.

See Also:

AWS * API Reference

*/ class PublicKeySummary { public: AWS_CLOUDFRONT_API PublicKeySummary(); AWS_CLOUDFRONT_API PublicKeySummary(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDFRONT_API PublicKeySummary& 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 PublicKeySummary& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The identifier of the public key.

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

The identifier of the public key.

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

A name to help identify the public key.

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

A name to help identify the public key.

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

A name to help identify the public key.

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

A name to help identify the public key.

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

A name to help identify the public key.

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

A name to help identify the public key.

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

A name to help identify the public key.

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

A name to help identify the public key.

*/ inline PublicKeySummary& WithName(const char* value) { SetName(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 PublicKeySummary& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;} /** *

The date and time when the public key was uploaded.

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

The public key.

*/ inline const Aws::String& GetEncodedKey() const{ return m_encodedKey; } /** *

The public key.

*/ inline bool EncodedKeyHasBeenSet() const { return m_encodedKeyHasBeenSet; } /** *

The public key.

*/ inline void SetEncodedKey(const Aws::String& value) { m_encodedKeyHasBeenSet = true; m_encodedKey = value; } /** *

The public key.

*/ inline void SetEncodedKey(Aws::String&& value) { m_encodedKeyHasBeenSet = true; m_encodedKey = std::move(value); } /** *

The public key.

*/ inline void SetEncodedKey(const char* value) { m_encodedKeyHasBeenSet = true; m_encodedKey.assign(value); } /** *

The public key.

*/ inline PublicKeySummary& WithEncodedKey(const Aws::String& value) { SetEncodedKey(value); return *this;} /** *

The public key.

*/ inline PublicKeySummary& WithEncodedKey(Aws::String&& value) { SetEncodedKey(std::move(value)); return *this;} /** *

The public key.

*/ inline PublicKeySummary& WithEncodedKey(const char* value) { SetEncodedKey(value); return *this;} /** *

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

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

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

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

A comment to describe the public key. 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 public key. 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 public key. 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 public key. The comment cannot be longer than 128 * characters.

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

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

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

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

*/ inline PublicKeySummary& WithComment(const char* value) { SetComment(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Utils::DateTime m_createdTime; bool m_createdTimeHasBeenSet = false; Aws::String m_encodedKey; bool m_encodedKeyHasBeenSet = false; Aws::String m_comment; bool m_commentHasBeenSet = false; }; } // namespace Model } // namespace CloudFront } // namespace Aws