/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace CloudFront { namespace Model { /** *

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

See Also:

AWS * API Reference

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

A string included in the request to help make sure that the request can't be * replayed.

*/ inline const Aws::String& GetCallerReference() const{ return m_callerReference; } /** *

A string included in the request to help make sure that the request can't be * replayed.

*/ inline bool CallerReferenceHasBeenSet() const { return m_callerReferenceHasBeenSet; } /** *

A string included in the request to help make sure that the request can't be * replayed.

*/ inline void SetCallerReference(const Aws::String& value) { m_callerReferenceHasBeenSet = true; m_callerReference = value; } /** *

A string included in the request to help make sure that the request can't be * replayed.

*/ inline void SetCallerReference(Aws::String&& value) { m_callerReferenceHasBeenSet = true; m_callerReference = std::move(value); } /** *

A string included in the request to help make sure that the request can't be * replayed.

*/ inline void SetCallerReference(const char* value) { m_callerReferenceHasBeenSet = true; m_callerReference.assign(value); } /** *

A string included in the request to help make sure that the request can't be * replayed.

*/ inline PublicKeyConfig& WithCallerReference(const Aws::String& value) { SetCallerReference(value); return *this;} /** *

A string included in the request to help make sure that the request can't be * replayed.

*/ inline PublicKeyConfig& WithCallerReference(Aws::String&& value) { SetCallerReference(std::move(value)); return *this;} /** *

A string included in the request to help make sure that the request can't be * replayed.

*/ inline PublicKeyConfig& WithCallerReference(const char* value) { SetCallerReference(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 PublicKeyConfig& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

A name to help identify the public key.

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

A name to help identify the public key.

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

The public key that you can use with signed * URLs and signed cookies, or with field-level * encryption.

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

The public key that you can use with signed * URLs and signed cookies, or with field-level * encryption.

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

The public key that you can use with signed * URLs and signed cookies, or with field-level * encryption.

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

The public key that you can use with signed * URLs and signed cookies, or with field-level * encryption.

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

The public key that you can use with signed * URLs and signed cookies, or with field-level * encryption.

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

The public key that you can use with signed * URLs and signed cookies, or with field-level * encryption.

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

The public key that you can use with signed * URLs and signed cookies, or with field-level * encryption.

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

The public key that you can use with signed * URLs and signed cookies, or with field-level * encryption.

*/ inline PublicKeyConfig& 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 PublicKeyConfig& 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 PublicKeyConfig& 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 PublicKeyConfig& WithComment(const char* value) { SetComment(value); return *this;} private: Aws::String m_callerReference; bool m_callerReferenceHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_encodedKey; bool m_encodedKeyHasBeenSet = false; Aws::String m_comment; bool m_commentHasBeenSet = false; }; } // namespace Model } // namespace CloudFront } // namespace Aws