/** * 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 CloudTrail { namespace Model { /** *

The import source.

See Also:

AWS * API Reference

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

The source S3 bucket.

*/ inline const S3ImportSource& GetS3() const{ return m_s3; } /** *

The source S3 bucket.

*/ inline bool S3HasBeenSet() const { return m_s3HasBeenSet; } /** *

The source S3 bucket.

*/ inline void SetS3(const S3ImportSource& value) { m_s3HasBeenSet = true; m_s3 = value; } /** *

The source S3 bucket.

*/ inline void SetS3(S3ImportSource&& value) { m_s3HasBeenSet = true; m_s3 = std::move(value); } /** *

The source S3 bucket.

*/ inline ImportSource& WithS3(const S3ImportSource& value) { SetS3(value); return *this;} /** *

The source S3 bucket.

*/ inline ImportSource& WithS3(S3ImportSource&& value) { SetS3(std::move(value)); return *this;} private: S3ImportSource m_s3; bool m_s3HasBeenSet = false; }; } // namespace Model } // namespace CloudTrail } // namespace Aws