@Generated(value="software.amazon.awssdk:codegen") public final class ImportInstanceLaunchSpecification extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ImportInstanceLaunchSpecification.Builder,ImportInstanceLaunchSpecification>
Describes the launch specification for VM import.
Modifier and Type | Class and Description |
---|---|
static interface |
ImportInstanceLaunchSpecification.Builder |
Modifier and Type | Method and Description |
---|---|
String |
additionalInfo()
Reserved.
|
ArchitectureValues |
architecture()
The architecture of the instance.
|
String |
architectureAsString()
The architecture of the instance.
|
static ImportInstanceLaunchSpecification.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
List<String> |
groupIds()
The security group IDs.
|
List<String> |
groupNames()
The security group names.
|
boolean |
hasGroupIds()
For responses, this returns true if the service returned a value for the GroupIds property.
|
boolean |
hasGroupNames()
For responses, this returns true if the service returned a value for the GroupNames property.
|
int |
hashCode() |
ShutdownBehavior |
instanceInitiatedShutdownBehavior()
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the
operating system command for system shutdown).
|
String |
instanceInitiatedShutdownBehaviorAsString()
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the
operating system command for system shutdown).
|
InstanceType |
instanceType()
The instance type.
|
String |
instanceTypeAsString()
The instance type.
|
Boolean |
monitoring()
Indicates whether monitoring is enabled.
|
Placement |
placement()
The placement information for the instance.
|
String |
privateIpAddress()
[EC2-VPC] An available IP address from the IP address range of the subnet.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ImportInstanceLaunchSpecification.Builder> |
serializableBuilderClass() |
String |
subnetId()
[EC2-VPC] The ID of the subnet in which to launch the instance.
|
ImportInstanceLaunchSpecification.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
UserData |
userData()
The Base64-encoded user data to make available to the instance.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final String additionalInfo()
Reserved.
public final ArchitectureValues architecture()
The architecture of the instance.
If the service returns an enum value that is not available in the current SDK version, architecture
will
return ArchitectureValues.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
architectureAsString()
.
ArchitectureValues
public final String architectureAsString()
The architecture of the instance.
If the service returns an enum value that is not available in the current SDK version, architecture
will
return ArchitectureValues.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
architectureAsString()
.
ArchitectureValues
public final boolean hasGroupIds()
isEmpty()
method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<String> groupIds()
The security group IDs.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasGroupIds()
method.
public final boolean hasGroupNames()
isEmpty()
method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<String> groupNames()
The security group names.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasGroupNames()
method.
public final ShutdownBehavior instanceInitiatedShutdownBehavior()
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
If the service returns an enum value that is not available in the current SDK version,
instanceInitiatedShutdownBehavior
will return ShutdownBehavior.UNKNOWN_TO_SDK_VERSION
. The raw
value returned by the service is available from instanceInitiatedShutdownBehaviorAsString()
.
ShutdownBehavior
public final String instanceInitiatedShutdownBehaviorAsString()
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
If the service returns an enum value that is not available in the current SDK version,
instanceInitiatedShutdownBehavior
will return ShutdownBehavior.UNKNOWN_TO_SDK_VERSION
. The raw
value returned by the service is available from instanceInitiatedShutdownBehaviorAsString()
.
ShutdownBehavior
public final 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.
If the service returns an enum value that is not available in the current SDK version, instanceType
will
return InstanceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
instanceTypeAsString()
.
InstanceType
public final String instanceTypeAsString()
The instance type. For more information about the instance types that you can import, see Instance Types in the VM Import/Export User Guide.
If the service returns an enum value that is not available in the current SDK version, instanceType
will
return InstanceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
instanceTypeAsString()
.
InstanceType
public final Boolean monitoring()
Indicates whether monitoring is enabled.
public final Placement placement()
The placement information for the instance.
public final String privateIpAddress()
[EC2-VPC] An available IP address from the IP address range of the subnet.
public final String subnetId()
[EC2-VPC] The ID of the subnet in which to launch the instance.
public final UserData userData()
The Base64-encoded user data to make available to the instance.
public ImportInstanceLaunchSpecification.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<ImportInstanceLaunchSpecification.Builder,ImportInstanceLaunchSpecification>
public static ImportInstanceLaunchSpecification.Builder builder()
public static Class<? extends ImportInstanceLaunchSpecification.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2022. All rights reserved.