Struct aws_sdk_lightsail::types::builders::AddOnRequestBuilder
source · #[non_exhaustive]pub struct AddOnRequestBuilder { /* private fields */ }
Expand description
A builder for AddOnRequest
.
Implementations§
source§impl AddOnRequestBuilder
impl AddOnRequestBuilder
sourcepub fn add_on_type(self, input: AddOnType) -> Self
pub fn add_on_type(self, input: AddOnType) -> Self
The add-on type.
This field is required.sourcepub fn set_add_on_type(self, input: Option<AddOnType>) -> Self
pub fn set_add_on_type(self, input: Option<AddOnType>) -> Self
The add-on type.
sourcepub fn get_add_on_type(&self) -> &Option<AddOnType>
pub fn get_add_on_type(&self) -> &Option<AddOnType>
The add-on type.
sourcepub fn auto_snapshot_add_on_request(
self,
input: AutoSnapshotAddOnRequest
) -> Self
pub fn auto_snapshot_add_on_request( self, input: AutoSnapshotAddOnRequest ) -> Self
An object that represents additional parameters when enabling or modifying the automatic snapshot add-on.
sourcepub fn set_auto_snapshot_add_on_request(
self,
input: Option<AutoSnapshotAddOnRequest>
) -> Self
pub fn set_auto_snapshot_add_on_request( self, input: Option<AutoSnapshotAddOnRequest> ) -> Self
An object that represents additional parameters when enabling or modifying the automatic snapshot add-on.
sourcepub fn get_auto_snapshot_add_on_request(
&self
) -> &Option<AutoSnapshotAddOnRequest>
pub fn get_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,
input: StopInstanceOnIdleRequest
) -> Self
pub fn stop_instance_on_idle_request( self, input: StopInstanceOnIdleRequest ) -> Self
An object that represents additional parameters when enabling or modifying the StopInstanceOnIdle
add-on.
This object only applies to Lightsail for Research resources.
sourcepub fn set_stop_instance_on_idle_request(
self,
input: Option<StopInstanceOnIdleRequest>
) -> Self
pub fn set_stop_instance_on_idle_request( self, input: Option<StopInstanceOnIdleRequest> ) -> Self
An object that represents additional parameters when enabling or modifying the StopInstanceOnIdle
add-on.
This object only applies to Lightsail for Research resources.
sourcepub fn get_stop_instance_on_idle_request(
&self
) -> &Option<StopInstanceOnIdleRequest>
pub fn get_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.
sourcepub fn build(self) -> Result<AddOnRequest, BuildError>
pub fn build(self) -> Result<AddOnRequest, BuildError>
Consumes the builder and constructs a AddOnRequest
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AddOnRequestBuilder
impl Clone for AddOnRequestBuilder
source§fn clone(&self) -> AddOnRequestBuilder
fn clone(&self) -> AddOnRequestBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AddOnRequestBuilder
impl Debug for AddOnRequestBuilder
source§impl Default for AddOnRequestBuilder
impl Default for AddOnRequestBuilder
source§fn default() -> AddOnRequestBuilder
fn default() -> AddOnRequestBuilder
source§impl PartialEq for AddOnRequestBuilder
impl PartialEq for AddOnRequestBuilder
source§fn eq(&self, other: &AddOnRequestBuilder) -> bool
fn eq(&self, other: &AddOnRequestBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AddOnRequestBuilder
Auto Trait Implementations§
impl Freeze for AddOnRequestBuilder
impl RefUnwindSafe for AddOnRequestBuilder
impl Send for AddOnRequestBuilder
impl Sync for AddOnRequestBuilder
impl Unpin for AddOnRequestBuilder
impl UnwindSafe for AddOnRequestBuilder
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