AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ScanStatus.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/model/ScanStatusReason.h>
9#include <aws/inspector2/model/ScanStatusCode.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Inspector2
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_INSPECTOR2_API ScanStatus();
36 AWS_INSPECTOR2_API ScanStatus(Aws::Utils::Json::JsonView jsonValue);
37 AWS_INSPECTOR2_API ScanStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
109 inline const ScanStatusReason& GetReason() const{ return m_reason; }
110 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
111 inline void SetReason(const ScanStatusReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
112 inline void SetReason(ScanStatusReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
113 inline ScanStatus& WithReason(const ScanStatusReason& value) { SetReason(value); return *this;}
114 inline ScanStatus& WithReason(ScanStatusReason&& value) { SetReason(std::move(value)); return *this;}
116
118
121 inline const ScanStatusCode& GetStatusCode() const{ return m_statusCode; }
122 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
123 inline void SetStatusCode(const ScanStatusCode& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
124 inline void SetStatusCode(ScanStatusCode&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
125 inline ScanStatus& WithStatusCode(const ScanStatusCode& value) { SetStatusCode(value); return *this;}
126 inline ScanStatus& WithStatusCode(ScanStatusCode&& value) { SetStatusCode(std::move(value)); return *this;}
128 private:
129
130 ScanStatusReason m_reason;
131 bool m_reasonHasBeenSet = false;
132
133 ScanStatusCode m_statusCode;
134 bool m_statusCodeHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace Inspector2
139} // namespace Aws
ScanStatus & WithReason(const ScanStatusReason &value)
Definition ScanStatus.h:113
void SetStatusCode(const ScanStatusCode &value)
Definition ScanStatus.h:123
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
const ScanStatusCode & GetStatusCode() const
Definition ScanStatus.h:121
AWS_INSPECTOR2_API ScanStatus(Aws::Utils::Json::JsonView jsonValue)
ScanStatus & WithReason(ScanStatusReason &&value)
Definition ScanStatus.h:114
ScanStatus & WithStatusCode(ScanStatusCode &&value)
Definition ScanStatus.h:126
void SetStatusCode(ScanStatusCode &&value)
Definition ScanStatus.h:124
AWS_INSPECTOR2_API ScanStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetReason(ScanStatusReason &&value)
Definition ScanStatus.h:112
const ScanStatusReason & GetReason() const
Definition ScanStatus.h:109
ScanStatus & WithStatusCode(const ScanStatusCode &value)
Definition ScanStatus.h:125
void SetReason(const ScanStatusReason &value)
Definition ScanStatus.h:111
AWS_INSPECTOR2_API ScanStatus()
Aws::Utils::Json::JsonValue JsonValue