/** * 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 { /** *

Details about the target configuration.

See Also:

AWS * API Reference

*/ class TargetConfigurationRequest { public: AWS_EC2_API TargetConfigurationRequest(); AWS_EC2_API TargetConfigurationRequest(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API TargetConfigurationRequest& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API 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 TargetConfigurationRequest& WithInstanceCount(int value) { SetInstanceCount(value); return *this;} /** *

The Convertible Reserved Instance offering ID.

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

The Convertible Reserved Instance offering ID.

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

The Convertible Reserved Instance offering ID.

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

The Convertible Reserved Instance offering ID.

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

The Convertible Reserved Instance offering ID.

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

The Convertible Reserved Instance offering ID.

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

The Convertible Reserved Instance offering ID.

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

The Convertible Reserved Instance offering ID.

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