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

A request that represents an offering renewal.

See Also:

AWS * API Reference

*/ class RenewOfferingRequest : public DeviceFarmRequest { public: AWS_DEVICEFARM_API RenewOfferingRequest(); // 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 "RenewOffering"; } AWS_DEVICEFARM_API Aws::String SerializePayload() const override; AWS_DEVICEFARM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of a request to renew an offering.

*/ inline const Aws::String& GetOfferingId() const{ return m_offeringId; } /** *

The ID of a request to renew an offering.

*/ inline bool OfferingIdHasBeenSet() const { return m_offeringIdHasBeenSet; } /** *

The ID of a request to renew an offering.

*/ inline void SetOfferingId(const Aws::String& value) { m_offeringIdHasBeenSet = true; m_offeringId = value; } /** *

The ID of a request to renew an offering.

*/ inline void SetOfferingId(Aws::String&& value) { m_offeringIdHasBeenSet = true; m_offeringId = std::move(value); } /** *

The ID of a request to renew an offering.

*/ inline void SetOfferingId(const char* value) { m_offeringIdHasBeenSet = true; m_offeringId.assign(value); } /** *

The ID of a request to renew an offering.

*/ inline RenewOfferingRequest& WithOfferingId(const Aws::String& value) { SetOfferingId(value); return *this;} /** *

The ID of a request to renew an offering.

*/ inline RenewOfferingRequest& WithOfferingId(Aws::String&& value) { SetOfferingId(std::move(value)); return *this;} /** *

The ID of a request to renew an offering.

*/ inline RenewOfferingRequest& WithOfferingId(const char* value) { SetOfferingId(value); return *this;} /** *

The quantity requested in an offering renewal.

*/ inline int GetQuantity() const{ return m_quantity; } /** *

The quantity requested in an offering renewal.

*/ inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; } /** *

The quantity requested in an offering renewal.

*/ inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; } /** *

The quantity requested in an offering renewal.

*/ inline RenewOfferingRequest& WithQuantity(int value) { SetQuantity(value); return *this;} private: Aws::String m_offeringId; bool m_offeringIdHasBeenSet = false; int m_quantity; bool m_quantityHasBeenSet = false; }; } // namespace Model } // namespace DeviceFarm } // namespace Aws