AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SyncResourceStatus.h
1
6#pragma once
7#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
8#include <aws/iottwinmaker/model/SyncResourceState.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 {
34 public:
35 AWS_IOTTWINMAKER_API SyncResourceStatus();
36 AWS_IOTTWINMAKER_API SyncResourceStatus(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const SyncResourceState& GetState() const{ return m_state; }
46 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
47 inline void SetState(const SyncResourceState& value) { m_stateHasBeenSet = true; m_state = value; }
48 inline void SetState(SyncResourceState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
49 inline SyncResourceStatus& WithState(const SyncResourceState& value) { SetState(value); return *this;}
50 inline SyncResourceStatus& WithState(SyncResourceState&& value) { SetState(std::move(value)); return *this;}
52
54
57 inline const ErrorDetails& GetError() const{ return m_error; }
58 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
59 inline void SetError(const ErrorDetails& value) { m_errorHasBeenSet = true; m_error = value; }
60 inline void SetError(ErrorDetails&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
61 inline SyncResourceStatus& WithError(const ErrorDetails& value) { SetError(value); return *this;}
62 inline SyncResourceStatus& WithError(ErrorDetails&& value) { SetError(std::move(value)); return *this;}
64 private:
65
66 SyncResourceState m_state;
67 bool m_stateHasBeenSet = false;
68
69 ErrorDetails m_error;
70 bool m_errorHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace IoTTwinMaker
75} // namespace Aws
AWS_IOTTWINMAKER_API SyncResourceStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetState(const SyncResourceState &value)
SyncResourceStatus & WithState(SyncResourceState &&value)
const SyncResourceState & GetState() const
SyncResourceStatus & WithState(const SyncResourceState &value)
SyncResourceStatus & WithError(ErrorDetails &&value)
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
SyncResourceStatus & WithError(const ErrorDetails &value)
AWS_IOTTWINMAKER_API SyncResourceStatus(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue