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

A complex type that describes the Amazon S3 bucket, HTTP server (for example, * a web server), Amazon Elemental MediaStore, or other server from which * CloudFront gets your files.

See Also:

AWS * API Reference

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

Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you want * CloudFront to get objects for this origin.

*/ inline const Aws::String& GetDomainName() const{ return m_domainName; } /** *

Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you want * CloudFront to get objects for this origin.

*/ inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; } /** *

Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you want * CloudFront to get objects for this origin.

*/ inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; } /** *

Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you want * CloudFront to get objects for this origin.

*/ inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); } /** *

Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you want * CloudFront to get objects for this origin.

*/ inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); } /** *

Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you want * CloudFront to get objects for this origin.

*/ inline AwsCloudFrontDistributionOriginItem& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;} /** *

Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you want * CloudFront to get objects for this origin.

*/ inline AwsCloudFrontDistributionOriginItem& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;} /** *

Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you want * CloudFront to get objects for this origin.

*/ inline AwsCloudFrontDistributionOriginItem& WithDomainName(const char* value) { SetDomainName(value); return *this;} /** *

A unique identifier for the origin or origin group.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

A unique identifier for the origin or origin group.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

A unique identifier for the origin or origin group.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

A unique identifier for the origin or origin group.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

A unique identifier for the origin or origin group.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

A unique identifier for the origin or origin group.

*/ inline AwsCloudFrontDistributionOriginItem& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

A unique identifier for the origin or origin group.

*/ inline AwsCloudFrontDistributionOriginItem& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

A unique identifier for the origin or origin group.

*/ inline AwsCloudFrontDistributionOriginItem& WithId(const char* value) { SetId(value); return *this;} /** *

An optional element that causes CloudFront to request your content from a * directory in your Amazon S3 bucket or your custom origin.

*/ inline const Aws::String& GetOriginPath() const{ return m_originPath; } /** *

An optional element that causes CloudFront to request your content from a * directory in your Amazon S3 bucket or your custom origin.

*/ inline bool OriginPathHasBeenSet() const { return m_originPathHasBeenSet; } /** *

An optional element that causes CloudFront to request your content from a * directory in your Amazon S3 bucket or your custom origin.

*/ inline void SetOriginPath(const Aws::String& value) { m_originPathHasBeenSet = true; m_originPath = value; } /** *

An optional element that causes CloudFront to request your content from a * directory in your Amazon S3 bucket or your custom origin.

*/ inline void SetOriginPath(Aws::String&& value) { m_originPathHasBeenSet = true; m_originPath = std::move(value); } /** *

An optional element that causes CloudFront to request your content from a * directory in your Amazon S3 bucket or your custom origin.

*/ inline void SetOriginPath(const char* value) { m_originPathHasBeenSet = true; m_originPath.assign(value); } /** *

An optional element that causes CloudFront to request your content from a * directory in your Amazon S3 bucket or your custom origin.

*/ inline AwsCloudFrontDistributionOriginItem& WithOriginPath(const Aws::String& value) { SetOriginPath(value); return *this;} /** *

An optional element that causes CloudFront to request your content from a * directory in your Amazon S3 bucket or your custom origin.

*/ inline AwsCloudFrontDistributionOriginItem& WithOriginPath(Aws::String&& value) { SetOriginPath(std::move(value)); return *this;} /** *

An optional element that causes CloudFront to request your content from a * directory in your Amazon S3 bucket or your custom origin.

*/ inline AwsCloudFrontDistributionOriginItem& WithOriginPath(const char* value) { SetOriginPath(value); return *this;} private: Aws::String m_domainName; bool m_domainNameHasBeenSet; Aws::String m_id; bool m_idHasBeenSet; Aws::String m_originPath; bool m_originPathHasBeenSet; }; } // namespace Model } // namespace SecurityHub } // namespace Aws