/** * 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 WorkSpaces { namespace Model { /** *

Describes a WorkSpace modification.

See Also:

AWS * API Reference

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

The resource.

*/ inline const ModificationResourceEnum& GetResource() const{ return m_resource; } /** *

The resource.

*/ inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; } /** *

The resource.

*/ inline void SetResource(const ModificationResourceEnum& value) { m_resourceHasBeenSet = true; m_resource = value; } /** *

The resource.

*/ inline void SetResource(ModificationResourceEnum&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); } /** *

The resource.

*/ inline ModificationState& WithResource(const ModificationResourceEnum& value) { SetResource(value); return *this;} /** *

The resource.

*/ inline ModificationState& WithResource(ModificationResourceEnum&& value) { SetResource(std::move(value)); return *this;} /** *

The modification state.

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

The modification state.

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

The modification state.

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

The modification state.

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

The modification state.

*/ inline ModificationState& WithState(const ModificationStateEnum& value) { SetState(value); return *this;} /** *

The modification state.

*/ inline ModificationState& WithState(ModificationStateEnum&& value) { SetState(std::move(value)); return *this;} private: ModificationResourceEnum m_resource; bool m_resourceHasBeenSet = false; ModificationStateEnum m_state; bool m_stateHasBeenSet = false; }; } // namespace Model } // namespace WorkSpaces } // namespace Aws