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

Contains information about the S3 resource. This data type is used as a * request parameter in the DisassociateS3Resources action and can be used as a * response parameter in the AssociateS3Resources and UpdateS3Resources actions. *

See Also:

AWS * API Reference

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

The name of the S3 bucket.

*/ inline const Aws::String& GetBucketName() const{ return m_bucketName; } /** *

The name of the S3 bucket.

*/ inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; } /** *

The name of the S3 bucket.

*/ inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; } /** *

The name of the S3 bucket.

*/ inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); } /** *

The name of the S3 bucket.

*/ inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); } /** *

The name of the S3 bucket.

*/ inline S3Resource& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;} /** *

The name of the S3 bucket.

*/ inline S3Resource& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;} /** *

The name of the S3 bucket.

*/ inline S3Resource& WithBucketName(const char* value) { SetBucketName(value); return *this;} /** *

The prefix of the S3 bucket.

*/ inline const Aws::String& GetPrefix() const{ return m_prefix; } /** *

The prefix of the S3 bucket.

*/ inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; } /** *

The prefix of the S3 bucket.

*/ inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; } /** *

The prefix of the S3 bucket.

*/ inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); } /** *

The prefix of the S3 bucket.

*/ inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); } /** *

The prefix of the S3 bucket.

*/ inline S3Resource& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;} /** *

The prefix of the S3 bucket.

*/ inline S3Resource& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;} /** *

The prefix of the S3 bucket.

*/ inline S3Resource& WithPrefix(const char* value) { SetPrefix(value); return *this;} private: Aws::String m_bucketName; bool m_bucketNameHasBeenSet; Aws::String m_prefix; bool m_prefixHasBeenSet; }; } // namespace Model } // namespace Macie } // namespace Aws