Class LaunchParameters
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<LaunchParameters.Builder,LaunchParameters>
The parameters for launching Amazon EC2 instances in a capacity provider.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic LaunchParameters.Builderbuilder()The Capacity Reservation targeting option for the instances.final List<EphemeralBlockDeviceMapping> The block device mappings for instance store (ephemeral) volumes.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the EphemeralVolumes property.final inthashCode()final booleanFor responses, this returns true if the service returned a value for the LicenseSpecifications property.final booleanFor responses, this returns true if the service returned a value for the PropagatedTags property.final StringThe Amazon Resource Name (ARN) of the IAM instance profile to associate with launched instances.final InstanceRequirementsThe requirements that determine which instance types can be launched.final List<LicenseSpecification> The license configurations to associate with the instances.final MonitoringThe monitoring level for the instances.final StringThe monitoring level for the instances.final OperatingSystemThe operating system and CPU architecture for the instances.final StringThe operating system and CPU architecture for the instances.The tags to propagate to all Amazon EC2 resources (instances, volumes, and network interfaces) that the capacity provider creates.static Class<? extends LaunchParameters.Builder> final StringThe name of the SSH key pair to configure on the instances for SSH connectivity.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
operatingSystem
The operating system and CPU architecture for the instances.
If the service returns an enum value that is not available in the current SDK version,
operatingSystemwill returnOperatingSystem.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromoperatingSystemAsString().- Returns:
- The operating system and CPU architecture for the instances.
- See Also:
-
operatingSystemAsString
The operating system and CPU architecture for the instances.
If the service returns an enum value that is not available in the current SDK version,
operatingSystemwill returnOperatingSystem.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromoperatingSystemAsString().- Returns:
- The operating system and CPU architecture for the instances.
- See Also:
-
instanceRequirements
The requirements that determine which instance types can be launched.
- Returns:
- The requirements that determine which instance types can be launched.
-
hasEphemeralVolumes
public final boolean hasEphemeralVolumes()For responses, this returns true if the service returned a value for the EphemeralVolumes property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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. -
ephemeralVolumes
The block device mappings for instance store (ephemeral) volumes. You can specify up to five mappings.
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
hasEphemeralVolumes()method.- Returns:
- The block device mappings for instance store (ephemeral) volumes. You can specify up to five mappings.
-
monitoring
The monitoring level for the instances.
If the service returns an enum value that is not available in the current SDK version,
monitoringwill returnMonitoring.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommonitoringAsString().- Returns:
- The monitoring level for the instances.
- See Also:
-
monitoringAsString
The monitoring level for the instances.
If the service returns an enum value that is not available in the current SDK version,
monitoringwill returnMonitoring.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommonitoringAsString().- Returns:
- The monitoring level for the instances.
- See Also:
-
hasLicenseSpecifications
public final boolean hasLicenseSpecifications()For responses, this returns true if the service returned a value for the LicenseSpecifications property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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. -
licenseSpecifications
The license configurations to associate with the instances. You can specify up to five configurations.
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
hasLicenseSpecifications()method.- Returns:
- The license configurations to associate with the instances. You can specify up to five configurations.
-
capacityReservationSpecification
The Capacity Reservation targeting option for the instances.
- Returns:
- The Capacity Reservation targeting option for the instances.
-
sshKeyName
The name of the SSH key pair to configure on the instances for SSH connectivity.
- Returns:
- The name of the SSH key pair to configure on the instances for SSH connectivity.
-
instanceProfileArn
The Amazon Resource Name (ARN) of the IAM instance profile to associate with launched instances. If provided, this overrides the default instance profile.
- Returns:
- The Amazon Resource Name (ARN) of the IAM instance profile to associate with launched instances. If provided, this overrides the default instance profile.
-
hasPropagatedTags
public final boolean hasPropagatedTags()For responses, this returns true if the service returned a value for the PropagatedTags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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. -
propagatedTags
The tags to propagate to all Amazon EC2 resources (instances, volumes, and network interfaces) that the capacity provider creates.
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
hasPropagatedTags()method.- Returns:
- The tags to propagate to all Amazon EC2 resources (instances, volumes, and network interfaces) that the capacity provider creates.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<LaunchParameters.Builder,LaunchParameters> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-