/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the launch specification for a Scheduled Instance. If you
* are launching the Scheduled Instance in EC2-VPC, you must specify the ID of the
* subnet. You can specify the subnet using either SubnetId
or
* NetworkInterface
.See Also:
AWS
* API Reference
The block device mapping entries.
*/ inline const Aws::VectorThe block device mapping entries.
*/ inline bool BlockDeviceMappingsHasBeenSet() const { return m_blockDeviceMappingsHasBeenSet; } /** *The block device mapping entries.
*/ inline void SetBlockDeviceMappings(const Aws::VectorThe block device mapping entries.
*/ inline void SetBlockDeviceMappings(Aws::VectorThe block device mapping entries.
*/ inline ScheduledInstancesLaunchSpecification& WithBlockDeviceMappings(const Aws::VectorThe block device mapping entries.
*/ inline ScheduledInstancesLaunchSpecification& WithBlockDeviceMappings(Aws::VectorThe block device mapping entries.
*/ inline ScheduledInstancesLaunchSpecification& AddBlockDeviceMappings(const ScheduledInstancesBlockDeviceMapping& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(value); return *this; } /** *The block device mapping entries.
*/ inline ScheduledInstancesLaunchSpecification& AddBlockDeviceMappings(ScheduledInstancesBlockDeviceMapping&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(std::move(value)); return *this; } /** *Indicates whether the instances are optimized for EBS I/O. This optimization * provides dedicated throughput to Amazon EBS and an optimized configuration stack * to provide optimal EBS I/O performance. This optimization isn't available with * all instance types. Additional usage charges apply when using an EBS-optimized * instance.
Default: false
Indicates whether the instances are optimized for EBS I/O. This optimization * provides dedicated throughput to Amazon EBS and an optimized configuration stack * to provide optimal EBS I/O performance. This optimization isn't available with * all instance types. Additional usage charges apply when using an EBS-optimized * instance.
Default: false
Indicates whether the instances are optimized for EBS I/O. This optimization * provides dedicated throughput to Amazon EBS and an optimized configuration stack * to provide optimal EBS I/O performance. This optimization isn't available with * all instance types. Additional usage charges apply when using an EBS-optimized * instance.
Default: false
Indicates whether the instances are optimized for EBS I/O. This optimization * provides dedicated throughput to Amazon EBS and an optimized configuration stack * to provide optimal EBS I/O performance. This optimization isn't available with * all instance types. Additional usage charges apply when using an EBS-optimized * instance.
Default: false
The IAM instance profile.
*/ inline const ScheduledInstancesIamInstanceProfile& GetIamInstanceProfile() const{ return m_iamInstanceProfile; } /** *The IAM instance profile.
*/ inline bool IamInstanceProfileHasBeenSet() const { return m_iamInstanceProfileHasBeenSet; } /** *The IAM instance profile.
*/ inline void SetIamInstanceProfile(const ScheduledInstancesIamInstanceProfile& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = value; } /** *The IAM instance profile.
*/ inline void SetIamInstanceProfile(ScheduledInstancesIamInstanceProfile&& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = std::move(value); } /** *The IAM instance profile.
*/ inline ScheduledInstancesLaunchSpecification& WithIamInstanceProfile(const ScheduledInstancesIamInstanceProfile& value) { SetIamInstanceProfile(value); return *this;} /** *The IAM instance profile.
*/ inline ScheduledInstancesLaunchSpecification& WithIamInstanceProfile(ScheduledInstancesIamInstanceProfile&& value) { SetIamInstanceProfile(std::move(value)); return *this;} /** *The ID of the Amazon Machine Image (AMI).
*/ inline const Aws::String& GetImageId() const{ return m_imageId; } /** *The ID of the Amazon Machine Image (AMI).
*/ inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; } /** *The ID of the Amazon Machine Image (AMI).
*/ inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; } /** *The ID of the Amazon Machine Image (AMI).
*/ inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); } /** *The ID of the Amazon Machine Image (AMI).
*/ inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); } /** *The ID of the Amazon Machine Image (AMI).
*/ inline ScheduledInstancesLaunchSpecification& WithImageId(const Aws::String& value) { SetImageId(value); return *this;} /** *The ID of the Amazon Machine Image (AMI).
*/ inline ScheduledInstancesLaunchSpecification& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;} /** *The ID of the Amazon Machine Image (AMI).
*/ inline ScheduledInstancesLaunchSpecification& WithImageId(const char* value) { SetImageId(value); return *this;} /** *The instance type.
*/ inline const Aws::String& GetInstanceType() const{ return m_instanceType; } /** *The instance type.
*/ inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; } /** *The instance type.
*/ inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; } /** *The instance type.
*/ inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); } /** *The instance type.
*/ inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); } /** *The instance type.
*/ inline ScheduledInstancesLaunchSpecification& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;} /** *The instance type.
*/ inline ScheduledInstancesLaunchSpecification& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;} /** *The instance type.
*/ inline ScheduledInstancesLaunchSpecification& WithInstanceType(const char* value) { SetInstanceType(value); return *this;} /** *The ID of the kernel.
*/ inline const Aws::String& GetKernelId() const{ return m_kernelId; } /** *The ID of the kernel.
*/ inline bool KernelIdHasBeenSet() const { return m_kernelIdHasBeenSet; } /** *The ID of the kernel.
*/ inline void SetKernelId(const Aws::String& value) { m_kernelIdHasBeenSet = true; m_kernelId = value; } /** *The ID of the kernel.
*/ inline void SetKernelId(Aws::String&& value) { m_kernelIdHasBeenSet = true; m_kernelId = std::move(value); } /** *The ID of the kernel.
*/ inline void SetKernelId(const char* value) { m_kernelIdHasBeenSet = true; m_kernelId.assign(value); } /** *The ID of the kernel.
*/ inline ScheduledInstancesLaunchSpecification& WithKernelId(const Aws::String& value) { SetKernelId(value); return *this;} /** *The ID of the kernel.
*/ inline ScheduledInstancesLaunchSpecification& WithKernelId(Aws::String&& value) { SetKernelId(std::move(value)); return *this;} /** *The ID of the kernel.
*/ inline ScheduledInstancesLaunchSpecification& WithKernelId(const char* value) { SetKernelId(value); return *this;} /** *The name of the key pair.
*/ inline const Aws::String& GetKeyName() const{ return m_keyName; } /** *The name of the key pair.
*/ inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; } /** *The name of the key pair.
*/ inline void SetKeyName(const Aws::String& value) { m_keyNameHasBeenSet = true; m_keyName = value; } /** *The name of the key pair.
*/ inline void SetKeyName(Aws::String&& value) { m_keyNameHasBeenSet = true; m_keyName = std::move(value); } /** *The name of the key pair.
*/ inline void SetKeyName(const char* value) { m_keyNameHasBeenSet = true; m_keyName.assign(value); } /** *The name of the key pair.
*/ inline ScheduledInstancesLaunchSpecification& WithKeyName(const Aws::String& value) { SetKeyName(value); return *this;} /** *The name of the key pair.
*/ inline ScheduledInstancesLaunchSpecification& WithKeyName(Aws::String&& value) { SetKeyName(std::move(value)); return *this;} /** *The name of the key pair.
*/ inline ScheduledInstancesLaunchSpecification& WithKeyName(const char* value) { SetKeyName(value); return *this;} /** *Enable or disable monitoring for the instances.
*/ inline const ScheduledInstancesMonitoring& GetMonitoring() const{ return m_monitoring; } /** *Enable or disable monitoring for the instances.
*/ inline bool MonitoringHasBeenSet() const { return m_monitoringHasBeenSet; } /** *Enable or disable monitoring for the instances.
*/ inline void SetMonitoring(const ScheduledInstancesMonitoring& value) { m_monitoringHasBeenSet = true; m_monitoring = value; } /** *Enable or disable monitoring for the instances.
*/ inline void SetMonitoring(ScheduledInstancesMonitoring&& value) { m_monitoringHasBeenSet = true; m_monitoring = std::move(value); } /** *Enable or disable monitoring for the instances.
*/ inline ScheduledInstancesLaunchSpecification& WithMonitoring(const ScheduledInstancesMonitoring& value) { SetMonitoring(value); return *this;} /** *Enable or disable monitoring for the instances.
*/ inline ScheduledInstancesLaunchSpecification& WithMonitoring(ScheduledInstancesMonitoring&& value) { SetMonitoring(std::move(value)); return *this;} /** *The network interfaces.
*/ inline const Aws::VectorThe network interfaces.
*/ inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; } /** *The network interfaces.
*/ inline void SetNetworkInterfaces(const Aws::VectorThe network interfaces.
*/ inline void SetNetworkInterfaces(Aws::VectorThe network interfaces.
*/ inline ScheduledInstancesLaunchSpecification& WithNetworkInterfaces(const Aws::VectorThe network interfaces.
*/ inline ScheduledInstancesLaunchSpecification& WithNetworkInterfaces(Aws::VectorThe network interfaces.
*/ inline ScheduledInstancesLaunchSpecification& AddNetworkInterfaces(const ScheduledInstancesNetworkInterface& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(value); return *this; } /** *The network interfaces.
*/ inline ScheduledInstancesLaunchSpecification& AddNetworkInterfaces(ScheduledInstancesNetworkInterface&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(std::move(value)); return *this; } /** *The placement information.
*/ inline const ScheduledInstancesPlacement& GetPlacement() const{ return m_placement; } /** *The placement information.
*/ inline bool PlacementHasBeenSet() const { return m_placementHasBeenSet; } /** *The placement information.
*/ inline void SetPlacement(const ScheduledInstancesPlacement& value) { m_placementHasBeenSet = true; m_placement = value; } /** *The placement information.
*/ inline void SetPlacement(ScheduledInstancesPlacement&& value) { m_placementHasBeenSet = true; m_placement = std::move(value); } /** *The placement information.
*/ inline ScheduledInstancesLaunchSpecification& WithPlacement(const ScheduledInstancesPlacement& value) { SetPlacement(value); return *this;} /** *The placement information.
*/ inline ScheduledInstancesLaunchSpecification& WithPlacement(ScheduledInstancesPlacement&& value) { SetPlacement(std::move(value)); return *this;} /** *The ID of the RAM disk.
*/ inline const Aws::String& GetRamdiskId() const{ return m_ramdiskId; } /** *The ID of the RAM disk.
*/ inline bool RamdiskIdHasBeenSet() const { return m_ramdiskIdHasBeenSet; } /** *The ID of the RAM disk.
*/ inline void SetRamdiskId(const Aws::String& value) { m_ramdiskIdHasBeenSet = true; m_ramdiskId = value; } /** *The ID of the RAM disk.
*/ inline void SetRamdiskId(Aws::String&& value) { m_ramdiskIdHasBeenSet = true; m_ramdiskId = std::move(value); } /** *The ID of the RAM disk.
*/ inline void SetRamdiskId(const char* value) { m_ramdiskIdHasBeenSet = true; m_ramdiskId.assign(value); } /** *The ID of the RAM disk.
*/ inline ScheduledInstancesLaunchSpecification& WithRamdiskId(const Aws::String& value) { SetRamdiskId(value); return *this;} /** *The ID of the RAM disk.
*/ inline ScheduledInstancesLaunchSpecification& WithRamdiskId(Aws::String&& value) { SetRamdiskId(std::move(value)); return *this;} /** *The ID of the RAM disk.
*/ inline ScheduledInstancesLaunchSpecification& WithRamdiskId(const char* value) { SetRamdiskId(value); return *this;} /** *The IDs of the security groups.
*/ inline const Aws::VectorThe IDs of the security groups.
*/ inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; } /** *The IDs of the security groups.
*/ inline void SetSecurityGroupIds(const Aws::VectorThe IDs of the security groups.
*/ inline void SetSecurityGroupIds(Aws::VectorThe IDs of the security groups.
*/ inline ScheduledInstancesLaunchSpecification& WithSecurityGroupIds(const Aws::VectorThe IDs of the security groups.
*/ inline ScheduledInstancesLaunchSpecification& WithSecurityGroupIds(Aws::VectorThe IDs of the security groups.
*/ inline ScheduledInstancesLaunchSpecification& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *The IDs of the security groups.
*/ inline ScheduledInstancesLaunchSpecification& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; } /** *The IDs of the security groups.
*/ inline ScheduledInstancesLaunchSpecification& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *The ID of the subnet in which to launch the instances.
*/ inline const Aws::String& GetSubnetId() const{ return m_subnetId; } /** *The ID of the subnet in which to launch the instances.
*/ inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; } /** *The ID of the subnet in which to launch the instances.
*/ inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; } /** *The ID of the subnet in which to launch the instances.
*/ inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); } /** *The ID of the subnet in which to launch the instances.
*/ inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); } /** *The ID of the subnet in which to launch the instances.
*/ inline ScheduledInstancesLaunchSpecification& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;} /** *The ID of the subnet in which to launch the instances.
*/ inline ScheduledInstancesLaunchSpecification& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;} /** *The ID of the subnet in which to launch the instances.
*/ inline ScheduledInstancesLaunchSpecification& WithSubnetId(const char* value) { SetSubnetId(value); return *this;} /** *The base64-encoded MIME user data.
*/ inline const Aws::String& GetUserData() const{ return m_userData; } /** *The base64-encoded MIME user data.
*/ inline bool UserDataHasBeenSet() const { return m_userDataHasBeenSet; } /** *The base64-encoded MIME user data.
*/ inline void SetUserData(const Aws::String& value) { m_userDataHasBeenSet = true; m_userData = value; } /** *The base64-encoded MIME user data.
*/ inline void SetUserData(Aws::String&& value) { m_userDataHasBeenSet = true; m_userData = std::move(value); } /** *The base64-encoded MIME user data.
*/ inline void SetUserData(const char* value) { m_userDataHasBeenSet = true; m_userData.assign(value); } /** *The base64-encoded MIME user data.
*/ inline ScheduledInstancesLaunchSpecification& WithUserData(const Aws::String& value) { SetUserData(value); return *this;} /** *The base64-encoded MIME user data.
*/ inline ScheduledInstancesLaunchSpecification& WithUserData(Aws::String&& value) { SetUserData(std::move(value)); return *this;} /** *The base64-encoded MIME user data.
*/ inline ScheduledInstancesLaunchSpecification& WithUserData(const char* value) { SetUserData(value); return *this;} private: Aws::Vector