AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MetadataTransferJobStatus.h
1
6#pragma once
7#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
8#include <aws/iottwinmaker/model/MetadataTransferJobState.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 MetadataTransferJobStatus() = default;
38 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline MetadataTransferJobState GetState() const { return m_state; }
46 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
47 inline void SetState(MetadataTransferJobState value) { m_stateHasBeenSet = true; m_state = value; }
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) { m_errorHasBeenSet = true; m_error = std::forward<ErrorT>(value); }
59 template<typename ErrorT = ErrorDetails>
60 MetadataTransferJobStatus& WithError(ErrorT&& value) { SetError(std::forward<ErrorT>(value)); return *this;}
62
64
67 inline int GetQueuedPosition() const { return m_queuedPosition; }
68 inline bool QueuedPositionHasBeenSet() const { return m_queuedPositionHasBeenSet; }
69 inline void SetQueuedPosition(int value) { m_queuedPositionHasBeenSet = true; m_queuedPosition = value; }
70 inline MetadataTransferJobStatus& WithQueuedPosition(int value) { SetQueuedPosition(value); return *this;}
72 private:
73
75 bool m_stateHasBeenSet = false;
76
77 ErrorDetails m_error;
78 bool m_errorHasBeenSet = false;
79
80 int m_queuedPosition{0};
81 bool m_queuedPositionHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace IoTTwinMaker
86} // 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