This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files

83 lines
2.3 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
#include <aws/accessanalyzer/model/ReasonCode.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace AccessAnalyzer
{
namespace Model
{
/**
* <p>Provides more details about the current status of the analyzer. For example,
* if the creation for the analyzer fails, a <code>Failed</code> status is
* displayed. For an analyzer with organization as the type, this failure can be
* due to an issue with creating the service-linked roles required in the member
* accounts of the AWS organization.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/StatusReason">AWS
* API Reference</a></p>
*/
class AWS_ACCESSANALYZER_API StatusReason
{
public:
StatusReason();
StatusReason(Aws::Utils::Json::JsonView jsonValue);
StatusReason& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The reason code for the current status of the analyzer.</p>
*/
inline const ReasonCode& GetCode() const{ return m_code; }
/**
* <p>The reason code for the current status of the analyzer.</p>
*/
inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
/**
* <p>The reason code for the current status of the analyzer.</p>
*/
inline void SetCode(const ReasonCode& value) { m_codeHasBeenSet = true; m_code = value; }
/**
* <p>The reason code for the current status of the analyzer.</p>
*/
inline void SetCode(ReasonCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
/**
* <p>The reason code for the current status of the analyzer.</p>
*/
inline StatusReason& WithCode(const ReasonCode& value) { SetCode(value); return *this;}
/**
* <p>The reason code for the current status of the analyzer.</p>
*/
inline StatusReason& WithCode(ReasonCode&& value) { SetCode(std::move(value)); return *this;}
private:
ReasonCode m_code;
bool m_codeHasBeenSet;
};
} // namespace Model
} // namespace AccessAnalyzer
} // namespace Aws