#[non_exhaustive]pub struct ServerLaunchConfigurationBuilder { /* private fields */ }
Expand description
A builder for ServerLaunchConfiguration
.
Implementations§
source§impl ServerLaunchConfigurationBuilder
impl ServerLaunchConfigurationBuilder
sourcepub fn server(self, input: Server) -> Self
pub fn server(self, input: Server) -> Self
The ID of the server with which the launch configuration is associated.
sourcepub fn set_server(self, input: Option<Server>) -> Self
pub fn set_server(self, input: Option<Server>) -> Self
The ID of the server with which the launch configuration is associated.
sourcepub fn get_server(&self) -> &Option<Server>
pub fn get_server(&self) -> &Option<Server>
The ID of the server with which the launch configuration is associated.
sourcepub fn logical_id(self, input: impl Into<String>) -> Self
pub fn logical_id(self, input: impl Into<String>) -> Self
The logical ID of the server in the CloudFormation template.
sourcepub fn set_logical_id(self, input: Option<String>) -> Self
pub fn set_logical_id(self, input: Option<String>) -> Self
The logical ID of the server in the CloudFormation template.
sourcepub fn get_logical_id(&self) -> &Option<String>
pub fn get_logical_id(&self) -> &Option<String>
The logical ID of the server in the CloudFormation template.
sourcepub fn vpc(self, input: impl Into<String>) -> Self
pub fn vpc(self, input: impl Into<String>) -> Self
The ID of the VPC into which the server should be launched.
sourcepub fn set_vpc(self, input: Option<String>) -> Self
pub fn set_vpc(self, input: Option<String>) -> Self
The ID of the VPC into which the server should be launched.
sourcepub fn get_vpc(&self) -> &Option<String>
pub fn get_vpc(&self) -> &Option<String>
The ID of the VPC into which the server should be launched.
sourcepub fn subnet(self, input: impl Into<String>) -> Self
pub fn subnet(self, input: impl Into<String>) -> Self
The ID of the subnet the server should be launched into.
sourcepub fn set_subnet(self, input: Option<String>) -> Self
pub fn set_subnet(self, input: Option<String>) -> Self
The ID of the subnet the server should be launched into.
sourcepub fn get_subnet(&self) -> &Option<String>
pub fn get_subnet(&self) -> &Option<String>
The ID of the subnet the server should be launched into.
sourcepub fn security_group(self, input: impl Into<String>) -> Self
pub fn security_group(self, input: impl Into<String>) -> Self
The ID of the security group that applies to the launched server.
sourcepub fn set_security_group(self, input: Option<String>) -> Self
pub fn set_security_group(self, input: Option<String>) -> Self
The ID of the security group that applies to the launched server.
sourcepub fn get_security_group(&self) -> &Option<String>
pub fn get_security_group(&self) -> &Option<String>
The ID of the security group that applies to the launched server.
sourcepub fn ec2_key_name(self, input: impl Into<String>) -> Self
pub fn ec2_key_name(self, input: impl Into<String>) -> Self
The name of the Amazon EC2 SSH key to be used for connecting to the launched server.
sourcepub fn set_ec2_key_name(self, input: Option<String>) -> Self
pub fn set_ec2_key_name(self, input: Option<String>) -> Self
The name of the Amazon EC2 SSH key to be used for connecting to the launched server.
sourcepub fn get_ec2_key_name(&self) -> &Option<String>
pub fn get_ec2_key_name(&self) -> &Option<String>
The name of the Amazon EC2 SSH key to be used for connecting to the launched server.
sourcepub fn user_data(self, input: UserData) -> Self
pub fn user_data(self, input: UserData) -> Self
Location of the user-data script to be executed when launching the server.
sourcepub fn set_user_data(self, input: Option<UserData>) -> Self
pub fn set_user_data(self, input: Option<UserData>) -> Self
Location of the user-data script to be executed when launching the server.
sourcepub fn get_user_data(&self) -> &Option<UserData>
pub fn get_user_data(&self) -> &Option<UserData>
Location of the user-data script to be executed when launching the server.
sourcepub fn instance_type(self, input: impl Into<String>) -> Self
pub fn instance_type(self, input: impl Into<String>) -> Self
The instance type to use when launching the server.
sourcepub fn set_instance_type(self, input: Option<String>) -> Self
pub fn set_instance_type(self, input: Option<String>) -> Self
The instance type to use when launching the server.
sourcepub fn get_instance_type(&self) -> &Option<String>
pub fn get_instance_type(&self) -> &Option<String>
The instance type to use when launching the server.
sourcepub fn associate_public_ip_address(self, input: bool) -> Self
pub fn associate_public_ip_address(self, input: bool) -> Self
Indicates whether a publicly accessible IP address is created when launching the server.
sourcepub fn set_associate_public_ip_address(self, input: Option<bool>) -> Self
pub fn set_associate_public_ip_address(self, input: Option<bool>) -> Self
Indicates whether a publicly accessible IP address is created when launching the server.
sourcepub fn get_associate_public_ip_address(&self) -> &Option<bool>
pub fn get_associate_public_ip_address(&self) -> &Option<bool>
Indicates whether a publicly accessible IP address is created when launching the server.
sourcepub fn iam_instance_profile_name(self, input: impl Into<String>) -> Self
pub fn iam_instance_profile_name(self, input: impl Into<String>) -> Self
The name of the IAM instance profile.
sourcepub fn set_iam_instance_profile_name(self, input: Option<String>) -> Self
pub fn set_iam_instance_profile_name(self, input: Option<String>) -> Self
The name of the IAM instance profile.
sourcepub fn get_iam_instance_profile_name(&self) -> &Option<String>
pub fn get_iam_instance_profile_name(&self) -> &Option<String>
The name of the IAM instance profile.
sourcepub fn configure_script(self, input: S3Location) -> Self
pub fn configure_script(self, input: S3Location) -> Self
Location of an Amazon S3 object.
sourcepub fn set_configure_script(self, input: Option<S3Location>) -> Self
pub fn set_configure_script(self, input: Option<S3Location>) -> Self
Location of an Amazon S3 object.
sourcepub fn get_configure_script(&self) -> &Option<S3Location>
pub fn get_configure_script(&self) -> &Option<S3Location>
Location of an Amazon S3 object.
sourcepub fn configure_script_type(self, input: ScriptType) -> Self
pub fn configure_script_type(self, input: ScriptType) -> Self
The type of configuration script.
sourcepub fn set_configure_script_type(self, input: Option<ScriptType>) -> Self
pub fn set_configure_script_type(self, input: Option<ScriptType>) -> Self
The type of configuration script.
sourcepub fn get_configure_script_type(&self) -> &Option<ScriptType>
pub fn get_configure_script_type(&self) -> &Option<ScriptType>
The type of configuration script.
sourcepub fn build(self) -> ServerLaunchConfiguration
pub fn build(self) -> ServerLaunchConfiguration
Consumes the builder and constructs a ServerLaunchConfiguration
.
Trait Implementations§
source§impl Clone for ServerLaunchConfigurationBuilder
impl Clone for ServerLaunchConfigurationBuilder
source§fn clone(&self) -> ServerLaunchConfigurationBuilder
fn clone(&self) -> ServerLaunchConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ServerLaunchConfigurationBuilder
impl Default for ServerLaunchConfigurationBuilder
source§fn default() -> ServerLaunchConfigurationBuilder
fn default() -> ServerLaunchConfigurationBuilder
source§impl PartialEq for ServerLaunchConfigurationBuilder
impl PartialEq for ServerLaunchConfigurationBuilder
source§fn eq(&self, other: &ServerLaunchConfigurationBuilder) -> bool
fn eq(&self, other: &ServerLaunchConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ServerLaunchConfigurationBuilder
Auto Trait Implementations§
impl Freeze for ServerLaunchConfigurationBuilder
impl RefUnwindSafe for ServerLaunchConfigurationBuilder
impl Send for ServerLaunchConfigurationBuilder
impl Sync for ServerLaunchConfigurationBuilder
impl Unpin for ServerLaunchConfigurationBuilder
impl UnwindSafe for ServerLaunchConfigurationBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more