AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
SyncJobStatus.h
1
6#pragma once
7#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
8#include <aws/iottwinmaker/model/ErrorDetails.h>
9#include <aws/iottwinmaker/model/SyncJobState.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoTTwinMaker {
21namespace Model {
22
29 public:
30 AWS_IOTTWINMAKER_API SyncJobStatus() = default;
31 AWS_IOTTWINMAKER_API SyncJobStatus(Aws::Utils::Json::JsonView jsonValue);
32 AWS_IOTTWINMAKER_API SyncJobStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline SyncJobState GetState() const { return m_state; }
40 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
41 inline void SetState(SyncJobState value) {
42 m_stateHasBeenSet = true;
43 m_state = value;
44 }
46 SetState(value);
47 return *this;
48 }
50
52
55 inline const ErrorDetails& GetError() const { return m_error; }
56 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
57 template <typename ErrorT = ErrorDetails>
58 void SetError(ErrorT&& value) {
59 m_errorHasBeenSet = true;
60 m_error = std::forward<ErrorT>(value);
61 }
62 template <typename ErrorT = ErrorDetails>
63 SyncJobStatus& WithError(ErrorT&& value) {
64 SetError(std::forward<ErrorT>(value));
65 return *this;
66 }
68 private:
70
71 ErrorDetails m_error;
72 bool m_stateHasBeenSet = false;
73 bool m_errorHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace IoTTwinMaker
78} // namespace Aws
AWS_IOTTWINMAKER_API SyncJobStatus()=default
AWS_IOTTWINMAKER_API SyncJobStatus(Aws::Utils::Json::JsonView jsonValue)
const ErrorDetails & GetError() const
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
SyncJobStatus & WithState(SyncJobState value)
SyncJobStatus & WithError(ErrorT &&value)
AWS_IOTTWINMAKER_API SyncJobStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue