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

Contains information on the S3 bucket.

See Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of the S3 bucket.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the S3 bucket.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the S3 bucket.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon Resource Name (ARN) of the S3 bucket.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the S3 bucket.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the S3 bucket.

*/ inline S3BucketDetail& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the S3 bucket.

*/ inline S3BucketDetail& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the S3 bucket.

*/ inline S3BucketDetail& WithArn(const char* value) { SetArn(value); return *this;} /** *

The name of the S3 bucket.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the S3 bucket.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the S3 bucket.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the S3 bucket.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the S3 bucket.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the S3 bucket.

*/ inline S3BucketDetail& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the S3 bucket.

*/ inline S3BucketDetail& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the S3 bucket.

*/ inline S3BucketDetail& WithName(const char* value) { SetName(value); return *this;} /** *

Describes whether the bucket is a source or destination bucket.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

Describes whether the bucket is a source or destination bucket.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

Describes whether the bucket is a source or destination bucket.

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

Describes whether the bucket is a source or destination bucket.

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

Describes whether the bucket is a source or destination bucket.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

Describes whether the bucket is a source or destination bucket.

*/ inline S3BucketDetail& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

Describes whether the bucket is a source or destination bucket.

*/ inline S3BucketDetail& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

Describes whether the bucket is a source or destination bucket.

*/ inline S3BucketDetail& WithType(const char* value) { SetType(value); return *this;} /** *

The date and time the bucket was created at.

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

The date and time the bucket was created at.

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

The date and time the bucket was created at.

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

The date and time the bucket was created at.

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

The date and time the bucket was created at.

*/ inline S3BucketDetail& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The date and time the bucket was created at.

*/ inline S3BucketDetail& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The owner of the S3 bucket.

*/ inline const Owner& GetOwner() const{ return m_owner; } /** *

The owner of the S3 bucket.

*/ inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; } /** *

The owner of the S3 bucket.

*/ inline void SetOwner(const Owner& value) { m_ownerHasBeenSet = true; m_owner = value; } /** *

The owner of the S3 bucket.

*/ inline void SetOwner(Owner&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); } /** *

The owner of the S3 bucket.

*/ inline S3BucketDetail& WithOwner(const Owner& value) { SetOwner(value); return *this;} /** *

The owner of the S3 bucket.

*/ inline S3BucketDetail& WithOwner(Owner&& value) { SetOwner(std::move(value)); return *this;} /** *

All tags attached to the S3 bucket

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

All tags attached to the S3 bucket

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

All tags attached to the S3 bucket

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

All tags attached to the S3 bucket

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

All tags attached to the S3 bucket

*/ inline S3BucketDetail& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

All tags attached to the S3 bucket

*/ inline S3BucketDetail& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

All tags attached to the S3 bucket

*/ inline S3BucketDetail& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

All tags attached to the S3 bucket

*/ inline S3BucketDetail& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

Describes the server side encryption method used in the S3 bucket.

*/ inline const DefaultServerSideEncryption& GetDefaultServerSideEncryption() const{ return m_defaultServerSideEncryption; } /** *

Describes the server side encryption method used in the S3 bucket.

*/ inline bool DefaultServerSideEncryptionHasBeenSet() const { return m_defaultServerSideEncryptionHasBeenSet; } /** *

Describes the server side encryption method used in the S3 bucket.

*/ inline void SetDefaultServerSideEncryption(const DefaultServerSideEncryption& value) { m_defaultServerSideEncryptionHasBeenSet = true; m_defaultServerSideEncryption = value; } /** *

Describes the server side encryption method used in the S3 bucket.

*/ inline void SetDefaultServerSideEncryption(DefaultServerSideEncryption&& value) { m_defaultServerSideEncryptionHasBeenSet = true; m_defaultServerSideEncryption = std::move(value); } /** *

Describes the server side encryption method used in the S3 bucket.

*/ inline S3BucketDetail& WithDefaultServerSideEncryption(const DefaultServerSideEncryption& value) { SetDefaultServerSideEncryption(value); return *this;} /** *

Describes the server side encryption method used in the S3 bucket.

*/ inline S3BucketDetail& WithDefaultServerSideEncryption(DefaultServerSideEncryption&& value) { SetDefaultServerSideEncryption(std::move(value)); return *this;} /** *

Describes the public access policies that apply to the S3 bucket.

*/ inline const PublicAccess& GetPublicAccess() const{ return m_publicAccess; } /** *

Describes the public access policies that apply to the S3 bucket.

*/ inline bool PublicAccessHasBeenSet() const { return m_publicAccessHasBeenSet; } /** *

Describes the public access policies that apply to the S3 bucket.

*/ inline void SetPublicAccess(const PublicAccess& value) { m_publicAccessHasBeenSet = true; m_publicAccess = value; } /** *

Describes the public access policies that apply to the S3 bucket.

*/ inline void SetPublicAccess(PublicAccess&& value) { m_publicAccessHasBeenSet = true; m_publicAccess = std::move(value); } /** *

Describes the public access policies that apply to the S3 bucket.

*/ inline S3BucketDetail& WithPublicAccess(const PublicAccess& value) { SetPublicAccess(value); return *this;} /** *

Describes the public access policies that apply to the S3 bucket.

*/ inline S3BucketDetail& WithPublicAccess(PublicAccess&& value) { SetPublicAccess(std::move(value)); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Owner m_owner; bool m_ownerHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; DefaultServerSideEncryption m_defaultServerSideEncryption; bool m_defaultServerSideEncryptionHasBeenSet = false; PublicAccess m_publicAccess; bool m_publicAccessHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws