/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Represents a request for a purchase offering.See Also:
AWS
* API Reference
The ID of the offering.
*/ inline const Aws::String& GetOfferingId() const{ return m_offeringId; } /** *The ID of the offering.
*/ inline bool OfferingIdHasBeenSet() const { return m_offeringIdHasBeenSet; } /** *The ID of the offering.
*/ inline void SetOfferingId(const Aws::String& value) { m_offeringIdHasBeenSet = true; m_offeringId = value; } /** *The ID of the offering.
*/ inline void SetOfferingId(Aws::String&& value) { m_offeringIdHasBeenSet = true; m_offeringId = std::move(value); } /** *The ID of the offering.
*/ inline void SetOfferingId(const char* value) { m_offeringIdHasBeenSet = true; m_offeringId.assign(value); } /** *The ID of the offering.
*/ inline PurchaseOfferingRequest& WithOfferingId(const Aws::String& value) { SetOfferingId(value); return *this;} /** *The ID of the offering.
*/ inline PurchaseOfferingRequest& WithOfferingId(Aws::String&& value) { SetOfferingId(std::move(value)); return *this;} /** *The ID of the offering.
*/ inline PurchaseOfferingRequest& WithOfferingId(const char* value) { SetOfferingId(value); return *this;} /** *The number of device slots to purchase in an offering request.
*/ inline int GetQuantity() const{ return m_quantity; } /** *The number of device slots to purchase in an offering request.
*/ inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; } /** *The number of device slots to purchase in an offering request.
*/ inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; } /** *The number of device slots to purchase in an offering request.
*/ inline PurchaseOfferingRequest& WithQuantity(int value) { SetQuantity(value); return *this;} /** *The ID of the offering promotion to be applied to the purchase.
*/ inline const Aws::String& GetOfferingPromotionId() const{ return m_offeringPromotionId; } /** *The ID of the offering promotion to be applied to the purchase.
*/ inline bool OfferingPromotionIdHasBeenSet() const { return m_offeringPromotionIdHasBeenSet; } /** *The ID of the offering promotion to be applied to the purchase.
*/ inline void SetOfferingPromotionId(const Aws::String& value) { m_offeringPromotionIdHasBeenSet = true; m_offeringPromotionId = value; } /** *The ID of the offering promotion to be applied to the purchase.
*/ inline void SetOfferingPromotionId(Aws::String&& value) { m_offeringPromotionIdHasBeenSet = true; m_offeringPromotionId = std::move(value); } /** *The ID of the offering promotion to be applied to the purchase.
*/ inline void SetOfferingPromotionId(const char* value) { m_offeringPromotionIdHasBeenSet = true; m_offeringPromotionId.assign(value); } /** *The ID of the offering promotion to be applied to the purchase.
*/ inline PurchaseOfferingRequest& WithOfferingPromotionId(const Aws::String& value) { SetOfferingPromotionId(value); return *this;} /** *The ID of the offering promotion to be applied to the purchase.
*/ inline PurchaseOfferingRequest& WithOfferingPromotionId(Aws::String&& value) { SetOfferingPromotionId(std::move(value)); return *this;} /** *The ID of the offering promotion to be applied to the purchase.
*/ inline PurchaseOfferingRequest& WithOfferingPromotionId(const char* value) { SetOfferingPromotionId(value); return *this;} private: Aws::String m_offeringId; bool m_offeringIdHasBeenSet = false; int m_quantity; bool m_quantityHasBeenSet = false; Aws::String m_offeringPromotionId; bool m_offeringPromotionIdHasBeenSet = false; }; } // namespace Model } // namespace DeviceFarm } // namespace Aws