Class ServerLaunchConfiguration
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<ServerLaunchConfiguration.Builder,
ServerLaunchConfiguration>
Launch configuration for a server.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal Boolean
Indicates whether a publicly accessible IP address is created when launching the server.builder()
final S3Location
Returns the value of the ConfigureScript property for this object.final ScriptType
The type of configuration script.final String
The type of configuration script.final String
The name of the Amazon EC2 SSH key to be used for connecting to the launched server.final boolean
final boolean
equalsBySdkFields
(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 int
hashCode()
final String
The name of the IAM instance profile.final String
The instance type to use when launching the server.final String
The logical ID of the server in the CloudFormation template.final String
The ID of the security group that applies to the launched server.static Class
<? extends ServerLaunchConfiguration.Builder> final Server
server()
The ID of the server with which the launch configuration is associated.final String
subnet()
The ID of the subnet the server should be launched into.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final UserData
userData()
Location of the user-data script to be executed when launching the server.final String
vpc()
The ID of the VPC into which the server should be launched.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
server
The ID of the server with which the launch configuration is associated.
- Returns:
- The ID of the server with which the launch configuration is associated.
-
logicalId
The logical ID of the server in the CloudFormation template.
- Returns:
- The logical ID of the server in the CloudFormation template.
-
vpc
The ID of the VPC into which the server should be launched.
- Returns:
- The ID of the VPC into which the server should be launched.
-
subnet
The ID of the subnet the server should be launched into.
- Returns:
- The ID of the subnet the server should be launched into.
-
securityGroup
The ID of the security group that applies to the launched server.
- Returns:
- The ID of the security group that applies to the launched server.
-
ec2KeyName
The name of the Amazon EC2 SSH key to be used for connecting to the launched server.
- Returns:
- The name of the Amazon EC2 SSH key to be used for connecting to the launched server.
-
userData
Location of the user-data script to be executed when launching the server.
- Returns:
- Location of the user-data script to be executed when launching the server.
-
instanceType
The instance type to use when launching the server.
- Returns:
- The instance type to use when launching the server.
-
associatePublicIpAddress
Indicates whether a publicly accessible IP address is created when launching the server.
- Returns:
- Indicates whether a publicly accessible IP address is created when launching the server.
-
iamInstanceProfileName
The name of the IAM instance profile.
- Returns:
- The name of the IAM instance profile.
-
configureScript
Returns the value of the ConfigureScript property for this object.- Returns:
- The value of the ConfigureScript property for this object.
-
configureScriptType
The type of configuration script.
If the service returns an enum value that is not available in the current SDK version,
configureScriptType
will returnScriptType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromconfigureScriptTypeAsString()
.- Returns:
- The type of configuration script.
- See Also:
-
configureScriptTypeAsString
The type of configuration script.
If the service returns an enum value that is not available in the current SDK version,
configureScriptType
will returnScriptType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromconfigureScriptTypeAsString()
.- Returns:
- The type of configuration script.
- See Also:
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<ServerLaunchConfiguration.Builder,
ServerLaunchConfiguration> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in 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:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-