#[non_exhaustive]pub struct RecommendationSettingsBuilder { /* private fields */ }
Expand description
A builder for RecommendationSettings
.
Implementations§
source§impl RecommendationSettingsBuilder
impl RecommendationSettingsBuilder
sourcepub fn instance_sizing_type(self, input: impl Into<String>) -> Self
pub fn instance_sizing_type(self, input: impl Into<String>) -> Self
The size of your target instance. Fleet Advisor calculates this value based on your data collection type, such as total capacity and resource utilization. Valid values include "total-capacity"
and "utilization"
.
sourcepub fn set_instance_sizing_type(self, input: Option<String>) -> Self
pub fn set_instance_sizing_type(self, input: Option<String>) -> Self
The size of your target instance. Fleet Advisor calculates this value based on your data collection type, such as total capacity and resource utilization. Valid values include "total-capacity"
and "utilization"
.
sourcepub fn get_instance_sizing_type(&self) -> &Option<String>
pub fn get_instance_sizing_type(&self) -> &Option<String>
The size of your target instance. Fleet Advisor calculates this value based on your data collection type, such as total capacity and resource utilization. Valid values include "total-capacity"
and "utilization"
.
sourcepub fn workload_type(self, input: impl Into<String>) -> Self
pub fn workload_type(self, input: impl Into<String>) -> Self
The deployment option for your target engine. For production databases, Fleet Advisor chooses Multi-AZ deployment. For development or test databases, Fleet Advisor chooses Single-AZ deployment. Valid values include "development"
and "production"
.
sourcepub fn set_workload_type(self, input: Option<String>) -> Self
pub fn set_workload_type(self, input: Option<String>) -> Self
The deployment option for your target engine. For production databases, Fleet Advisor chooses Multi-AZ deployment. For development or test databases, Fleet Advisor chooses Single-AZ deployment. Valid values include "development"
and "production"
.
sourcepub fn get_workload_type(&self) -> &Option<String>
pub fn get_workload_type(&self) -> &Option<String>
The deployment option for your target engine. For production databases, Fleet Advisor chooses Multi-AZ deployment. For development or test databases, Fleet Advisor chooses Single-AZ deployment. Valid values include "development"
and "production"
.
sourcepub fn build(self) -> Result<RecommendationSettings, BuildError>
pub fn build(self) -> Result<RecommendationSettings, BuildError>
Consumes the builder and constructs a RecommendationSettings
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for RecommendationSettingsBuilder
impl Clone for RecommendationSettingsBuilder
source§fn clone(&self) -> RecommendationSettingsBuilder
fn clone(&self) -> RecommendationSettingsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for RecommendationSettingsBuilder
impl Default for RecommendationSettingsBuilder
source§fn default() -> RecommendationSettingsBuilder
fn default() -> RecommendationSettingsBuilder
source§impl PartialEq for RecommendationSettingsBuilder
impl PartialEq for RecommendationSettingsBuilder
source§fn eq(&self, other: &RecommendationSettingsBuilder) -> bool
fn eq(&self, other: &RecommendationSettingsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RecommendationSettingsBuilder
Auto Trait Implementations§
impl Freeze for RecommendationSettingsBuilder
impl RefUnwindSafe for RecommendationSettingsBuilder
impl Send for RecommendationSettingsBuilder
impl Sync for RecommendationSettingsBuilder
impl Unpin for RecommendationSettingsBuilder
impl UnwindSafe for RecommendationSettingsBuilder
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