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

Provides a subset of information about an allow list.

See * Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of the allow list.

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

The Amazon Resource Name (ARN) of the allow list.

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

The Amazon Resource Name (ARN) of the allow list.

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

The Amazon Resource Name (ARN) of the allow list.

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

The Amazon Resource Name (ARN) of the allow list.

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

The Amazon Resource Name (ARN) of the allow list.

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

The Amazon Resource Name (ARN) of the allow list.

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

The Amazon Resource Name (ARN) of the allow list.

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

The date and time, in UTC and extended ISO 8601 format, when the allow list * was created in Amazon Macie.

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

The date and time, in UTC and extended ISO 8601 format, when the allow list * was created in Amazon Macie.

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

The date and time, in UTC and extended ISO 8601 format, when the allow list * was created in Amazon Macie.

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

The date and time, in UTC and extended ISO 8601 format, when the allow list * was created in Amazon Macie.

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

The date and time, in UTC and extended ISO 8601 format, when the allow list * was created in Amazon Macie.

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

The date and time, in UTC and extended ISO 8601 format, when the allow list * was created in Amazon Macie.

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

The custom description of the allow list.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The custom description of the allow list.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The custom description of the allow list.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The custom description of the allow list.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The custom description of the allow list.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The custom description of the allow list.

*/ inline AllowListSummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The custom description of the allow list.

*/ inline AllowListSummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The custom description of the allow list.

*/ inline AllowListSummary& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The unique identifier for the allow list.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The unique identifier for the allow list.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The unique identifier for the allow list.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The unique identifier for the allow list.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The unique identifier for the allow list.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The unique identifier for the allow list.

*/ inline AllowListSummary& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The unique identifier for the allow list.

*/ inline AllowListSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The unique identifier for the allow list.

*/ inline AllowListSummary& WithId(const char* value) { SetId(value); return *this;} /** *

The custom name of the allow list.

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

The custom name of the allow list.

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

The custom name of the allow list.

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

The custom name of the allow list.

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

The custom name of the allow list.

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

The custom name of the allow list.

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

The custom name of the allow list.

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

The custom name of the allow list.

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

The date and time, in UTC and extended ISO 8601 format, when the allow list's * settings were most recently changed in Amazon Macie.

*/ inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } /** *

The date and time, in UTC and extended ISO 8601 format, when the allow list's * settings were most recently changed in Amazon Macie.

*/ inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; } /** *

The date and time, in UTC and extended ISO 8601 format, when the allow list's * settings were most recently changed in Amazon Macie.

*/ inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; } /** *

The date and time, in UTC and extended ISO 8601 format, when the allow list's * settings were most recently changed in Amazon Macie.

*/ inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); } /** *

The date and time, in UTC and extended ISO 8601 format, when the allow list's * settings were most recently changed in Amazon Macie.

*/ inline AllowListSummary& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} /** *

The date and time, in UTC and extended ISO 8601 format, when the allow list's * settings were most recently changed in Amazon Macie.

*/ inline AllowListSummary& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Utils::DateTime m_updatedAt; bool m_updatedAtHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws