Struct aws_sdk_lightsail::types::AddOnRequest
source · #[non_exhaustive]pub struct AddOnRequest {
pub add_on_type: AddOnType,
pub auto_snapshot_add_on_request: Option<AutoSnapshotAddOnRequest>,
pub stop_instance_on_idle_request: Option<StopInstanceOnIdleRequest>,
}
Expand description
Describes a request to enable, modify, or disable an add-on for an Amazon Lightsail resource.
An additional cost may be associated with enabling add-ons. For more information, see the Lightsail pricing page.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.add_on_type: AddOnType
The add-on type.
auto_snapshot_add_on_request: Option<AutoSnapshotAddOnRequest>
An object that represents additional parameters when enabling or modifying the automatic snapshot add-on.
stop_instance_on_idle_request: Option<StopInstanceOnIdleRequest>
An object that represents additional parameters when enabling or modifying the StopInstanceOnIdle
add-on.
This object only applies to Lightsail for Research resources.
Implementations§
source§impl AddOnRequest
impl AddOnRequest
sourcepub fn add_on_type(&self) -> &AddOnType
pub fn add_on_type(&self) -> &AddOnType
The add-on type.
sourcepub fn auto_snapshot_add_on_request(&self) -> Option<&AutoSnapshotAddOnRequest>
pub fn auto_snapshot_add_on_request(&self) -> Option<&AutoSnapshotAddOnRequest>
An object that represents additional parameters when enabling or modifying the automatic snapshot add-on.
sourcepub fn stop_instance_on_idle_request(
&self
) -> Option<&StopInstanceOnIdleRequest>
pub fn stop_instance_on_idle_request( &self ) -> Option<&StopInstanceOnIdleRequest>
An object that represents additional parameters when enabling or modifying the StopInstanceOnIdle
add-on.
This object only applies to Lightsail for Research resources.
source§impl AddOnRequest
impl AddOnRequest
sourcepub fn builder() -> AddOnRequestBuilder
pub fn builder() -> AddOnRequestBuilder
Creates a new builder-style object to manufacture AddOnRequest
.
Trait Implementations§
source§impl Clone for AddOnRequest
impl Clone for AddOnRequest
source§fn clone(&self) -> AddOnRequest
fn clone(&self) -> AddOnRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AddOnRequest
impl Debug for AddOnRequest
source§impl PartialEq for AddOnRequest
impl PartialEq for AddOnRequest
source§fn eq(&self, other: &AddOnRequest) -> bool
fn eq(&self, other: &AddOnRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AddOnRequest
Auto Trait Implementations§
impl Freeze for AddOnRequest
impl RefUnwindSafe for AddOnRequest
impl Send for AddOnRequest
impl Sync for AddOnRequest
impl Unpin for AddOnRequest
impl UnwindSafe for AddOnRequest
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