AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Status.h
1
6#pragma once
7#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
8#include <aws/iottwinmaker/model/State.h>
9#include <aws/iottwinmaker/model/ErrorDetails.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 IoTTwinMaker
23{
24namespace Model
25{
26
33 class Status
34 {
35 public:
36 AWS_IOTTWINMAKER_API Status();
37 AWS_IOTTWINMAKER_API Status(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOTTWINMAKER_API Status& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const State& GetState() const{ return m_state; }
47 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
48 inline void SetState(const State& value) { m_stateHasBeenSet = true; m_state = value; }
49 inline void SetState(State&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
50 inline Status& WithState(const State& value) { SetState(value); return *this;}
51 inline Status& WithState(State&& value) { SetState(std::move(value)); return *this;}
53
55
58 inline const ErrorDetails& GetError() const{ return m_error; }
59 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
60 inline void SetError(const ErrorDetails& value) { m_errorHasBeenSet = true; m_error = value; }
61 inline void SetError(ErrorDetails&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
62 inline Status& WithError(const ErrorDetails& value) { SetError(value); return *this;}
63 inline Status& WithError(ErrorDetails&& value) { SetError(std::move(value)); return *this;}
65 private:
66
67 State m_state;
68 bool m_stateHasBeenSet = false;
69
70 ErrorDetails m_error;
71 bool m_errorHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace IoTTwinMaker
76} // namespace Aws
AWS_IOTTWINMAKER_API Status & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetError(ErrorDetails &&value)
Definition Status.h:61
Status & WithState(State &&value)
Definition Status.h:51
void SetError(const ErrorDetails &value)
Definition Status.h:60
Status & WithError(ErrorDetails &&value)
Definition Status.h:63
AWS_IOTTWINMAKER_API Status(Aws::Utils::Json::JsonView jsonValue)
const State & GetState() const
Definition Status.h:46
void SetState(State &&value)
Definition Status.h:49
AWS_IOTTWINMAKER_API Status()
Status & WithState(const State &value)
Definition Status.h:50
Status & WithError(const ErrorDetails &value)
Definition Status.h:62
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const ErrorDetails & GetError() const
Definition Status.h:58
void SetState(const State &value)
Definition Status.h:48
Aws::Utils::Json::JsonValue JsonValue