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

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

*/ class CreateCloudFrontOriginAccessIdentity2020_05_31Request : public CloudFrontRequest { public: AWS_CLOUDFRONT_API CreateCloudFrontOriginAccessIdentity2020_05_31Request(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateCloudFrontOriginAccessIdentity"; } AWS_CLOUDFRONT_API Aws::String SerializePayload() const override; /** *

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