AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AccessPreviewStatusReason.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/model/AccessPreviewStatusReasonCode.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AccessAnalyzer
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_ACCESSANALYZER_API AccessPreviewStatusReason();
39 AWS_ACCESSANALYZER_API AccessPreviewStatusReason(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const AccessPreviewStatusReasonCode& GetCode() const{ return m_code; }
49 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
50 inline void SetCode(const AccessPreviewStatusReasonCode& value) { m_codeHasBeenSet = true; m_code = value; }
51 inline void SetCode(AccessPreviewStatusReasonCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
52 inline AccessPreviewStatusReason& WithCode(const AccessPreviewStatusReasonCode& value) { SetCode(value); return *this;}
53 inline AccessPreviewStatusReason& WithCode(AccessPreviewStatusReasonCode&& value) { SetCode(std::move(value)); return *this;}
55 private:
56
58 bool m_codeHasBeenSet = false;
59 };
60
61} // namespace Model
62} // namespace AccessAnalyzer
63} // namespace Aws
AWS_ACCESSANALYZER_API AccessPreviewStatusReason & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
const AccessPreviewStatusReasonCode & GetCode() const
AccessPreviewStatusReason & WithCode(AccessPreviewStatusReasonCode &&value)
AccessPreviewStatusReason & WithCode(const AccessPreviewStatusReasonCode &value)
void SetCode(const AccessPreviewStatusReasonCode &value)
AWS_ACCESSANALYZER_API AccessPreviewStatusReason(Aws::Utils::Json::JsonView jsonValue)
void SetCode(AccessPreviewStatusReasonCode &&value)
Aws::Utils::Json::JsonValue JsonValue