Java com.amazonaws.services.ec2.model RunInstancesRequest fields, constructors, methods, implement or subclass

Example usage for Java com.amazonaws.services.ec2.model RunInstancesRequest fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.amazonaws.services.ec2.model RunInstancesRequest.

The text is from its open source code.

Constructor

RunInstancesRequest()
Default constructor for RunInstancesRequest object.
RunInstancesRequest(String imageId, Integer minCount, Integer maxCount)
Constructs a new RunInstancesRequest object.

Method

StringgetImageId()

The ID of the AMI.

StringgetInstanceType()

The instance type.

StringgetKernelId()

The ID of the kernel.

StringgetKeyName()

The name of the key pair.

IntegergetMaxCount()

The maximum number of instances to launch.

IntegergetMinCount()

The minimum number of instances to launch.

PlacementgetPlacement()

The placement for the instance.

StringgetRamdiskId()

The ID of the RAM disk to select.

java.util.ListgetSecurityGroups()

[EC2-Classic, default VPC] The names of the security groups.

StringgetSubnetId()

[EC2-VPC] The ID of the subnet to launch the instance into.

StringgetUserData()

The user data to make available to the instance.

BooleanisMonitoring()

Specifies whether detailed monitoring is enabled for the instance.

voidsetAdditionalInfo(String additionalInfo)

Reserved.

voidsetBlockDeviceMappings(java.util.Collection blockDeviceMappings)

The block device mapping entries.

voidsetClientToken(String clientToken)

Unique, case-sensitive identifier you provide to ensure the idempotency of the request.

voidsetDisableApiTermination(Boolean disableApiTermination)

If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can.

voidsetGeneralProgressListener(ProgressListener progressListener)
Sets the optional progress listener for receiving updates about the progress of the request.
voidsetIamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)

The IAM instance profile.

voidsetImageId(String imageId)

The ID of the AMI.

voidsetInstanceType(String instanceType)

The instance type.

voidsetInstanceType(InstanceType instanceType)

The instance type.

voidsetKernelId(String kernelId)

The ID of the kernel.

voidsetKeyName(String keyName)

The name of the key pair.

voidsetMaxCount(Integer maxCount)

The maximum number of instances to launch.

voidsetMinCount(Integer minCount)

The minimum number of instances to launch.

voidsetMonitoring(Boolean monitoring)

Specifies whether detailed monitoring is enabled for the instance.

voidsetPlacement(Placement placement)

The placement for the instance.

voidsetRamdiskId(String ramdiskId)

The ID of the RAM disk to select.

voidsetRequestCredentials(AWSCredentials credentials)
Sets the optional credentials to use for this request, overriding the default credentials set at the client level.
voidsetSecurityGroupIds(java.util.Collection securityGroupIds)

The IDs of the security groups.

voidsetSecurityGroups(java.util.Collection securityGroups)

[EC2-Classic, default VPC] The names of the security groups.

voidsetSubnetId(String subnetId)

[EC2-VPC] The ID of the subnet to launch the instance into.

voidsetUserData(String userData)

The user data to make available to the instance.

RunInstancesRequestwithBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)

The block device mapping entries.

RunInstancesRequestwithBlockDeviceMappings( java.util.Collection blockDeviceMappings)

The block device mapping entries.

RunInstancesRequestwithIamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)

The IAM instance profile.

RunInstancesRequestwithImageId(String imageId)

The ID of the AMI.

RunInstancesRequestwithInstanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior)

Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

RunInstancesRequestwithInstanceInitiatedShutdownBehavior( ShutdownBehavior instanceInitiatedShutdownBehavior)

Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

RunInstancesRequestwithInstanceType(String instanceType)

The instance type.

RunInstancesRequestwithInstanceType(InstanceType instanceType)

The instance type.

RunInstancesRequestwithKernelId(String kernelId)

The ID of the kernel.

RunInstancesRequestwithKeyName(String keyName)

The name of the key pair.

RunInstancesRequestwithMaxCount(Integer maxCount)

The maximum number of instances to launch.

RunInstancesRequestwithMinCount(Integer minCount)

The minimum number of instances to launch.

RunInstancesRequestwithMonitoring(Boolean monitoring)

Specifies whether detailed monitoring is enabled for the instance.

RunInstancesRequestwithNetworkInterfaces(InstanceNetworkInterfaceSpecification... networkInterfaces)

The network interfaces to associate with the instance.

RunInstancesRequestwithNetworkInterfaces( java.util.Collection networkInterfaces)

The network interfaces to associate with the instance.

RunInstancesRequestwithPlacement(Placement placement)

The placement for the instance.

RunInstancesRequestwithPrivateIpAddress(String privateIpAddress)

[EC2-VPC] The primary IPv4 address.

RunInstancesRequestwithRamdiskId(String ramdiskId)

The ID of the RAM disk to select.

RunInstancesRequestwithSecurityGroupIds(String... securityGroupIds)

The IDs of the security groups.

RunInstancesRequestwithSecurityGroupIds(java.util.Collection securityGroupIds)

The IDs of the security groups.

RunInstancesRequestwithSecurityGroups(String... securityGroups)

[EC2-Classic, default VPC] The names of the security groups.

RunInstancesRequestwithSecurityGroups(java.util.Collection securityGroups)

[EC2-Classic, default VPC] The names of the security groups.

RunInstancesRequestwithSubnetId(String subnetId)

[EC2-VPC] The ID of the subnet to launch the instance into.

RunInstancesRequestwithUserData(String userData)

The user data to make available to the instance.