Interface ImportInstanceLaunchSpecification.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<ImportInstanceLaunchSpecification.Builder,ImportInstanceLaunchSpecification>
,SdkBuilder<ImportInstanceLaunchSpecification.Builder,ImportInstanceLaunchSpecification>
,SdkPojo
- Enclosing class:
- ImportInstanceLaunchSpecification
public static interface ImportInstanceLaunchSpecification.Builder extends SdkPojo, CopyableBuilder<ImportInstanceLaunchSpecification.Builder,ImportInstanceLaunchSpecification>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ImportInstanceLaunchSpecification.Builder
additionalInfo(String additionalInfo)
Reserved.ImportInstanceLaunchSpecification.Builder
architecture(String architecture)
The architecture of the instance.ImportInstanceLaunchSpecification.Builder
architecture(ArchitectureValues architecture)
The architecture of the instance.ImportInstanceLaunchSpecification.Builder
groupIds(String... groupIds)
The security group IDs.ImportInstanceLaunchSpecification.Builder
groupIds(Collection<String> groupIds)
The security group IDs.ImportInstanceLaunchSpecification.Builder
groupNames(String... groupNames)
The security group names.ImportInstanceLaunchSpecification.Builder
groupNames(Collection<String> groupNames)
The security group names.ImportInstanceLaunchSpecification.Builder
instanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).ImportInstanceLaunchSpecification.Builder
instanceInitiatedShutdownBehavior(ShutdownBehavior instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).ImportInstanceLaunchSpecification.Builder
instanceType(String instanceType)
The instance type.ImportInstanceLaunchSpecification.Builder
instanceType(InstanceType instanceType)
The instance type.ImportInstanceLaunchSpecification.Builder
monitoring(Boolean monitoring)
Indicates whether monitoring is enabled.default ImportInstanceLaunchSpecification.Builder
placement(Consumer<Placement.Builder> placement)
The placement information for the instance.ImportInstanceLaunchSpecification.Builder
placement(Placement placement)
The placement information for the instance.ImportInstanceLaunchSpecification.Builder
privateIpAddress(String privateIpAddress)
[EC2-VPC] An available IP address from the IP address range of the subnet.ImportInstanceLaunchSpecification.Builder
subnetId(String subnetId)
[EC2-VPC] The ID of the subnet in which to launch the instance.default ImportInstanceLaunchSpecification.Builder
userData(Consumer<UserData.Builder> userData)
The Base64-encoded user data to make available to the instance.ImportInstanceLaunchSpecification.Builder
userData(UserData userData)
The Base64-encoded user data to make available to the instance.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
additionalInfo
ImportInstanceLaunchSpecification.Builder additionalInfo(String additionalInfo)
Reserved.
- Parameters:
additionalInfo
- Reserved.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
architecture
ImportInstanceLaunchSpecification.Builder architecture(String architecture)
The architecture of the instance.
- Parameters:
architecture
- The architecture of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ArchitectureValues
,ArchitectureValues
-
architecture
ImportInstanceLaunchSpecification.Builder architecture(ArchitectureValues architecture)
The architecture of the instance.
- Parameters:
architecture
- The architecture of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ArchitectureValues
,ArchitectureValues
-
groupIds
ImportInstanceLaunchSpecification.Builder groupIds(Collection<String> groupIds)
The security group IDs.
- Parameters:
groupIds
- The security group IDs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupIds
ImportInstanceLaunchSpecification.Builder groupIds(String... groupIds)
The security group IDs.
- Parameters:
groupIds
- The security group IDs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupNames
ImportInstanceLaunchSpecification.Builder groupNames(Collection<String> groupNames)
The security group names.
- Parameters:
groupNames
- The security group names.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupNames
ImportInstanceLaunchSpecification.Builder groupNames(String... groupNames)
The security group names.
- Parameters:
groupNames
- The security group names.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceInitiatedShutdownBehavior
ImportInstanceLaunchSpecification.Builder instanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
- Parameters:
instanceInitiatedShutdownBehavior
- Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ShutdownBehavior
,ShutdownBehavior
-
instanceInitiatedShutdownBehavior
ImportInstanceLaunchSpecification.Builder instanceInitiatedShutdownBehavior(ShutdownBehavior instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
- Parameters:
instanceInitiatedShutdownBehavior
- Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ShutdownBehavior
,ShutdownBehavior
-
instanceType
ImportInstanceLaunchSpecification.Builder instanceType(String instanceType)
The instance type. For more information about the instance types that you can import, see Instance Types in the VM Import/Export User Guide.
- Parameters:
instanceType
- The instance type. For more information about the instance types that you can import, see Instance Types in the VM Import/Export User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InstanceType
,InstanceType
-
instanceType
ImportInstanceLaunchSpecification.Builder instanceType(InstanceType instanceType)
The instance type. For more information about the instance types that you can import, see Instance Types in the VM Import/Export User Guide.
- Parameters:
instanceType
- The instance type. For more information about the instance types that you can import, see Instance Types in the VM Import/Export User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InstanceType
,InstanceType
-
monitoring
ImportInstanceLaunchSpecification.Builder monitoring(Boolean monitoring)
Indicates whether monitoring is enabled.
- Parameters:
monitoring
- Indicates whether monitoring is enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
placement
ImportInstanceLaunchSpecification.Builder placement(Placement placement)
The placement information for the instance.
- Parameters:
placement
- The placement information for the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
placement
default ImportInstanceLaunchSpecification.Builder placement(Consumer<Placement.Builder> placement)
The placement information for the instance.
This is a convenience method that creates an instance of thePlacement.Builder
avoiding the need to create one manually viaPlacement.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toplacement(Placement)
.- Parameters:
placement
- a consumer that will call methods onPlacement.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
placement(Placement)
-
privateIpAddress
ImportInstanceLaunchSpecification.Builder privateIpAddress(String privateIpAddress)
[EC2-VPC] An available IP address from the IP address range of the subnet.
- Parameters:
privateIpAddress
- [EC2-VPC] An available IP address from the IP address range of the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetId
ImportInstanceLaunchSpecification.Builder subnetId(String subnetId)
[EC2-VPC] The ID of the subnet in which to launch the instance.
- Parameters:
subnetId
- [EC2-VPC] The ID of the subnet in which to launch the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userData
ImportInstanceLaunchSpecification.Builder userData(UserData userData)
The Base64-encoded user data to make available to the instance.
- Parameters:
userData
- The Base64-encoded user data to make available to the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userData
default ImportInstanceLaunchSpecification.Builder userData(Consumer<UserData.Builder> userData)
The Base64-encoded user data to make available to the instance.
This is a convenience method that creates an instance of theUserData.Builder
avoiding the need to create one manually viaUserData.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed touserData(UserData)
.- Parameters:
userData
- a consumer that will call methods onUserData.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
userData(UserData)
-
-