AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
38 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const MetadataTransferJobState& GetState() const{ return m_state; }
46 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
47 inline void SetState(const MetadataTransferJobState& value) { m_stateHasBeenSet = true; m_state = value; }
48 inline void SetState(MetadataTransferJobState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
49 inline MetadataTransferJobStatus& WithState(const MetadataTransferJobState& value) { SetState(value); return *this;}
50 inline MetadataTransferJobStatus& WithState(MetadataTransferJobState&& 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 MetadataTransferJobStatus& WithError(const ErrorDetails& value) { SetError(value); return *this;}
62 inline MetadataTransferJobStatus& WithError(ErrorDetails&& value) { SetError(std::move(value)); return *this;}
64
66
69 inline int GetQueuedPosition() const{ return m_queuedPosition; }
70 inline bool QueuedPositionHasBeenSet() const { return m_queuedPositionHasBeenSet; }
71 inline void SetQueuedPosition(int value) { m_queuedPositionHasBeenSet = true; m_queuedPosition = value; }
72 inline MetadataTransferJobStatus& WithQueuedPosition(int value) { SetQueuedPosition(value); return *this;}
74 private:
75
77 bool m_stateHasBeenSet = false;
78
79 ErrorDetails m_error;
80 bool m_errorHasBeenSet = false;
81
82 int m_queuedPosition;
83 bool m_queuedPositionHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace IoTTwinMaker
88} // namespace Aws
AWS_IOTTWINMAKER_API MetadataTransferJobStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTTWINMAKER_API MetadataTransferJobStatus(Aws::Utils::Json::JsonView jsonValue)
MetadataTransferJobStatus & WithError(const ErrorDetails &value)
MetadataTransferJobStatus & WithState(const MetadataTransferJobState &value)
MetadataTransferJobStatus & WithState(MetadataTransferJobState &&value)
void SetState(const MetadataTransferJobState &value)
MetadataTransferJobStatus & WithQueuedPosition(int value)
MetadataTransferJobStatus & WithError(ErrorDetails &&value)
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue