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

A complex data type that includes the profile configurations specified for * field-level encryption.

See Also:

AWS * API Reference

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

A unique number that ensures the request can't be replayed.

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

A unique number that ensures the request can't be replayed.

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

A unique number that ensures the request can't be replayed.

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

A unique number that ensures 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 the request can't be replayed.

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

A unique number that ensures the request can't be replayed.

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

A unique number that ensures the request can't be replayed.

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

A unique number that ensures the request can't be replayed.

*/ inline FieldLevelEncryptionConfig& WithCallerReference(const char* value) { SetCallerReference(value); return *this;} /** *

An optional comment about the configuration. The comment cannot be longer * than 128 characters.

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

An optional comment about the configuration. The comment cannot be longer * than 128 characters.

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

An optional comment about the configuration. The comment cannot be longer * than 128 characters.

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

An optional comment about the configuration. The comment cannot be longer * than 128 characters.

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

An optional comment about the configuration. The comment cannot be longer * than 128 characters.

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

An optional comment about the configuration. The comment cannot be longer * than 128 characters.

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

An optional comment about the configuration. The comment cannot be longer * than 128 characters.

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

An optional comment about the configuration. The comment cannot be longer * than 128 characters.

*/ inline FieldLevelEncryptionConfig& WithComment(const char* value) { SetComment(value); return *this;} /** *

A complex data type that specifies when to forward content if a profile isn't * found and the profile that can be provided as a query argument in a request.

*/ inline const QueryArgProfileConfig& GetQueryArgProfileConfig() const{ return m_queryArgProfileConfig; } /** *

A complex data type that specifies when to forward content if a profile isn't * found and the profile that can be provided as a query argument in a request.

*/ inline bool QueryArgProfileConfigHasBeenSet() const { return m_queryArgProfileConfigHasBeenSet; } /** *

A complex data type that specifies when to forward content if a profile isn't * found and the profile that can be provided as a query argument in a request.

*/ inline void SetQueryArgProfileConfig(const QueryArgProfileConfig& value) { m_queryArgProfileConfigHasBeenSet = true; m_queryArgProfileConfig = value; } /** *

A complex data type that specifies when to forward content if a profile isn't * found and the profile that can be provided as a query argument in a request.

*/ inline void SetQueryArgProfileConfig(QueryArgProfileConfig&& value) { m_queryArgProfileConfigHasBeenSet = true; m_queryArgProfileConfig = std::move(value); } /** *

A complex data type that specifies when to forward content if a profile isn't * found and the profile that can be provided as a query argument in a request.

*/ inline FieldLevelEncryptionConfig& WithQueryArgProfileConfig(const QueryArgProfileConfig& value) { SetQueryArgProfileConfig(value); return *this;} /** *

A complex data type that specifies when to forward content if a profile isn't * found and the profile that can be provided as a query argument in a request.

*/ inline FieldLevelEncryptionConfig& WithQueryArgProfileConfig(QueryArgProfileConfig&& value) { SetQueryArgProfileConfig(std::move(value)); return *this;} /** *

A complex data type that specifies when to forward content if a content type * isn't recognized and profiles to use as by default in a request if a query * argument doesn't specify a profile to use.

*/ inline const ContentTypeProfileConfig& GetContentTypeProfileConfig() const{ return m_contentTypeProfileConfig; } /** *

A complex data type that specifies when to forward content if a content type * isn't recognized and profiles to use as by default in a request if a query * argument doesn't specify a profile to use.

*/ inline bool ContentTypeProfileConfigHasBeenSet() const { return m_contentTypeProfileConfigHasBeenSet; } /** *

A complex data type that specifies when to forward content if a content type * isn't recognized and profiles to use as by default in a request if a query * argument doesn't specify a profile to use.

*/ inline void SetContentTypeProfileConfig(const ContentTypeProfileConfig& value) { m_contentTypeProfileConfigHasBeenSet = true; m_contentTypeProfileConfig = value; } /** *

A complex data type that specifies when to forward content if a content type * isn't recognized and profiles to use as by default in a request if a query * argument doesn't specify a profile to use.

*/ inline void SetContentTypeProfileConfig(ContentTypeProfileConfig&& value) { m_contentTypeProfileConfigHasBeenSet = true; m_contentTypeProfileConfig = std::move(value); } /** *

A complex data type that specifies when to forward content if a content type * isn't recognized and profiles to use as by default in a request if a query * argument doesn't specify a profile to use.

*/ inline FieldLevelEncryptionConfig& WithContentTypeProfileConfig(const ContentTypeProfileConfig& value) { SetContentTypeProfileConfig(value); return *this;} /** *

A complex data type that specifies when to forward content if a content type * isn't recognized and profiles to use as by default in a request if a query * argument doesn't specify a profile to use.

*/ inline FieldLevelEncryptionConfig& WithContentTypeProfileConfig(ContentTypeProfileConfig&& value) { SetContentTypeProfileConfig(std::move(value)); return *this;} private: Aws::String m_callerReference; bool m_callerReferenceHasBeenSet = false; Aws::String m_comment; bool m_commentHasBeenSet = false; QueryArgProfileConfig m_queryArgProfileConfig; bool m_queryArgProfileConfigHasBeenSet = false; ContentTypeProfileConfig m_contentTypeProfileConfig; bool m_contentTypeProfileConfigHasBeenSet = false; }; } // namespace Model } // namespace CloudFront } // namespace Aws