Struct aws_sdk_lightsail::types::builders::BundleBuilder
source · #[non_exhaustive]pub struct BundleBuilder { /* private fields */ }
Expand description
A builder for Bundle
.
Implementations§
source§impl BundleBuilder
impl BundleBuilder
sourcepub fn set_price(self, input: Option<f32>) -> Self
pub fn set_price(self, input: Option<f32>) -> Self
The price in US dollars (5.0
) of the bundle.
sourcepub fn set_cpu_count(self, input: Option<i32>) -> Self
pub fn set_cpu_count(self, input: Option<i32>) -> Self
The number of vCPUs included in the bundle (2
).
sourcepub fn get_cpu_count(&self) -> &Option<i32>
pub fn get_cpu_count(&self) -> &Option<i32>
The number of vCPUs included in the bundle (2
).
sourcepub fn disk_size_in_gb(self, input: i32) -> Self
pub fn disk_size_in_gb(self, input: i32) -> Self
The size of the SSD (30
).
sourcepub fn set_disk_size_in_gb(self, input: Option<i32>) -> Self
pub fn set_disk_size_in_gb(self, input: Option<i32>) -> Self
The size of the SSD (30
).
sourcepub fn get_disk_size_in_gb(&self) -> &Option<i32>
pub fn get_disk_size_in_gb(&self) -> &Option<i32>
The size of the SSD (30
).
sourcepub fn set_bundle_id(self, input: Option<String>) -> Self
pub fn set_bundle_id(self, input: Option<String>) -> Self
The bundle ID (micro_x_x
).
sourcepub fn get_bundle_id(&self) -> &Option<String>
pub fn get_bundle_id(&self) -> &Option<String>
The bundle ID (micro_x_x
).
sourcepub fn instance_type(self, input: impl Into<String>) -> Self
pub fn instance_type(self, input: impl Into<String>) -> Self
The instance type (micro
).
sourcepub fn set_instance_type(self, input: Option<String>) -> Self
pub fn set_instance_type(self, input: Option<String>) -> Self
The instance type (micro
).
sourcepub fn get_instance_type(&self) -> &Option<String>
pub fn get_instance_type(&self) -> &Option<String>
The instance type (micro
).
sourcepub fn is_active(self, input: bool) -> Self
pub fn is_active(self, input: bool) -> Self
A Boolean value indicating whether the bundle is active.
sourcepub fn set_is_active(self, input: Option<bool>) -> Self
pub fn set_is_active(self, input: Option<bool>) -> Self
A Boolean value indicating whether the bundle is active.
sourcepub fn get_is_active(&self) -> &Option<bool>
pub fn get_is_active(&self) -> &Option<bool>
A Boolean value indicating whether the bundle is active.
sourcepub fn power(self, input: i32) -> Self
pub fn power(self, input: i32) -> Self
A numeric value that represents the power of the bundle (500
). You can use the bundle's power value in conjunction with a blueprint's minimum power value to determine whether the blueprint will run on the bundle. For example, you need a bundle with a power value of 500 or more to create an instance that uses a blueprint with a minimum power value of 500.
sourcepub fn set_power(self, input: Option<i32>) -> Self
pub fn set_power(self, input: Option<i32>) -> Self
A numeric value that represents the power of the bundle (500
). You can use the bundle's power value in conjunction with a blueprint's minimum power value to determine whether the blueprint will run on the bundle. For example, you need a bundle with a power value of 500 or more to create an instance that uses a blueprint with a minimum power value of 500.
sourcepub fn get_power(&self) -> &Option<i32>
pub fn get_power(&self) -> &Option<i32>
A numeric value that represents the power of the bundle (500
). You can use the bundle's power value in conjunction with a blueprint's minimum power value to determine whether the blueprint will run on the bundle. For example, you need a bundle with a power value of 500 or more to create an instance that uses a blueprint with a minimum power value of 500.
sourcepub fn ram_size_in_gb(self, input: f32) -> Self
pub fn ram_size_in_gb(self, input: f32) -> Self
The amount of RAM in GB (2.0
).
sourcepub fn set_ram_size_in_gb(self, input: Option<f32>) -> Self
pub fn set_ram_size_in_gb(self, input: Option<f32>) -> Self
The amount of RAM in GB (2.0
).
sourcepub fn get_ram_size_in_gb(&self) -> &Option<f32>
pub fn get_ram_size_in_gb(&self) -> &Option<f32>
The amount of RAM in GB (2.0
).
sourcepub fn transfer_per_month_in_gb(self, input: i32) -> Self
pub fn transfer_per_month_in_gb(self, input: i32) -> Self
The data transfer rate per month in GB (2000
).
sourcepub fn set_transfer_per_month_in_gb(self, input: Option<i32>) -> Self
pub fn set_transfer_per_month_in_gb(self, input: Option<i32>) -> Self
The data transfer rate per month in GB (2000
).
sourcepub fn get_transfer_per_month_in_gb(&self) -> &Option<i32>
pub fn get_transfer_per_month_in_gb(&self) -> &Option<i32>
The data transfer rate per month in GB (2000
).
sourcepub fn supported_platforms(self, input: InstancePlatform) -> Self
pub fn supported_platforms(self, input: InstancePlatform) -> Self
Appends an item to supported_platforms
.
To override the contents of this collection use set_supported_platforms
.
The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You can only launch a WINDOWS
bundle on a blueprint that supports the WINDOWS
platform. LINUX_UNIX
blueprints require a LINUX_UNIX
bundle.
sourcepub fn set_supported_platforms(
self,
input: Option<Vec<InstancePlatform>>
) -> Self
pub fn set_supported_platforms( self, input: Option<Vec<InstancePlatform>> ) -> Self
The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You can only launch a WINDOWS
bundle on a blueprint that supports the WINDOWS
platform. LINUX_UNIX
blueprints require a LINUX_UNIX
bundle.
sourcepub fn get_supported_platforms(&self) -> &Option<Vec<InstancePlatform>>
pub fn get_supported_platforms(&self) -> &Option<Vec<InstancePlatform>>
The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You can only launch a WINDOWS
bundle on a blueprint that supports the WINDOWS
platform. LINUX_UNIX
blueprints require a LINUX_UNIX
bundle.
sourcepub fn supported_app_categories(self, input: AppCategory) -> Self
pub fn supported_app_categories(self, input: AppCategory) -> Self
Appends an item to supported_app_categories
.
To override the contents of this collection use set_supported_app_categories
.
Virtual computer blueprints that are supported by a Lightsail for Research bundle.
This parameter only applies to Lightsail for Research resources.
sourcepub fn set_supported_app_categories(
self,
input: Option<Vec<AppCategory>>
) -> Self
pub fn set_supported_app_categories( self, input: Option<Vec<AppCategory>> ) -> Self
Virtual computer blueprints that are supported by a Lightsail for Research bundle.
This parameter only applies to Lightsail for Research resources.
sourcepub fn get_supported_app_categories(&self) -> &Option<Vec<AppCategory>>
pub fn get_supported_app_categories(&self) -> &Option<Vec<AppCategory>>
Virtual computer blueprints that are supported by a Lightsail for Research bundle.
This parameter only applies to Lightsail for Research resources.
sourcepub fn public_ipv4_address_count(self, input: i32) -> Self
pub fn public_ipv4_address_count(self, input: i32) -> Self
An integer that indicates the public ipv4 address count included in the bundle, the value is either 0 or 1.
sourcepub fn set_public_ipv4_address_count(self, input: Option<i32>) -> Self
pub fn set_public_ipv4_address_count(self, input: Option<i32>) -> Self
An integer that indicates the public ipv4 address count included in the bundle, the value is either 0 or 1.
sourcepub fn get_public_ipv4_address_count(&self) -> &Option<i32>
pub fn get_public_ipv4_address_count(&self) -> &Option<i32>
An integer that indicates the public ipv4 address count included in the bundle, the value is either 0 or 1.
Trait Implementations§
source§impl Clone for BundleBuilder
impl Clone for BundleBuilder
source§fn clone(&self) -> BundleBuilder
fn clone(&self) -> BundleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BundleBuilder
impl Debug for BundleBuilder
source§impl Default for BundleBuilder
impl Default for BundleBuilder
source§fn default() -> BundleBuilder
fn default() -> BundleBuilder
source§impl PartialEq for BundleBuilder
impl PartialEq for BundleBuilder
source§fn eq(&self, other: &BundleBuilder) -> bool
fn eq(&self, other: &BundleBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BundleBuilder
Auto Trait Implementations§
impl Freeze for BundleBuilder
impl RefUnwindSafe for BundleBuilder
impl Send for BundleBuilder
impl Sync for BundleBuilder
impl Unpin for BundleBuilder
impl UnwindSafe for BundleBuilder
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