/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The request to create a new origin access identity (OAI). An origin access
* identity is a special CloudFront user that you can associate with Amazon S3
* origins, so that you can secure all or just some of your Amazon S3 content. For
* more information, see
* Restricting Access to Amazon S3 Content by Using an Origin Access Identity
* in the Amazon CloudFront Developer Guide.See Also:
AWS
* API Reference
The current configuration information for the identity.
*/ inline const CloudFrontOriginAccessIdentityConfig& GetCloudFrontOriginAccessIdentityConfig() const{ return m_cloudFrontOriginAccessIdentityConfig; } /** *The current configuration information for the identity.
*/ inline bool CloudFrontOriginAccessIdentityConfigHasBeenSet() const { return m_cloudFrontOriginAccessIdentityConfigHasBeenSet; } /** *The current configuration information for the identity.
*/ inline void SetCloudFrontOriginAccessIdentityConfig(const CloudFrontOriginAccessIdentityConfig& value) { m_cloudFrontOriginAccessIdentityConfigHasBeenSet = true; m_cloudFrontOriginAccessIdentityConfig = value; } /** *The current configuration information for the identity.
*/ inline void SetCloudFrontOriginAccessIdentityConfig(CloudFrontOriginAccessIdentityConfig&& value) { m_cloudFrontOriginAccessIdentityConfigHasBeenSet = true; m_cloudFrontOriginAccessIdentityConfig = std::move(value); } /** *The current configuration information for the identity.
*/ inline CreateCloudFrontOriginAccessIdentity2020_05_31Request& WithCloudFrontOriginAccessIdentityConfig(const CloudFrontOriginAccessIdentityConfig& value) { SetCloudFrontOriginAccessIdentityConfig(value); return *this;} /** *The current configuration information for the identity.
*/ inline CreateCloudFrontOriginAccessIdentity2020_05_31Request& WithCloudFrontOriginAccessIdentityConfig(CloudFrontOriginAccessIdentityConfig&& value) { SetCloudFrontOriginAccessIdentityConfig(std::move(value)); return *this;} private: CloudFrontOriginAccessIdentityConfig m_cloudFrontOriginAccessIdentityConfig; bool m_cloudFrontOriginAccessIdentityConfigHasBeenSet = false; }; } // namespace Model } // namespace CloudFront } // namespace Aws