/** * 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 Lightsail { namespace Model { /** */ class CreateCloudFormationStackRequest : public LightsailRequest { public: AWS_LIGHTSAIL_API CreateCloudFormationStackRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateCloudFormationStack"; } AWS_LIGHTSAIL_API Aws::String SerializePayload() const override; AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

An array of parameters that will be used to create the new Amazon EC2 * instance. You can only pass one instance entry at a time in this array. You will * get an invalid parameter error if you pass more than one instance entry in this * array.

*/ inline const Aws::Vector& GetInstances() const{ return m_instances; } /** *

An array of parameters that will be used to create the new Amazon EC2 * instance. You can only pass one instance entry at a time in this array. You will * get an invalid parameter error if you pass more than one instance entry in this * array.

*/ inline bool InstancesHasBeenSet() const { return m_instancesHasBeenSet; } /** *

An array of parameters that will be used to create the new Amazon EC2 * instance. You can only pass one instance entry at a time in this array. You will * get an invalid parameter error if you pass more than one instance entry in this * array.

*/ inline void SetInstances(const Aws::Vector& value) { m_instancesHasBeenSet = true; m_instances = value; } /** *

An array of parameters that will be used to create the new Amazon EC2 * instance. You can only pass one instance entry at a time in this array. You will * get an invalid parameter error if you pass more than one instance entry in this * array.

*/ inline void SetInstances(Aws::Vector&& value) { m_instancesHasBeenSet = true; m_instances = std::move(value); } /** *

An array of parameters that will be used to create the new Amazon EC2 * instance. You can only pass one instance entry at a time in this array. You will * get an invalid parameter error if you pass more than one instance entry in this * array.

*/ inline CreateCloudFormationStackRequest& WithInstances(const Aws::Vector& value) { SetInstances(value); return *this;} /** *

An array of parameters that will be used to create the new Amazon EC2 * instance. You can only pass one instance entry at a time in this array. You will * get an invalid parameter error if you pass more than one instance entry in this * array.

*/ inline CreateCloudFormationStackRequest& WithInstances(Aws::Vector&& value) { SetInstances(std::move(value)); return *this;} /** *

An array of parameters that will be used to create the new Amazon EC2 * instance. You can only pass one instance entry at a time in this array. You will * get an invalid parameter error if you pass more than one instance entry in this * array.

*/ inline CreateCloudFormationStackRequest& AddInstances(const InstanceEntry& value) { m_instancesHasBeenSet = true; m_instances.push_back(value); return *this; } /** *

An array of parameters that will be used to create the new Amazon EC2 * instance. You can only pass one instance entry at a time in this array. You will * get an invalid parameter error if you pass more than one instance entry in this * array.

*/ inline CreateCloudFormationStackRequest& AddInstances(InstanceEntry&& value) { m_instancesHasBeenSet = true; m_instances.push_back(std::move(value)); return *this; } private: Aws::Vector m_instances; bool m_instancesHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws