#[non_exhaustive]pub struct PreferredResourceBuilder { /* private fields */ }
Expand description
A builder for PreferredResource
.
Implementations§
source§impl PreferredResourceBuilder
impl PreferredResourceBuilder
sourcepub fn name(self, input: PreferredResourceName) -> Self
pub fn name(self, input: PreferredResourceName) -> Self
The type of preferred resource to customize.
Compute Optimizer only supports the customization of Ec2InstanceTypes
.
sourcepub fn set_name(self, input: Option<PreferredResourceName>) -> Self
pub fn set_name(self, input: Option<PreferredResourceName>) -> Self
The type of preferred resource to customize.
Compute Optimizer only supports the customization of Ec2InstanceTypes
.
sourcepub fn get_name(&self) -> &Option<PreferredResourceName>
pub fn get_name(&self) -> &Option<PreferredResourceName>
The type of preferred resource to customize.
Compute Optimizer only supports the customization of Ec2InstanceTypes
.
sourcepub fn include_list(self, input: impl Into<String>) -> Self
pub fn include_list(self, input: impl Into<String>) -> Self
Appends an item to include_list
.
To override the contents of this collection use set_include_list
.
The preferred resource type values to include in the recommendation candidates. You can specify the exact resource type value, such as m5.large, or use wild card expressions, such as m5. If this isn’t specified, all supported resources are included by default. You can specify up to 1000 values in this list.
sourcepub fn set_include_list(self, input: Option<Vec<String>>) -> Self
pub fn set_include_list(self, input: Option<Vec<String>>) -> Self
The preferred resource type values to include in the recommendation candidates. You can specify the exact resource type value, such as m5.large, or use wild card expressions, such as m5. If this isn’t specified, all supported resources are included by default. You can specify up to 1000 values in this list.
sourcepub fn get_include_list(&self) -> &Option<Vec<String>>
pub fn get_include_list(&self) -> &Option<Vec<String>>
The preferred resource type values to include in the recommendation candidates. You can specify the exact resource type value, such as m5.large, or use wild card expressions, such as m5. If this isn’t specified, all supported resources are included by default. You can specify up to 1000 values in this list.
sourcepub fn exclude_list(self, input: impl Into<String>) -> Self
pub fn exclude_list(self, input: impl Into<String>) -> Self
Appends an item to exclude_list
.
To override the contents of this collection use set_exclude_list
.
The preferred resource type values to exclude from the recommendation candidates. If this isn’t specified, all supported resources are included by default. You can specify up to 1000 values in this list.
sourcepub fn set_exclude_list(self, input: Option<Vec<String>>) -> Self
pub fn set_exclude_list(self, input: Option<Vec<String>>) -> Self
The preferred resource type values to exclude from the recommendation candidates. If this isn’t specified, all supported resources are included by default. You can specify up to 1000 values in this list.
sourcepub fn get_exclude_list(&self) -> &Option<Vec<String>>
pub fn get_exclude_list(&self) -> &Option<Vec<String>>
The preferred resource type values to exclude from the recommendation candidates. If this isn’t specified, all supported resources are included by default. You can specify up to 1000 values in this list.
sourcepub fn build(self) -> PreferredResource
pub fn build(self) -> PreferredResource
Consumes the builder and constructs a PreferredResource
.
Trait Implementations§
source§impl Clone for PreferredResourceBuilder
impl Clone for PreferredResourceBuilder
source§fn clone(&self) -> PreferredResourceBuilder
fn clone(&self) -> PreferredResourceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PreferredResourceBuilder
impl Debug for PreferredResourceBuilder
source§impl Default for PreferredResourceBuilder
impl Default for PreferredResourceBuilder
source§fn default() -> PreferredResourceBuilder
fn default() -> PreferredResourceBuilder
source§impl PartialEq for PreferredResourceBuilder
impl PartialEq for PreferredResourceBuilder
impl StructuralPartialEq for PreferredResourceBuilder
Auto Trait Implementations§
impl Freeze for PreferredResourceBuilder
impl RefUnwindSafe for PreferredResourceBuilder
impl Send for PreferredResourceBuilder
impl Sync for PreferredResourceBuilder
impl Unpin for PreferredResourceBuilder
impl UnwindSafe for PreferredResourceBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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