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

Amazon S3 logging configuration.

See Also:

AWS * API Reference

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

The S3 bucket in which to store the logs.

*/ inline const Aws::String& GetS3BucketName() const{ return m_s3BucketName; } /** *

The S3 bucket in which to store the logs.

*/ inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; } /** *

The S3 bucket in which to store the logs.

*/ inline void SetS3BucketName(const Aws::String& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = value; } /** *

The S3 bucket in which to store the logs.

*/ inline void SetS3BucketName(Aws::String&& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = std::move(value); } /** *

The S3 bucket in which to store the logs.

*/ inline void SetS3BucketName(const char* value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName.assign(value); } /** *

The S3 bucket in which to store the logs.

*/ inline S3Logs& WithS3BucketName(const Aws::String& value) { SetS3BucketName(value); return *this;} /** *

The S3 bucket in which to store the logs.

*/ inline S3Logs& WithS3BucketName(Aws::String&& value) { SetS3BucketName(std::move(value)); return *this;} /** *

The S3 bucket in which to store the logs.

*/ inline S3Logs& WithS3BucketName(const char* value) { SetS3BucketName(value); return *this;} /** *

The Amazon S3 path to the bucket where the logs are stored.

*/ inline const Aws::String& GetS3KeyPrefix() const{ return m_s3KeyPrefix; } /** *

The Amazon S3 path to the bucket where the logs are stored.

*/ inline bool S3KeyPrefixHasBeenSet() const { return m_s3KeyPrefixHasBeenSet; } /** *

The Amazon S3 path to the bucket where the logs are stored.

*/ inline void SetS3KeyPrefix(const Aws::String& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = value; } /** *

The Amazon S3 path to the bucket where the logs are stored.

*/ inline void SetS3KeyPrefix(Aws::String&& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = std::move(value); } /** *

The Amazon S3 path to the bucket where the logs are stored.

*/ inline void SetS3KeyPrefix(const char* value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix.assign(value); } /** *

The Amazon S3 path to the bucket where the logs are stored.

*/ inline S3Logs& WithS3KeyPrefix(const Aws::String& value) { SetS3KeyPrefix(value); return *this;} /** *

The Amazon S3 path to the bucket where the logs are stored.

*/ inline S3Logs& WithS3KeyPrefix(Aws::String&& value) { SetS3KeyPrefix(std::move(value)); return *this;} /** *

The Amazon S3 path to the bucket where the logs are stored.

*/ inline S3Logs& WithS3KeyPrefix(const char* value) { SetS3KeyPrefix(value); return *this;} private: Aws::String m_s3BucketName; bool m_s3BucketNameHasBeenSet = false; Aws::String m_s3KeyPrefix; bool m_s3KeyPrefixHasBeenSet = false; }; } // namespace Model } // namespace imagebuilder } // namespace Aws