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

The request to change the source server migration lifecycle * state.

See Also:

AWS * API Reference

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

The request to change the source server migration lifecycle state.

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

The request to change the source server migration lifecycle state.

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

The request to change the source server migration lifecycle state.

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

The request to change the source server migration lifecycle state.

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

The request to change the source server migration lifecycle state.

*/ inline ChangeServerLifeCycleStateSourceServerLifecycle& WithState(const ChangeServerLifeCycleStateSourceServerLifecycleState& value) { SetState(value); return *this;} /** *

The request to change the source server migration lifecycle state.

*/ inline ChangeServerLifeCycleStateSourceServerLifecycle& WithState(ChangeServerLifeCycleStateSourceServerLifecycleState&& value) { SetState(std::move(value)); return *this;} private: ChangeServerLifeCycleStateSourceServerLifecycleState m_state; bool m_stateHasBeenSet = false; }; } // namespace Model } // namespace mgn } // namespace Aws