/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides more details about the current status of the access preview. For
* example, if the creation of the access preview fails, a Failed
* status is returned. This failure can be due to an internal issue with the
* analysis or due to an invalid proposed resource configuration.See
* Also:
AWS
* API Reference
The reason code for the current status of the access preview.
*/ inline const AccessPreviewStatusReasonCode& GetCode() const{ return m_code; } /** *The reason code for the current status of the access preview.
*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *The reason code for the current status of the access preview.
*/ inline void SetCode(const AccessPreviewStatusReasonCode& value) { m_codeHasBeenSet = true; m_code = value; } /** *The reason code for the current status of the access preview.
*/ inline void SetCode(AccessPreviewStatusReasonCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *The reason code for the current status of the access preview.
*/ inline AccessPreviewStatusReason& WithCode(const AccessPreviewStatusReasonCode& value) { SetCode(value); return *this;} /** *The reason code for the current status of the access preview.
*/ inline AccessPreviewStatusReason& WithCode(AccessPreviewStatusReasonCode&& value) { SetCode(std::move(value)); return *this;} private: AccessPreviewStatusReasonCode m_code; bool m_codeHasBeenSet = false; }; } // namespace Model } // namespace AccessAnalyzer } // namespace Aws