/** * 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 SSM { namespace Model { /** */ class AWS_SSM_API DeregisterManagedInstanceRequest : public SSMRequest { public: DeregisterManagedInstanceRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DeregisterManagedInstance"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID assigned to the managed instance when you registered it using the * activation process.

*/ inline const Aws::String& GetInstanceId() const{ return m_instanceId; } /** *

The ID assigned to the managed instance when you registered it using the * activation process.

*/ inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } /** *

The ID assigned to the managed instance when you registered it using the * activation process.

*/ inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; } /** *

The ID assigned to the managed instance when you registered it using the * activation process.

*/ inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); } /** *

The ID assigned to the managed instance when you registered it using the * activation process.

*/ inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); } /** *

The ID assigned to the managed instance when you registered it using the * activation process.

*/ inline DeregisterManagedInstanceRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} /** *

The ID assigned to the managed instance when you registered it using the * activation process.

*/ inline DeregisterManagedInstanceRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} /** *

The ID assigned to the managed instance when you registered it using the * activation process.

*/ inline DeregisterManagedInstanceRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} private: Aws::String m_instanceId; bool m_instanceIdHasBeenSet; }; } // namespace Model } // namespace SSM } // namespace Aws