@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ServerLaunchConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Launch configuration for a server.
Constructor and Description |
---|
ServerLaunchConfiguration() |
Modifier and Type | Method and Description |
---|---|
ServerLaunchConfiguration |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAssociatePublicIpAddress()
If true, a publicly accessible IP address is created when launching the server.
|
String |
getEc2KeyName()
Name of the EC2 SSH Key to be used for connecting to the launched server.
|
String |
getInstanceType()
Instance type to be used for launching the server.
|
String |
getLogicalId()
Logical ID of the server in the Amazon CloudFormation template.
|
String |
getSecurityGroup()
Identifier of the security group that applies to the launched server.
|
Server |
getServer()
Identifier of the server the launch configuration is associated with.
|
String |
getSubnet()
Identifier of the subnet the server should be launched into.
|
UserData |
getUserData()
Location of the user-data script to be executed when launching the server.
|
String |
getVpc()
Identifier of the VPC the server should be launched into.
|
int |
hashCode() |
Boolean |
isAssociatePublicIpAddress()
If true, a publicly accessible IP address is created when launching the server.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAssociatePublicIpAddress(Boolean associatePublicIpAddress)
If true, a publicly accessible IP address is created when launching the server.
|
void |
setEc2KeyName(String ec2KeyName)
Name of the EC2 SSH Key to be used for connecting to the launched server.
|
void |
setInstanceType(String instanceType)
Instance type to be used for launching the server.
|
void |
setLogicalId(String logicalId)
Logical ID of the server in the Amazon CloudFormation template.
|
void |
setSecurityGroup(String securityGroup)
Identifier of the security group that applies to the launched server.
|
void |
setServer(Server server)
Identifier of the server the launch configuration is associated with.
|
void |
setSubnet(String subnet)
Identifier of the subnet the server should be launched into.
|
void |
setUserData(UserData userData)
Location of the user-data script to be executed when launching the server.
|
void |
setVpc(String vpc)
Identifier of the VPC the server should be launched into.
|
String |
toString()
Returns a string representation of this object.
|
ServerLaunchConfiguration |
withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
If true, a publicly accessible IP address is created when launching the server.
|
ServerLaunchConfiguration |
withEc2KeyName(String ec2KeyName)
Name of the EC2 SSH Key to be used for connecting to the launched server.
|
ServerLaunchConfiguration |
withInstanceType(String instanceType)
Instance type to be used for launching the server.
|
ServerLaunchConfiguration |
withLogicalId(String logicalId)
Logical ID of the server in the Amazon CloudFormation template.
|
ServerLaunchConfiguration |
withSecurityGroup(String securityGroup)
Identifier of the security group that applies to the launched server.
|
ServerLaunchConfiguration |
withServer(Server server)
Identifier of the server the launch configuration is associated with.
|
ServerLaunchConfiguration |
withSubnet(String subnet)
Identifier of the subnet the server should be launched into.
|
ServerLaunchConfiguration |
withUserData(UserData userData)
Location of the user-data script to be executed when launching the server.
|
ServerLaunchConfiguration |
withVpc(String vpc)
Identifier of the VPC the server should be launched into.
|
public void setServer(Server server)
Identifier of the server the launch configuration is associated with.
server
- Identifier of the server the launch configuration is associated with.public Server getServer()
Identifier of the server the launch configuration is associated with.
public ServerLaunchConfiguration withServer(Server server)
Identifier of the server the launch configuration is associated with.
server
- Identifier of the server the launch configuration is associated with.public void setLogicalId(String logicalId)
Logical ID of the server in the Amazon CloudFormation template.
logicalId
- Logical ID of the server in the Amazon CloudFormation template.public String getLogicalId()
Logical ID of the server in the Amazon CloudFormation template.
public ServerLaunchConfiguration withLogicalId(String logicalId)
Logical ID of the server in the Amazon CloudFormation template.
logicalId
- Logical ID of the server in the Amazon CloudFormation template.public void setVpc(String vpc)
Identifier of the VPC the server should be launched into.
vpc
- Identifier of the VPC the server should be launched into.public String getVpc()
Identifier of the VPC the server should be launched into.
public ServerLaunchConfiguration withVpc(String vpc)
Identifier of the VPC the server should be launched into.
vpc
- Identifier of the VPC the server should be launched into.public void setSubnet(String subnet)
Identifier of the subnet the server should be launched into.
subnet
- Identifier of the subnet the server should be launched into.public String getSubnet()
Identifier of the subnet the server should be launched into.
public ServerLaunchConfiguration withSubnet(String subnet)
Identifier of the subnet the server should be launched into.
subnet
- Identifier of the subnet the server should be launched into.public void setSecurityGroup(String securityGroup)
Identifier of the security group that applies to the launched server.
securityGroup
- Identifier of the security group that applies to the launched server.public String getSecurityGroup()
Identifier of the security group that applies to the launched server.
public ServerLaunchConfiguration withSecurityGroup(String securityGroup)
Identifier of the security group that applies to the launched server.
securityGroup
- Identifier of the security group that applies to the launched server.public void setEc2KeyName(String ec2KeyName)
Name of the EC2 SSH Key to be used for connecting to the launched server.
ec2KeyName
- Name of the EC2 SSH Key to be used for connecting to the launched server.public String getEc2KeyName()
Name of the EC2 SSH Key to be used for connecting to the launched server.
public ServerLaunchConfiguration withEc2KeyName(String ec2KeyName)
Name of the EC2 SSH Key to be used for connecting to the launched server.
ec2KeyName
- Name of the EC2 SSH Key to be used for connecting to the launched server.public void setUserData(UserData userData)
Location of the user-data script to be executed when launching the server.
userData
- Location of the user-data script to be executed when launching the server.public UserData getUserData()
Location of the user-data script to be executed when launching the server.
public ServerLaunchConfiguration withUserData(UserData userData)
Location of the user-data script to be executed when launching the server.
userData
- Location of the user-data script to be executed when launching the server.public void setInstanceType(String instanceType)
Instance type to be used for launching the server.
instanceType
- Instance type to be used for launching the server.public String getInstanceType()
Instance type to be used for launching the server.
public ServerLaunchConfiguration withInstanceType(String instanceType)
Instance type to be used for launching the server.
instanceType
- Instance type to be used for launching the server.public void setAssociatePublicIpAddress(Boolean associatePublicIpAddress)
If true, a publicly accessible IP address is created when launching the server.
associatePublicIpAddress
- If true, a publicly accessible IP address is created when launching the server.public Boolean getAssociatePublicIpAddress()
If true, a publicly accessible IP address is created when launching the server.
public ServerLaunchConfiguration withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
If true, a publicly accessible IP address is created when launching the server.
associatePublicIpAddress
- If true, a publicly accessible IP address is created when launching the server.public Boolean isAssociatePublicIpAddress()
If true, a publicly accessible IP address is created when launching the server.
public String toString()
toString
in class Object
Object.toString()
public ServerLaunchConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.