/** * 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 complex data type for public key information.

See Also:

* AWS * API Reference

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

ID for public key information summary.

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

ID for public key information summary.

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

ID for public key information summary.

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

ID for public key information summary.

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

ID for public key information summary.

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

ID for public key information summary.

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

ID for public key information summary.

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

ID for public key information summary.

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

Name for public key information summary.

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

Name for public key information summary.

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

Name for public key information summary.

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

Name for public key information summary.

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

Name for public key information summary.

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

Name for public key information summary.

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

Name for public key information summary.

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

Name for public key information summary.

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

Creation time for public key information summary.

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

Creation time for public key information summary.

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

Creation time for public key information summary.

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

Creation time for public key information summary.

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

Creation time for public key information summary.

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

Creation time for public key information summary.

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

Encoded key for public key information summary.

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

Encoded key for public key information summary.

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

Encoded key for public key information summary.

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

Encoded key for public key information summary.

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

Encoded key for public key information summary.

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

Encoded key for public key information summary.

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

Encoded key for public key information summary.

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

Encoded key for public key information summary.

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

Comment for public key information summary.

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

Comment for public key information summary.

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

Comment for public key information summary.

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

Comment for public key information summary.

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

Comment for public key information summary.

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

Comment for public key information summary.

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

Comment for public key information summary.

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

Comment for public key information summary.

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