AWS SDK for C++  1.9.153
AWS SDK for C++
AccessPreviewStatusReason.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace AccessAnalyzer
22 {
23 namespace Model
24 {
25 
36  {
37  public:
42 
43 
47  inline const AccessPreviewStatusReasonCode& GetCode() const{ return m_code; }
48 
52  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
53 
57  inline void SetCode(const AccessPreviewStatusReasonCode& value) { m_codeHasBeenSet = true; m_code = value; }
58 
62  inline void SetCode(AccessPreviewStatusReasonCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
63 
67  inline AccessPreviewStatusReason& WithCode(const AccessPreviewStatusReasonCode& value) { SetCode(value); return *this;}
68 
72  inline AccessPreviewStatusReason& WithCode(AccessPreviewStatusReasonCode&& value) { SetCode(std::move(value)); return *this;}
73 
74  private:
75 
77  bool m_codeHasBeenSet;
78  };
79 
80 } // namespace Model
81 } // namespace AccessAnalyzer
82 } // namespace Aws
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::AccessPreviewStatusReason::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: AccessPreviewStatusReason.h:52
Aws::AccessAnalyzer::Model::AccessPreviewStatusReason::GetCode
const AccessPreviewStatusReasonCode & GetCode() const
Definition: AccessPreviewStatusReason.h:47
Aws::AccessAnalyzer::Model::AccessPreviewStatusReason::operator=
AccessPreviewStatusReason & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::AccessPreviewStatusReasonCode
AccessPreviewStatusReasonCode
Definition: AccessPreviewStatusReasonCode.h:17
Aws::AccessAnalyzer::Model::AccessPreviewStatusReason::AccessPreviewStatusReason
AccessPreviewStatusReason(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::AccessPreviewStatusReason::SetCode
void SetCode(const AccessPreviewStatusReasonCode &value)
Definition: AccessPreviewStatusReason.h:57
Aws::AccessAnalyzer::Model::AccessPreviewStatusReason::WithCode
AccessPreviewStatusReason & WithCode(AccessPreviewStatusReasonCode &&value)
Definition: AccessPreviewStatusReason.h:72
Aws::AccessAnalyzer::Model::AccessPreviewStatusReason::AccessPreviewStatusReason
AccessPreviewStatusReason()
Aws::AccessAnalyzer::Model::AccessPreviewStatusReason
Definition: AccessPreviewStatusReason.h:36
AccessPreviewStatusReasonCode.h
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AccessAnalyzer::Model::AccessPreviewStatusReason::WithCode
AccessPreviewStatusReason & WithCode(const AccessPreviewStatusReasonCode &value)
Definition: AccessPreviewStatusReason.h:67
Aws::AccessAnalyzer::Model::AccessPreviewStatusReason::SetCode
void SetCode(AccessPreviewStatusReasonCode &&value)
Definition: AccessPreviewStatusReason.h:62
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::AccessAnalyzer::Model::AccessPreviewStatusReason::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const