/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about a public key you add to CloudFront to use with features
* like field-level encryption.See Also:
AWS
* API Reference
A unique number that ensures that the request can't be replayed.
*/ inline const Aws::String& GetCallerReference() const{ return m_callerReference; } /** *A unique number that ensures that the request can't be replayed.
*/ inline bool CallerReferenceHasBeenSet() const { return m_callerReferenceHasBeenSet; } /** *A unique number that ensures that the request can't be replayed.
*/ inline void SetCallerReference(const Aws::String& value) { m_callerReferenceHasBeenSet = true; m_callerReference = value; } /** *A unique number that ensures that the request can't be replayed.
*/ inline void SetCallerReference(Aws::String&& value) { m_callerReferenceHasBeenSet = true; m_callerReference = std::move(value); } /** *A unique number that ensures that the request can't be replayed.
*/ inline void SetCallerReference(const char* value) { m_callerReferenceHasBeenSet = true; m_callerReference.assign(value); } /** *A unique number that ensures that the request can't be replayed.
*/ inline PublicKeyConfig& WithCallerReference(const Aws::String& value) { SetCallerReference(value); return *this;} /** *A unique number that ensures that the request can't be replayed.
*/ inline PublicKeyConfig& WithCallerReference(Aws::String&& value) { SetCallerReference(std::move(value)); return *this;} /** *A unique number that ensures that the request can't be replayed.
*/ inline PublicKeyConfig& WithCallerReference(const char* value) { SetCallerReference(value); return *this;} /** *The name for a public key you add to CloudFront to use with features like * field-level encryption.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name for a public key you add to CloudFront to use with features like * field-level encryption.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name for a public key you add to CloudFront to use with features like * field-level encryption.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name for a public key you add to CloudFront to use with features like * field-level encryption.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name for a public key you add to CloudFront to use with features like * field-level encryption.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name for a public key you add to CloudFront to use with features like * field-level encryption.
*/ inline PublicKeyConfig& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name for a public key you add to CloudFront to use with features like * field-level encryption.
*/ inline PublicKeyConfig& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name for a public key you add to CloudFront to use with features like * field-level encryption.
*/ inline PublicKeyConfig& WithName(const char* value) { SetName(value); return *this;} /** *The encoded public key that you want to add to CloudFront to use with * features like field-level encryption.
*/ inline const Aws::String& GetEncodedKey() const{ return m_encodedKey; } /** *The encoded public key that you want to add to CloudFront to use with * features like field-level encryption.
*/ inline bool EncodedKeyHasBeenSet() const { return m_encodedKeyHasBeenSet; } /** *The encoded public key that you want to add to CloudFront to use with * features like field-level encryption.
*/ inline void SetEncodedKey(const Aws::String& value) { m_encodedKeyHasBeenSet = true; m_encodedKey = value; } /** *The encoded public key that you want to add to CloudFront to use with * features like field-level encryption.
*/ inline void SetEncodedKey(Aws::String&& value) { m_encodedKeyHasBeenSet = true; m_encodedKey = std::move(value); } /** *The encoded public key that you want to add to CloudFront to use with * features like field-level encryption.
*/ inline void SetEncodedKey(const char* value) { m_encodedKeyHasBeenSet = true; m_encodedKey.assign(value); } /** *The encoded public key that you want to add to CloudFront to use with * features like field-level encryption.
*/ inline PublicKeyConfig& WithEncodedKey(const Aws::String& value) { SetEncodedKey(value); return *this;} /** *The encoded public key that you want to add to CloudFront to use with * features like field-level encryption.
*/ inline PublicKeyConfig& WithEncodedKey(Aws::String&& value) { SetEncodedKey(std::move(value)); return *this;} /** *The encoded public key that you want to add to CloudFront to use with * features like field-level encryption.
*/ inline PublicKeyConfig& WithEncodedKey(const char* value) { SetEncodedKey(value); return *this;} /** *An optional comment about a public key.
*/ inline const Aws::String& GetComment() const{ return m_comment; } /** *An optional comment about a public key.
*/ inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; } /** *An optional comment about a public key.
*/ inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; } /** *An optional comment about a public key.
*/ inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); } /** *An optional comment about a public key.
*/ inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); } /** *An optional comment about a public key.
*/ inline PublicKeyConfig& WithComment(const Aws::String& value) { SetComment(value); return *this;} /** *An optional comment about a public key.
*/ inline PublicKeyConfig& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;} /** *An optional comment about a public key.
*/ inline PublicKeyConfig& WithComment(const char* value) { SetComment(value); return *this;} private: Aws::String m_callerReference; bool m_callerReferenceHasBeenSet; Aws::String m_name; bool m_nameHasBeenSet; Aws::String m_encodedKey; bool m_encodedKeyHasBeenSet; Aws::String m_comment; bool m_commentHasBeenSet; }; } // namespace Model } // namespace CloudFront } // namespace Aws