#[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
source§fn eq(&self, other: &PreferredResourceBuilder) -> bool
fn eq(&self, other: &PreferredResourceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.