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

Describes a launch template and overrides.

See Also:

AWS * API Reference

*/ class FleetLaunchTemplateConfigRequest { public: AWS_EC2_API FleetLaunchTemplateConfigRequest(); AWS_EC2_API FleetLaunchTemplateConfigRequest(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API FleetLaunchTemplateConfigRequest& 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 launch template to use. You must specify either the launch template ID or * launch template name in the request.

*/ inline const FleetLaunchTemplateSpecificationRequest& GetLaunchTemplateSpecification() const{ return m_launchTemplateSpecification; } /** *

The launch template to use. You must specify either the launch template ID or * launch template name in the request.

*/ inline bool LaunchTemplateSpecificationHasBeenSet() const { return m_launchTemplateSpecificationHasBeenSet; } /** *

The launch template to use. You must specify either the launch template ID or * launch template name in the request.

*/ inline void SetLaunchTemplateSpecification(const FleetLaunchTemplateSpecificationRequest& value) { m_launchTemplateSpecificationHasBeenSet = true; m_launchTemplateSpecification = value; } /** *

The launch template to use. You must specify either the launch template ID or * launch template name in the request.

*/ inline void SetLaunchTemplateSpecification(FleetLaunchTemplateSpecificationRequest&& value) { m_launchTemplateSpecificationHasBeenSet = true; m_launchTemplateSpecification = std::move(value); } /** *

The launch template to use. You must specify either the launch template ID or * launch template name in the request.

*/ inline FleetLaunchTemplateConfigRequest& WithLaunchTemplateSpecification(const FleetLaunchTemplateSpecificationRequest& value) { SetLaunchTemplateSpecification(value); return *this;} /** *

The launch template to use. You must specify either the launch template ID or * launch template name in the request.

*/ inline FleetLaunchTemplateConfigRequest& WithLaunchTemplateSpecification(FleetLaunchTemplateSpecificationRequest&& value) { SetLaunchTemplateSpecification(std::move(value)); return *this;} /** *

Any parameters that you specify override the same parameters in the launch * template.

For fleets of type request and * maintain, a maximum of 300 items is allowed across all launch * templates.

*/ inline const Aws::Vector& GetOverrides() const{ return m_overrides; } /** *

Any parameters that you specify override the same parameters in the launch * template.

For fleets of type request and * maintain, a maximum of 300 items is allowed across all launch * templates.

*/ inline bool OverridesHasBeenSet() const { return m_overridesHasBeenSet; } /** *

Any parameters that you specify override the same parameters in the launch * template.

For fleets of type request and * maintain, a maximum of 300 items is allowed across all launch * templates.

*/ inline void SetOverrides(const Aws::Vector& value) { m_overridesHasBeenSet = true; m_overrides = value; } /** *

Any parameters that you specify override the same parameters in the launch * template.

For fleets of type request and * maintain, a maximum of 300 items is allowed across all launch * templates.

*/ inline void SetOverrides(Aws::Vector&& value) { m_overridesHasBeenSet = true; m_overrides = std::move(value); } /** *

Any parameters that you specify override the same parameters in the launch * template.

For fleets of type request and * maintain, a maximum of 300 items is allowed across all launch * templates.

*/ inline FleetLaunchTemplateConfigRequest& WithOverrides(const Aws::Vector& value) { SetOverrides(value); return *this;} /** *

Any parameters that you specify override the same parameters in the launch * template.

For fleets of type request and * maintain, a maximum of 300 items is allowed across all launch * templates.

*/ inline FleetLaunchTemplateConfigRequest& WithOverrides(Aws::Vector&& value) { SetOverrides(std::move(value)); return *this;} /** *

Any parameters that you specify override the same parameters in the launch * template.

For fleets of type request and * maintain, a maximum of 300 items is allowed across all launch * templates.

*/ inline FleetLaunchTemplateConfigRequest& AddOverrides(const FleetLaunchTemplateOverridesRequest& value) { m_overridesHasBeenSet = true; m_overrides.push_back(value); return *this; } /** *

Any parameters that you specify override the same parameters in the launch * template.

For fleets of type request and * maintain, a maximum of 300 items is allowed across all launch * templates.

*/ inline FleetLaunchTemplateConfigRequest& AddOverrides(FleetLaunchTemplateOverridesRequest&& value) { m_overridesHasBeenSet = true; m_overrides.push_back(std::move(value)); return *this; } private: FleetLaunchTemplateSpecificationRequest m_launchTemplateSpecification; bool m_launchTemplateSpecificationHasBeenSet = false; Aws::Vector m_overrides; bool m_overridesHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws