/** * 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 Outposts { namespace Model { /** */ class CancelOrderRequest : public OutpostsRequest { public: AWS_OUTPOSTS_API CancelOrderRequest(); // 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 "CancelOrder"; } AWS_OUTPOSTS_API Aws::String SerializePayload() const override; /** *

The ID of the order.

*/ inline const Aws::String& GetOrderId() const{ return m_orderId; } /** *

The ID of the order.

*/ inline bool OrderIdHasBeenSet() const { return m_orderIdHasBeenSet; } /** *

The ID of the order.

*/ inline void SetOrderId(const Aws::String& value) { m_orderIdHasBeenSet = true; m_orderId = value; } /** *

The ID of the order.

*/ inline void SetOrderId(Aws::String&& value) { m_orderIdHasBeenSet = true; m_orderId = std::move(value); } /** *

The ID of the order.

*/ inline void SetOrderId(const char* value) { m_orderIdHasBeenSet = true; m_orderId.assign(value); } /** *

The ID of the order.

*/ inline CancelOrderRequest& WithOrderId(const Aws::String& value) { SetOrderId(value); return *this;} /** *

The ID of the order.

*/ inline CancelOrderRequest& WithOrderId(Aws::String&& value) { SetOrderId(std::move(value)); return *this;} /** *

The ID of the order.

*/ inline CancelOrderRequest& WithOrderId(const char* value) { SetOrderId(value); return *this;} private: Aws::String m_orderId; bool m_orderIdHasBeenSet = false; }; } // namespace Model } // namespace Outposts } // namespace Aws