AWS SDK for C++  1.9.175
AWS SDK for C++
LastRunErrorStatus.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 Macie2
22 {
23 namespace Model
24 {
25 
37  {
38  public:
43 
44 
53  inline const LastRunErrorStatusCode& GetCode() const{ return m_code; }
54 
63  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
64 
73  inline void SetCode(const LastRunErrorStatusCode& value) { m_codeHasBeenSet = true; m_code = value; }
74 
83  inline void SetCode(LastRunErrorStatusCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
84 
93  inline LastRunErrorStatus& WithCode(const LastRunErrorStatusCode& value) { SetCode(value); return *this;}
94 
103  inline LastRunErrorStatus& WithCode(LastRunErrorStatusCode&& value) { SetCode(std::move(value)); return *this;}
104 
105  private:
106 
107  LastRunErrorStatusCode m_code;
108  bool m_codeHasBeenSet;
109  };
110 
111 } // namespace Model
112 } // namespace Macie2
113 } // namespace Aws
AWS_MACIE2_API
#define AWS_MACIE2_API
Definition: Macie2_EXPORTS.h:28
Aws::Macie2::Model::LastRunErrorStatus::SetCode
void SetCode(LastRunErrorStatusCode &&value)
Definition: LastRunErrorStatus.h:83
Macie2_EXPORTS.h
Aws::Macie2::Model::LastRunErrorStatus::WithCode
LastRunErrorStatus & WithCode(LastRunErrorStatusCode &&value)
Definition: LastRunErrorStatus.h:103
Aws::Macie2::Model::LastRunErrorStatus::SetCode
void SetCode(const LastRunErrorStatusCode &value)
Definition: LastRunErrorStatus.h:73
Aws::Macie2::Model::LastRunErrorStatus::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Macie2::Model::LastRunErrorStatus
Definition: LastRunErrorStatus.h:37
Aws::Macie2::Model::LastRunErrorStatus::GetCode
const LastRunErrorStatusCode & GetCode() const
Definition: LastRunErrorStatus.h:53
Aws::Macie2::Model::LastRunErrorStatusCode
LastRunErrorStatusCode
Definition: LastRunErrorStatusCode.h:17
Aws::Macie2::Model::LastRunErrorStatus::LastRunErrorStatus
LastRunErrorStatus(Aws::Utils::Json::JsonView jsonValue)
LastRunErrorStatusCode.h
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Macie2::Model::LastRunErrorStatus::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: LastRunErrorStatus.h:63
Aws::Macie2::Model::LastRunErrorStatus::operator=
LastRunErrorStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Macie2::Model::LastRunErrorStatus::WithCode
LastRunErrorStatus & WithCode(const LastRunErrorStatusCode &value)
Definition: LastRunErrorStatus.h:93
Aws::Macie2::Model::LastRunErrorStatus::LastRunErrorStatus
LastRunErrorStatus()