Struct aws_sdk_computeoptimizer::operation::get_rds_database_recommendations::builders::GetRdsDatabaseRecommendationsInputBuilder
source · #[non_exhaustive]pub struct GetRdsDatabaseRecommendationsInputBuilder { /* private fields */ }
Expand description
A builder for GetRdsDatabaseRecommendationsInput
.
Implementations§
source§impl GetRdsDatabaseRecommendationsInputBuilder
impl GetRdsDatabaseRecommendationsInputBuilder
sourcepub fn resource_arns(self, input: impl Into<String>) -> Self
pub fn resource_arns(self, input: impl Into<String>) -> Self
Appends an item to resource_arns
.
To override the contents of this collection use set_resource_arns
.
The ARN that identifies the Amazon RDS.
The following is the format of the ARN:
arn:aws:rds:{region}:{accountId}:db:{resourceName}
The following is the format of a DB Cluster ARN:
arn:aws:rds:{region}:{accountId}:cluster:{resourceName}
sourcepub fn set_resource_arns(self, input: Option<Vec<String>>) -> Self
pub fn set_resource_arns(self, input: Option<Vec<String>>) -> Self
The ARN that identifies the Amazon RDS.
The following is the format of the ARN:
arn:aws:rds:{region}:{accountId}:db:{resourceName}
The following is the format of a DB Cluster ARN:
arn:aws:rds:{region}:{accountId}:cluster:{resourceName}
sourcepub fn get_resource_arns(&self) -> &Option<Vec<String>>
pub fn get_resource_arns(&self) -> &Option<Vec<String>>
The ARN that identifies the Amazon RDS.
The following is the format of the ARN:
arn:aws:rds:{region}:{accountId}:db:{resourceName}
The following is the format of a DB Cluster ARN:
arn:aws:rds:{region}:{accountId}:cluster:{resourceName}
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
The token to advance to the next page of Amazon RDS recommendations.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
The token to advance to the next page of Amazon RDS recommendations.
sourcepub fn get_next_token(&self) -> &Option<String>
pub fn get_next_token(&self) -> &Option<String>
The token to advance to the next page of Amazon RDS recommendations.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of Amazon RDS recommendations to return with a single request.
To retrieve the remaining results, make another request with the returned nextToken
value.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum number of Amazon RDS recommendations to return with a single request.
To retrieve the remaining results, make another request with the returned nextToken
value.
sourcepub fn get_max_results(&self) -> &Option<i32>
pub fn get_max_results(&self) -> &Option<i32>
The maximum number of Amazon RDS recommendations to return with a single request.
To retrieve the remaining results, make another request with the returned nextToken
value.
sourcepub fn filters(self, input: RdsdbRecommendationFilter) -> Self
pub fn filters(self, input: RdsdbRecommendationFilter) -> Self
Appends an item to filters
.
To override the contents of this collection use set_filters
.
An array of objects to specify a filter that returns a more specific list of Amazon RDS recommendations.
sourcepub fn set_filters(self, input: Option<Vec<RdsdbRecommendationFilter>>) -> Self
pub fn set_filters(self, input: Option<Vec<RdsdbRecommendationFilter>>) -> Self
An array of objects to specify a filter that returns a more specific list of Amazon RDS recommendations.
sourcepub fn get_filters(&self) -> &Option<Vec<RdsdbRecommendationFilter>>
pub fn get_filters(&self) -> &Option<Vec<RdsdbRecommendationFilter>>
An array of objects to specify a filter that returns a more specific list of Amazon RDS recommendations.
sourcepub fn account_ids(self, input: impl Into<String>) -> Self
pub fn account_ids(self, input: impl Into<String>) -> Self
Appends an item to account_ids
.
To override the contents of this collection use set_account_ids
.
Return the Amazon RDS recommendations to the specified Amazon Web Services account IDs.
If your account is the management account or the delegated administrator of an organization, use this parameter to return the Amazon RDS recommendations to specific member accounts.
You can only specify one account ID per request.
sourcepub fn set_account_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_account_ids(self, input: Option<Vec<String>>) -> Self
Return the Amazon RDS recommendations to the specified Amazon Web Services account IDs.
If your account is the management account or the delegated administrator of an organization, use this parameter to return the Amazon RDS recommendations to specific member accounts.
You can only specify one account ID per request.
sourcepub fn get_account_ids(&self) -> &Option<Vec<String>>
pub fn get_account_ids(&self) -> &Option<Vec<String>>
Return the Amazon RDS recommendations to the specified Amazon Web Services account IDs.
If your account is the management account or the delegated administrator of an organization, use this parameter to return the Amazon RDS recommendations to specific member accounts.
You can only specify one account ID per request.
sourcepub fn recommendation_preferences(
self,
input: RecommendationPreferences,
) -> Self
pub fn recommendation_preferences( self, input: RecommendationPreferences, ) -> Self
Describes the recommendation preferences to return in the response of a GetAutoScalingGroupRecommendations
, GetEC2InstanceRecommendations
, GetEC2RecommendationProjectedMetrics
, GetRDSDatabaseRecommendations
, and GetRDSDatabaseRecommendationProjectedMetrics
request.
sourcepub fn set_recommendation_preferences(
self,
input: Option<RecommendationPreferences>,
) -> Self
pub fn set_recommendation_preferences( self, input: Option<RecommendationPreferences>, ) -> Self
Describes the recommendation preferences to return in the response of a GetAutoScalingGroupRecommendations
, GetEC2InstanceRecommendations
, GetEC2RecommendationProjectedMetrics
, GetRDSDatabaseRecommendations
, and GetRDSDatabaseRecommendationProjectedMetrics
request.
sourcepub fn get_recommendation_preferences(
&self,
) -> &Option<RecommendationPreferences>
pub fn get_recommendation_preferences( &self, ) -> &Option<RecommendationPreferences>
Describes the recommendation preferences to return in the response of a GetAutoScalingGroupRecommendations
, GetEC2InstanceRecommendations
, GetEC2RecommendationProjectedMetrics
, GetRDSDatabaseRecommendations
, and GetRDSDatabaseRecommendationProjectedMetrics
request.
sourcepub fn build(self) -> Result<GetRdsDatabaseRecommendationsInput, BuildError>
pub fn build(self) -> Result<GetRdsDatabaseRecommendationsInput, BuildError>
Consumes the builder and constructs a GetRdsDatabaseRecommendationsInput
.
source§impl GetRdsDatabaseRecommendationsInputBuilder
impl GetRdsDatabaseRecommendationsInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<GetRdsDatabaseRecommendationsOutput, SdkError<GetRDSDatabaseRecommendationsError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<GetRdsDatabaseRecommendationsOutput, SdkError<GetRDSDatabaseRecommendationsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for GetRdsDatabaseRecommendationsInputBuilder
impl Clone for GetRdsDatabaseRecommendationsInputBuilder
source§fn clone(&self) -> GetRdsDatabaseRecommendationsInputBuilder
fn clone(&self) -> GetRdsDatabaseRecommendationsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GetRdsDatabaseRecommendationsInputBuilder
impl Default for GetRdsDatabaseRecommendationsInputBuilder
source§fn default() -> GetRdsDatabaseRecommendationsInputBuilder
fn default() -> GetRdsDatabaseRecommendationsInputBuilder
source§impl PartialEq for GetRdsDatabaseRecommendationsInputBuilder
impl PartialEq for GetRdsDatabaseRecommendationsInputBuilder
source§fn eq(&self, other: &GetRdsDatabaseRecommendationsInputBuilder) -> bool
fn eq(&self, other: &GetRdsDatabaseRecommendationsInputBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for GetRdsDatabaseRecommendationsInputBuilder
Auto Trait Implementations§
impl Freeze for GetRdsDatabaseRecommendationsInputBuilder
impl RefUnwindSafe for GetRdsDatabaseRecommendationsInputBuilder
impl Send for GetRdsDatabaseRecommendationsInputBuilder
impl Sync for GetRdsDatabaseRecommendationsInputBuilder
impl Unpin for GetRdsDatabaseRecommendationsInputBuilder
impl UnwindSafe for GetRdsDatabaseRecommendationsInputBuilder
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