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

The source of the finding. This indicates how the access that generated the * finding is granted. It is populated for Amazon S3 bucket findings.

See * Also:

AWS * API Reference

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

Indicates the type of access that generated the finding.

*/ inline const FindingSourceType& GetType() const{ return m_type; } /** *

Indicates the type of access that generated the finding.

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

Indicates the type of access that generated the finding.

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

Indicates the type of access that generated the finding.

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

Indicates the type of access that generated the finding.

*/ inline FindingSource& WithType(const FindingSourceType& value) { SetType(value); return *this;} /** *

Indicates the type of access that generated the finding.

*/ inline FindingSource& WithType(FindingSourceType&& value) { SetType(std::move(value)); return *this;} /** *

Includes details about how the access that generated the finding is granted. * This is populated for Amazon S3 bucket findings.

*/ inline const FindingSourceDetail& GetDetail() const{ return m_detail; } /** *

Includes details about how the access that generated the finding is granted. * This is populated for Amazon S3 bucket findings.

*/ inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; } /** *

Includes details about how the access that generated the finding is granted. * This is populated for Amazon S3 bucket findings.

*/ inline void SetDetail(const FindingSourceDetail& value) { m_detailHasBeenSet = true; m_detail = value; } /** *

Includes details about how the access that generated the finding is granted. * This is populated for Amazon S3 bucket findings.

*/ inline void SetDetail(FindingSourceDetail&& value) { m_detailHasBeenSet = true; m_detail = std::move(value); } /** *

Includes details about how the access that generated the finding is granted. * This is populated for Amazon S3 bucket findings.

*/ inline FindingSource& WithDetail(const FindingSourceDetail& value) { SetDetail(value); return *this;} /** *

Includes details about how the access that generated the finding is granted. * This is populated for Amazon S3 bucket findings.

*/ inline FindingSource& WithDetail(FindingSourceDetail&& value) { SetDetail(std::move(value)); return *this;} private: FindingSourceType m_type; bool m_typeHasBeenSet = false; FindingSourceDetail m_detail; bool m_detailHasBeenSet = false; }; } // namespace Model } // namespace AccessAnalyzer } // namespace Aws