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

The status of the offering.

See Also:

AWS * API Reference

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

The type specified for the offering status.

*/ inline const OfferingTransactionType& GetType() const{ return m_type; } /** *

The type specified for the offering status.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type specified for the offering status.

*/ inline void SetType(const OfferingTransactionType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type specified for the offering status.

*/ inline void SetType(OfferingTransactionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type specified for the offering status.

*/ inline OfferingStatus& WithType(const OfferingTransactionType& value) { SetType(value); return *this;} /** *

The type specified for the offering status.

*/ inline OfferingStatus& WithType(OfferingTransactionType&& value) { SetType(std::move(value)); return *this;} /** *

Represents the metadata of an offering status.

*/ inline const Offering& GetOffering() const{ return m_offering; } /** *

Represents the metadata of an offering status.

*/ inline bool OfferingHasBeenSet() const { return m_offeringHasBeenSet; } /** *

Represents the metadata of an offering status.

*/ inline void SetOffering(const Offering& value) { m_offeringHasBeenSet = true; m_offering = value; } /** *

Represents the metadata of an offering status.

*/ inline void SetOffering(Offering&& value) { m_offeringHasBeenSet = true; m_offering = std::move(value); } /** *

Represents the metadata of an offering status.

*/ inline OfferingStatus& WithOffering(const Offering& value) { SetOffering(value); return *this;} /** *

Represents the metadata of an offering status.

*/ inline OfferingStatus& WithOffering(Offering&& value) { SetOffering(std::move(value)); return *this;} /** *

The number of available devices in the offering.

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

The number of available devices in the offering.

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

The number of available devices in the offering.

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

The number of available devices in the offering.

*/ inline OfferingStatus& WithQuantity(int value) { SetQuantity(value); return *this;} /** *

The date on which the offering is effective.

*/ inline const Aws::Utils::DateTime& GetEffectiveOn() const{ return m_effectiveOn; } /** *

The date on which the offering is effective.

*/ inline bool EffectiveOnHasBeenSet() const { return m_effectiveOnHasBeenSet; } /** *

The date on which the offering is effective.

*/ inline void SetEffectiveOn(const Aws::Utils::DateTime& value) { m_effectiveOnHasBeenSet = true; m_effectiveOn = value; } /** *

The date on which the offering is effective.

*/ inline void SetEffectiveOn(Aws::Utils::DateTime&& value) { m_effectiveOnHasBeenSet = true; m_effectiveOn = std::move(value); } /** *

The date on which the offering is effective.

*/ inline OfferingStatus& WithEffectiveOn(const Aws::Utils::DateTime& value) { SetEffectiveOn(value); return *this;} /** *

The date on which the offering is effective.

*/ inline OfferingStatus& WithEffectiveOn(Aws::Utils::DateTime&& value) { SetEffectiveOn(std::move(value)); return *this;} private: OfferingTransactionType m_type; bool m_typeHasBeenSet = false; Offering m_offering; bool m_offeringHasBeenSet = false; int m_quantity; bool m_quantityHasBeenSet = false; Aws::Utils::DateTime m_effectiveOn; bool m_effectiveOnHasBeenSet = false; }; } // namespace Model } // namespace DeviceFarm } // namespace Aws