AWS SDK for C++  1.9.153
AWS SDK for C++
StatusReason.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 ReasonCode& GetCode() const{ return m_code; }
48 
52  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
53 
57  inline void SetCode(const ReasonCode& value) { m_codeHasBeenSet = true; m_code = value; }
58 
62  inline void SetCode(ReasonCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
63 
67  inline StatusReason& WithCode(const ReasonCode& value) { SetCode(value); return *this;}
68 
72  inline StatusReason& WithCode(ReasonCode&& value) { SetCode(std::move(value)); return *this;}
73 
74  private:
75 
76  ReasonCode m_code;
77  bool m_codeHasBeenSet;
78  };
79 
80 } // namespace Model
81 } // namespace AccessAnalyzer
82 } // namespace Aws
Aws::AccessAnalyzer::Model::StatusReason::StatusReason
StatusReason()
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::StatusReason
Definition: StatusReason.h:36
Aws::AccessAnalyzer::Model::StatusReason::operator=
StatusReason & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::StatusReason::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: StatusReason.h:52
Aws::AccessAnalyzer::Model::StatusReason::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AccessAnalyzer::Model::StatusReason::StatusReason
StatusReason(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::StatusReason::SetCode
void SetCode(ReasonCode &&value)
Definition: StatusReason.h:62
ReasonCode.h
Aws::AccessAnalyzer::Model::StatusReason::WithCode
StatusReason & WithCode(ReasonCode &&value)
Definition: StatusReason.h:72
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AccessAnalyzer::Model::StatusReason::SetCode
void SetCode(const ReasonCode &value)
Definition: StatusReason.h:57
Aws::AccessAnalyzer::Model::StatusReason::WithCode
StatusReason & WithCode(const ReasonCode &value)
Definition: StatusReason.h:67
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::AccessAnalyzer::Model::ReasonCode
ReasonCode
Definition: ReasonCode.h:17
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::AccessAnalyzer::Model::StatusReason::GetCode
const ReasonCode & GetCode() const
Definition: StatusReason.h:47