#[non_exhaustive]pub struct StrategyOptionBuilder { /* private fields */ }Expand description
A builder for StrategyOption.
Implementations§
source§impl StrategyOptionBuilder
impl StrategyOptionBuilder
sourcepub fn strategy(self, input: Strategy) -> Self
pub fn strategy(self, input: Strategy) -> Self
Type of transformation. For example, Rehost, Replatform, and so on.
sourcepub fn set_strategy(self, input: Option<Strategy>) -> Self
pub fn set_strategy(self, input: Option<Strategy>) -> Self
Type of transformation. For example, Rehost, Replatform, and so on.
sourcepub fn get_strategy(&self) -> &Option<Strategy>
pub fn get_strategy(&self) -> &Option<Strategy>
Type of transformation. For example, Rehost, Replatform, and so on.
sourcepub fn tool_name(self, input: TransformationToolName) -> Self
pub fn tool_name(self, input: TransformationToolName) -> Self
The name of the tool that can be used to transform an application component using this strategy.
sourcepub fn set_tool_name(self, input: Option<TransformationToolName>) -> Self
pub fn set_tool_name(self, input: Option<TransformationToolName>) -> Self
The name of the tool that can be used to transform an application component using this strategy.
sourcepub fn get_tool_name(&self) -> &Option<TransformationToolName>
pub fn get_tool_name(&self) -> &Option<TransformationToolName>
The name of the tool that can be used to transform an application component using this strategy.
sourcepub fn target_destination(self, input: TargetDestination) -> Self
pub fn target_destination(self, input: TargetDestination) -> Self
Destination information about where the application component can migrate to. For example, EC2, ECS, and so on.
sourcepub fn set_target_destination(self, input: Option<TargetDestination>) -> Self
pub fn set_target_destination(self, input: Option<TargetDestination>) -> Self
Destination information about where the application component can migrate to. For example, EC2, ECS, and so on.
sourcepub fn get_target_destination(&self) -> &Option<TargetDestination>
pub fn get_target_destination(&self) -> &Option<TargetDestination>
Destination information about where the application component can migrate to. For example, EC2, ECS, and so on.
sourcepub fn is_preferred(self, input: bool) -> Self
pub fn is_preferred(self, input: bool) -> Self
Indicates if a specific strategy is preferred for the application component.
sourcepub fn set_is_preferred(self, input: Option<bool>) -> Self
pub fn set_is_preferred(self, input: Option<bool>) -> Self
Indicates if a specific strategy is preferred for the application component.
sourcepub fn get_is_preferred(&self) -> &Option<bool>
pub fn get_is_preferred(&self) -> &Option<bool>
Indicates if a specific strategy is preferred for the application component.
sourcepub fn build(self) -> StrategyOption
pub fn build(self) -> StrategyOption
Consumes the builder and constructs a StrategyOption.
Trait Implementations§
source§impl Clone for StrategyOptionBuilder
impl Clone for StrategyOptionBuilder
source§fn clone(&self) -> StrategyOptionBuilder
fn clone(&self) -> StrategyOptionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for StrategyOptionBuilder
impl Debug for StrategyOptionBuilder
source§impl Default for StrategyOptionBuilder
impl Default for StrategyOptionBuilder
source§fn default() -> StrategyOptionBuilder
fn default() -> StrategyOptionBuilder
source§impl PartialEq for StrategyOptionBuilder
impl PartialEq for StrategyOptionBuilder
source§fn eq(&self, other: &StrategyOptionBuilder) -> bool
fn eq(&self, other: &StrategyOptionBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for StrategyOptionBuilder
Auto Trait Implementations§
impl Freeze for StrategyOptionBuilder
impl RefUnwindSafe for StrategyOptionBuilder
impl Send for StrategyOptionBuilder
impl Sync for StrategyOptionBuilder
impl Unpin for StrategyOptionBuilder
impl UnwindSafe for StrategyOptionBuilder
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