/** * 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 Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Information about the Convertible Reserved Instance offering.

See * Also:

AWS * API Reference

*/ class AWS_EC2_API TargetConfiguration { public: TargetConfiguration(); TargetConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode); TargetConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The number of instances the Convertible Reserved Instance offering can be * applied to. This parameter is reserved and cannot be specified in a request

*/ inline int GetInstanceCount() const{ return m_instanceCount; } /** *

The number of instances the Convertible Reserved Instance offering can be * applied to. This parameter is reserved and cannot be specified in a request

*/ inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; } /** *

The number of instances the Convertible Reserved Instance offering can be * applied to. This parameter is reserved and cannot be specified in a request

*/ inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; } /** *

The number of instances the Convertible Reserved Instance offering can be * applied to. This parameter is reserved and cannot be specified in a request

*/ inline TargetConfiguration& WithInstanceCount(int value) { SetInstanceCount(value); return *this;} /** *

The ID of the Convertible Reserved Instance offering.

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

The ID of the Convertible Reserved Instance offering.

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

The ID of the Convertible Reserved Instance offering.

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

The ID of the Convertible Reserved Instance offering.

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

The ID of the Convertible Reserved Instance offering.

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

The ID of the Convertible Reserved Instance offering.

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

The ID of the Convertible Reserved Instance offering.

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

The ID of the Convertible Reserved Instance offering.

*/ inline TargetConfiguration& WithOfferingId(const char* value) { SetOfferingId(value); return *this;} private: int m_instanceCount; bool m_instanceCountHasBeenSet; Aws::String m_offeringId; bool m_offeringIdHasBeenSet; }; } // namespace Model } // namespace EC2 } // namespace Aws