/** * 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 Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

Information about an origin that is an Amazon S3 bucket that is not * configured with static website hosting.

See Also:

AWS * API Reference

*/ class AwsCloudFrontDistributionOriginS3OriginConfig { public: AWS_SECURITYHUB_API AwsCloudFrontDistributionOriginS3OriginConfig(); AWS_SECURITYHUB_API AwsCloudFrontDistributionOriginS3OriginConfig(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsCloudFrontDistributionOriginS3OriginConfig& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The CloudFront origin access identity to associate with the origin.

*/ inline const Aws::String& GetOriginAccessIdentity() const{ return m_originAccessIdentity; } /** *

The CloudFront origin access identity to associate with the origin.

*/ inline bool OriginAccessIdentityHasBeenSet() const { return m_originAccessIdentityHasBeenSet; } /** *

The CloudFront origin access identity to associate with the origin.

*/ inline void SetOriginAccessIdentity(const Aws::String& value) { m_originAccessIdentityHasBeenSet = true; m_originAccessIdentity = value; } /** *

The CloudFront origin access identity to associate with the origin.

*/ inline void SetOriginAccessIdentity(Aws::String&& value) { m_originAccessIdentityHasBeenSet = true; m_originAccessIdentity = std::move(value); } /** *

The CloudFront origin access identity to associate with the origin.

*/ inline void SetOriginAccessIdentity(const char* value) { m_originAccessIdentityHasBeenSet = true; m_originAccessIdentity.assign(value); } /** *

The CloudFront origin access identity to associate with the origin.

*/ inline AwsCloudFrontDistributionOriginS3OriginConfig& WithOriginAccessIdentity(const Aws::String& value) { SetOriginAccessIdentity(value); return *this;} /** *

The CloudFront origin access identity to associate with the origin.

*/ inline AwsCloudFrontDistributionOriginS3OriginConfig& WithOriginAccessIdentity(Aws::String&& value) { SetOriginAccessIdentity(std::move(value)); return *this;} /** *

The CloudFront origin access identity to associate with the origin.

*/ inline AwsCloudFrontDistributionOriginS3OriginConfig& WithOriginAccessIdentity(const char* value) { SetOriginAccessIdentity(value); return *this;} private: Aws::String m_originAccessIdentity; bool m_originAccessIdentityHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws