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

The market (purchasing) option for the instances.

See Also:

* AWS * API Reference

*/ class LaunchTemplateInstanceMarketOptionsRequest { public: AWS_EC2_API LaunchTemplateInstanceMarketOptionsRequest(); AWS_EC2_API LaunchTemplateInstanceMarketOptionsRequest(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API LaunchTemplateInstanceMarketOptionsRequest& 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 market type.

*/ inline const MarketType& GetMarketType() const{ return m_marketType; } /** *

The market type.

*/ inline bool MarketTypeHasBeenSet() const { return m_marketTypeHasBeenSet; } /** *

The market type.

*/ inline void SetMarketType(const MarketType& value) { m_marketTypeHasBeenSet = true; m_marketType = value; } /** *

The market type.

*/ inline void SetMarketType(MarketType&& value) { m_marketTypeHasBeenSet = true; m_marketType = std::move(value); } /** *

The market type.

*/ inline LaunchTemplateInstanceMarketOptionsRequest& WithMarketType(const MarketType& value) { SetMarketType(value); return *this;} /** *

The market type.

*/ inline LaunchTemplateInstanceMarketOptionsRequest& WithMarketType(MarketType&& value) { SetMarketType(std::move(value)); return *this;} /** *

The options for Spot Instances.

*/ inline const LaunchTemplateSpotMarketOptionsRequest& GetSpotOptions() const{ return m_spotOptions; } /** *

The options for Spot Instances.

*/ inline bool SpotOptionsHasBeenSet() const { return m_spotOptionsHasBeenSet; } /** *

The options for Spot Instances.

*/ inline void SetSpotOptions(const LaunchTemplateSpotMarketOptionsRequest& value) { m_spotOptionsHasBeenSet = true; m_spotOptions = value; } /** *

The options for Spot Instances.

*/ inline void SetSpotOptions(LaunchTemplateSpotMarketOptionsRequest&& value) { m_spotOptionsHasBeenSet = true; m_spotOptions = std::move(value); } /** *

The options for Spot Instances.

*/ inline LaunchTemplateInstanceMarketOptionsRequest& WithSpotOptions(const LaunchTemplateSpotMarketOptionsRequest& value) { SetSpotOptions(value); return *this;} /** *

The options for Spot Instances.

*/ inline LaunchTemplateInstanceMarketOptionsRequest& WithSpotOptions(LaunchTemplateSpotMarketOptionsRequest&& value) { SetSpotOptions(std::move(value)); return *this;} private: MarketType m_marketType; bool m_marketTypeHasBeenSet = false; LaunchTemplateSpotMarketOptionsRequest m_spotOptions; bool m_spotOptionsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws