/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoTTwinMaker { namespace Model { /** *

The sync resource status.

See Also:

AWS * API Reference

*/ class SyncResourceStatus { public: AWS_IOTTWINMAKER_API SyncResourceStatus(); AWS_IOTTWINMAKER_API SyncResourceStatus(Aws::Utils::Json::JsonView jsonValue); AWS_IOTTWINMAKER_API SyncResourceStatus& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The sync resource status state.

*/ inline const SyncResourceState& GetState() const{ return m_state; } /** *

The sync resource status state.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The sync resource status state.

*/ inline void SetState(const SyncResourceState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The sync resource status state.

*/ inline void SetState(SyncResourceState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The sync resource status state.

*/ inline SyncResourceStatus& WithState(const SyncResourceState& value) { SetState(value); return *this;} /** *

The sync resource status state.

*/ inline SyncResourceStatus& WithState(SyncResourceState&& value) { SetState(std::move(value)); return *this;} /** *

The status error.

*/ inline const ErrorDetails& GetError() const{ return m_error; } /** *

The status error.

*/ inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; } /** *

The status error.

*/ inline void SetError(const ErrorDetails& value) { m_errorHasBeenSet = true; m_error = value; } /** *

The status error.

*/ inline void SetError(ErrorDetails&& value) { m_errorHasBeenSet = true; m_error = std::move(value); } /** *

The status error.

*/ inline SyncResourceStatus& WithError(const ErrorDetails& value) { SetError(value); return *this;} /** *

The status error.

*/ inline SyncResourceStatus& WithError(ErrorDetails&& value) { SetError(std::move(value)); return *this;} private: SyncResourceState m_state; bool m_stateHasBeenSet = false; ErrorDetails m_error; bool m_errorHasBeenSet = false; }; } // namespace Model } // namespace IoTTwinMaker } // namespace Aws