/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Includes details about how the access that generated the finding is granted.
* This is populated for Amazon S3 bucket findings.See Also:
AWS
* API Reference
The ARN of the access point that generated the finding. The ARN format * depends on whether the ARN represents an access point or a multi-region access * point.
*/ inline const Aws::String& GetAccessPointArn() const{ return m_accessPointArn; } /** *The ARN of the access point that generated the finding. The ARN format * depends on whether the ARN represents an access point or a multi-region access * point.
*/ inline bool AccessPointArnHasBeenSet() const { return m_accessPointArnHasBeenSet; } /** *The ARN of the access point that generated the finding. The ARN format * depends on whether the ARN represents an access point or a multi-region access * point.
*/ inline void SetAccessPointArn(const Aws::String& value) { m_accessPointArnHasBeenSet = true; m_accessPointArn = value; } /** *The ARN of the access point that generated the finding. The ARN format * depends on whether the ARN represents an access point or a multi-region access * point.
*/ inline void SetAccessPointArn(Aws::String&& value) { m_accessPointArnHasBeenSet = true; m_accessPointArn = std::move(value); } /** *The ARN of the access point that generated the finding. The ARN format * depends on whether the ARN represents an access point or a multi-region access * point.
*/ inline void SetAccessPointArn(const char* value) { m_accessPointArnHasBeenSet = true; m_accessPointArn.assign(value); } /** *The ARN of the access point that generated the finding. The ARN format * depends on whether the ARN represents an access point or a multi-region access * point.
*/ inline FindingSourceDetail& WithAccessPointArn(const Aws::String& value) { SetAccessPointArn(value); return *this;} /** *The ARN of the access point that generated the finding. The ARN format * depends on whether the ARN represents an access point or a multi-region access * point.
*/ inline FindingSourceDetail& WithAccessPointArn(Aws::String&& value) { SetAccessPointArn(std::move(value)); return *this;} /** *The ARN of the access point that generated the finding. The ARN format * depends on whether the ARN represents an access point or a multi-region access * point.
*/ inline FindingSourceDetail& WithAccessPointArn(const char* value) { SetAccessPointArn(value); return *this;} /** *The account of the cross-account access point that generated the finding.
*/ inline const Aws::String& GetAccessPointAccount() const{ return m_accessPointAccount; } /** *The account of the cross-account access point that generated the finding.
*/ inline bool AccessPointAccountHasBeenSet() const { return m_accessPointAccountHasBeenSet; } /** *The account of the cross-account access point that generated the finding.
*/ inline void SetAccessPointAccount(const Aws::String& value) { m_accessPointAccountHasBeenSet = true; m_accessPointAccount = value; } /** *The account of the cross-account access point that generated the finding.
*/ inline void SetAccessPointAccount(Aws::String&& value) { m_accessPointAccountHasBeenSet = true; m_accessPointAccount = std::move(value); } /** *The account of the cross-account access point that generated the finding.
*/ inline void SetAccessPointAccount(const char* value) { m_accessPointAccountHasBeenSet = true; m_accessPointAccount.assign(value); } /** *The account of the cross-account access point that generated the finding.
*/ inline FindingSourceDetail& WithAccessPointAccount(const Aws::String& value) { SetAccessPointAccount(value); return *this;} /** *The account of the cross-account access point that generated the finding.
*/ inline FindingSourceDetail& WithAccessPointAccount(Aws::String&& value) { SetAccessPointAccount(std::move(value)); return *this;} /** *The account of the cross-account access point that generated the finding.
*/ inline FindingSourceDetail& WithAccessPointAccount(const char* value) { SetAccessPointAccount(value); return *this;} private: Aws::String m_accessPointArn; bool m_accessPointArnHasBeenSet = false; Aws::String m_accessPointAccount; bool m_accessPointAccountHasBeenSet = false; }; } // namespace Model } // namespace AccessAnalyzer } // namespace Aws