AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
MetadataTransferJobStatus.h
1
6#pragma once
7#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
8#include <aws/iottwinmaker/model/ErrorDetails.h>
9#include <aws/iottwinmaker/model/MetadataTransferJobState.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 MetadataTransferJobStatus() = default;
33 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline MetadataTransferJobState GetState() const { return m_state; }
40 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
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>
64 SetError(std::forward<ErrorT>(value));
65 return *this;
66 }
68
70
73 inline int GetQueuedPosition() const { return m_queuedPosition; }
74 inline bool QueuedPositionHasBeenSet() const { return m_queuedPositionHasBeenSet; }
75 inline void SetQueuedPosition(int value) {
76 m_queuedPositionHasBeenSet = true;
77 m_queuedPosition = value;
78 }
80 SetQueuedPosition(value);
81 return *this;
82 }
84 private:
86
87 ErrorDetails m_error;
88
89 int m_queuedPosition{0};
90 bool m_stateHasBeenSet = false;
91 bool m_errorHasBeenSet = false;
92 bool m_queuedPositionHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace IoTTwinMaker
97} // namespace Aws
MetadataTransferJobStatus & WithState(MetadataTransferJobState value)
AWS_IOTTWINMAKER_API MetadataTransferJobStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTTWINMAKER_API MetadataTransferJobStatus()=default
AWS_IOTTWINMAKER_API MetadataTransferJobStatus(Aws::Utils::Json::JsonView jsonValue)
MetadataTransferJobStatus & WithQueuedPosition(int value)
MetadataTransferJobStatus & WithError(ErrorT &&value)
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue