/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

The details of an Amazon S3 bucket.

See Also:

AWS * API Reference

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

The canonical user ID of the owner of the S3 bucket.

*/ inline const Aws::String& GetOwnerId() const{ return m_ownerId; } /** *

The canonical user ID of the owner of the S3 bucket.

*/ inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; } /** *

The canonical user ID of the owner of the S3 bucket.

*/ inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; } /** *

The canonical user ID of the owner of the S3 bucket.

*/ inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); } /** *

The canonical user ID of the owner of the S3 bucket.

*/ inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); } /** *

The canonical user ID of the owner of the S3 bucket.

*/ inline AwsS3BucketDetails& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;} /** *

The canonical user ID of the owner of the S3 bucket.

*/ inline AwsS3BucketDetails& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;} /** *

The canonical user ID of the owner of the S3 bucket.

*/ inline AwsS3BucketDetails& WithOwnerId(const char* value) { SetOwnerId(value); return *this;} /** *

The display name of the owner of the S3 bucket.

*/ inline const Aws::String& GetOwnerName() const{ return m_ownerName; } /** *

The display name of the owner of the S3 bucket.

*/ inline bool OwnerNameHasBeenSet() const { return m_ownerNameHasBeenSet; } /** *

The display name of the owner of the S3 bucket.

*/ inline void SetOwnerName(const Aws::String& value) { m_ownerNameHasBeenSet = true; m_ownerName = value; } /** *

The display name of the owner of the S3 bucket.

*/ inline void SetOwnerName(Aws::String&& value) { m_ownerNameHasBeenSet = true; m_ownerName = std::move(value); } /** *

The display name of the owner of the S3 bucket.

*/ inline void SetOwnerName(const char* value) { m_ownerNameHasBeenSet = true; m_ownerName.assign(value); } /** *

The display name of the owner of the S3 bucket.

*/ inline AwsS3BucketDetails& WithOwnerName(const Aws::String& value) { SetOwnerName(value); return *this;} /** *

The display name of the owner of the S3 bucket.

*/ inline AwsS3BucketDetails& WithOwnerName(Aws::String&& value) { SetOwnerName(std::move(value)); return *this;} /** *

The display name of the owner of the S3 bucket.

*/ inline AwsS3BucketDetails& WithOwnerName(const char* value) { SetOwnerName(value); return *this;} /** *

Indicates when the S3 bucket was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces. For example, * 2020-03-22T13:22:13.933Z.

*/ inline const Aws::String& GetCreatedAt() const{ return m_createdAt; } /** *

Indicates when the S3 bucket was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces. For example, * 2020-03-22T13:22:13.933Z.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

Indicates when the S3 bucket was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces. For example, * 2020-03-22T13:22:13.933Z.

*/ inline void SetCreatedAt(const Aws::String& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

Indicates when the S3 bucket was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces. For example, * 2020-03-22T13:22:13.933Z.

*/ inline void SetCreatedAt(Aws::String&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

Indicates when the S3 bucket was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces. For example, * 2020-03-22T13:22:13.933Z.

*/ inline void SetCreatedAt(const char* value) { m_createdAtHasBeenSet = true; m_createdAt.assign(value); } /** *

Indicates when the S3 bucket was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces. For example, * 2020-03-22T13:22:13.933Z.

*/ inline AwsS3BucketDetails& WithCreatedAt(const Aws::String& value) { SetCreatedAt(value); return *this;} /** *

Indicates when the S3 bucket was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces. For example, * 2020-03-22T13:22:13.933Z.

*/ inline AwsS3BucketDetails& WithCreatedAt(Aws::String&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

Indicates when the S3 bucket was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces. For example, * 2020-03-22T13:22:13.933Z.

*/ inline AwsS3BucketDetails& WithCreatedAt(const char* value) { SetCreatedAt(value); return *this;} /** *

The encryption rules that are applied to the S3 bucket.

*/ inline const AwsS3BucketServerSideEncryptionConfiguration& GetServerSideEncryptionConfiguration() const{ return m_serverSideEncryptionConfiguration; } /** *

The encryption rules that are applied to the S3 bucket.

*/ inline bool ServerSideEncryptionConfigurationHasBeenSet() const { return m_serverSideEncryptionConfigurationHasBeenSet; } /** *

The encryption rules that are applied to the S3 bucket.

*/ inline void SetServerSideEncryptionConfiguration(const AwsS3BucketServerSideEncryptionConfiguration& value) { m_serverSideEncryptionConfigurationHasBeenSet = true; m_serverSideEncryptionConfiguration = value; } /** *

The encryption rules that are applied to the S3 bucket.

*/ inline void SetServerSideEncryptionConfiguration(AwsS3BucketServerSideEncryptionConfiguration&& value) { m_serverSideEncryptionConfigurationHasBeenSet = true; m_serverSideEncryptionConfiguration = std::move(value); } /** *

The encryption rules that are applied to the S3 bucket.

*/ inline AwsS3BucketDetails& WithServerSideEncryptionConfiguration(const AwsS3BucketServerSideEncryptionConfiguration& value) { SetServerSideEncryptionConfiguration(value); return *this;} /** *

The encryption rules that are applied to the S3 bucket.

*/ inline AwsS3BucketDetails& WithServerSideEncryptionConfiguration(AwsS3BucketServerSideEncryptionConfiguration&& value) { SetServerSideEncryptionConfiguration(std::move(value)); return *this;} private: Aws::String m_ownerId; bool m_ownerIdHasBeenSet; Aws::String m_ownerName; bool m_ownerNameHasBeenSet; Aws::String m_createdAt; bool m_createdAtHasBeenSet; AwsS3BucketServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration; bool m_serverSideEncryptionConfigurationHasBeenSet; }; } // namespace Model } // namespace SecurityHub } // namespace Aws