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

Origin access identity configuration. Send a GET request to the * /CloudFront API version/CloudFront/identity ID/config * resource.

See Also:

AWS * API Reference

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

A unique value (for example, a date-time stamp) that ensures that the request * can't be replayed.

If the value of CallerReference is new * (regardless of the content of the * CloudFrontOriginAccessIdentityConfig object), a new origin access * identity is created.

If the CallerReference is a value * already sent in a previous identity request, and the content of the * CloudFrontOriginAccessIdentityConfig is identical to the original * request (ignoring white space), the response includes the same information * returned to the original request.

If the CallerReference is * a value you already sent in a previous request to create an identity, but the * content of the CloudFrontOriginAccessIdentityConfig is different * from the original request, CloudFront returns a * CloudFrontOriginAccessIdentityAlreadyExists error.

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

A unique value (for example, a date-time stamp) that ensures that the request * can't be replayed.

If the value of CallerReference is new * (regardless of the content of the * CloudFrontOriginAccessIdentityConfig object), a new origin access * identity is created.

If the CallerReference is a value * already sent in a previous identity request, and the content of the * CloudFrontOriginAccessIdentityConfig is identical to the original * request (ignoring white space), the response includes the same information * returned to the original request.

If the CallerReference is * a value you already sent in a previous request to create an identity, but the * content of the CloudFrontOriginAccessIdentityConfig is different * from the original request, CloudFront returns a * CloudFrontOriginAccessIdentityAlreadyExists error.

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

A unique value (for example, a date-time stamp) that ensures that the request * can't be replayed.

If the value of CallerReference is new * (regardless of the content of the * CloudFrontOriginAccessIdentityConfig object), a new origin access * identity is created.

If the CallerReference is a value * already sent in a previous identity request, and the content of the * CloudFrontOriginAccessIdentityConfig is identical to the original * request (ignoring white space), the response includes the same information * returned to the original request.

If the CallerReference is * a value you already sent in a previous request to create an identity, but the * content of the CloudFrontOriginAccessIdentityConfig is different * from the original request, CloudFront returns a * CloudFrontOriginAccessIdentityAlreadyExists error.

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

A unique value (for example, a date-time stamp) that ensures that the request * can't be replayed.

If the value of CallerReference is new * (regardless of the content of the * CloudFrontOriginAccessIdentityConfig object), a new origin access * identity is created.

If the CallerReference is a value * already sent in a previous identity request, and the content of the * CloudFrontOriginAccessIdentityConfig is identical to the original * request (ignoring white space), the response includes the same information * returned to the original request.

If the CallerReference is * a value you already sent in a previous request to create an identity, but the * content of the CloudFrontOriginAccessIdentityConfig is different * from the original request, CloudFront returns a * CloudFrontOriginAccessIdentityAlreadyExists error.

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

A unique value (for example, a date-time stamp) that ensures that the request * can't be replayed.

If the value of CallerReference is new * (regardless of the content of the * CloudFrontOriginAccessIdentityConfig object), a new origin access * identity is created.

If the CallerReference is a value * already sent in a previous identity request, and the content of the * CloudFrontOriginAccessIdentityConfig is identical to the original * request (ignoring white space), the response includes the same information * returned to the original request.

If the CallerReference is * a value you already sent in a previous request to create an identity, but the * content of the CloudFrontOriginAccessIdentityConfig is different * from the original request, CloudFront returns a * CloudFrontOriginAccessIdentityAlreadyExists error.

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

A unique value (for example, a date-time stamp) that ensures that the request * can't be replayed.

If the value of CallerReference is new * (regardless of the content of the * CloudFrontOriginAccessIdentityConfig object), a new origin access * identity is created.

If the CallerReference is a value * already sent in a previous identity request, and the content of the * CloudFrontOriginAccessIdentityConfig is identical to the original * request (ignoring white space), the response includes the same information * returned to the original request.

If the CallerReference is * a value you already sent in a previous request to create an identity, but the * content of the CloudFrontOriginAccessIdentityConfig is different * from the original request, CloudFront returns a * CloudFrontOriginAccessIdentityAlreadyExists error.

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

A unique value (for example, a date-time stamp) that ensures that the request * can't be replayed.

If the value of CallerReference is new * (regardless of the content of the * CloudFrontOriginAccessIdentityConfig object), a new origin access * identity is created.

If the CallerReference is a value * already sent in a previous identity request, and the content of the * CloudFrontOriginAccessIdentityConfig is identical to the original * request (ignoring white space), the response includes the same information * returned to the original request.

If the CallerReference is * a value you already sent in a previous request to create an identity, but the * content of the CloudFrontOriginAccessIdentityConfig is different * from the original request, CloudFront returns a * CloudFrontOriginAccessIdentityAlreadyExists error.

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

A unique value (for example, a date-time stamp) that ensures that the request * can't be replayed.

If the value of CallerReference is new * (regardless of the content of the * CloudFrontOriginAccessIdentityConfig object), a new origin access * identity is created.

If the CallerReference is a value * already sent in a previous identity request, and the content of the * CloudFrontOriginAccessIdentityConfig is identical to the original * request (ignoring white space), the response includes the same information * returned to the original request.

If the CallerReference is * a value you already sent in a previous request to create an identity, but the * content of the CloudFrontOriginAccessIdentityConfig is different * from the original request, CloudFront returns a * CloudFrontOriginAccessIdentityAlreadyExists error.

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

A comment to describe the origin access identity. The comment cannot be * longer than 128 characters.

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

A comment to describe the origin access identity. The comment cannot be * longer than 128 characters.

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

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

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

A comment to describe the origin access identity. The comment cannot be * longer than 128 characters.

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

A comment to describe the origin access identity. The comment cannot be * longer than 128 characters.

*/ inline CloudFrontOriginAccessIdentityConfig& WithComment(const char* value) { SetComment(value); return *this;} private: Aws::String m_callerReference; bool m_callerReferenceHasBeenSet = false; Aws::String m_comment; bool m_commentHasBeenSet = false; }; } // namespace Model } // namespace CloudFront } // namespace Aws