Struct aws_sdk_trustedadvisor::types::builders::OrganizationRecommendationResourceSummaryBuilder
source · #[non_exhaustive]pub struct OrganizationRecommendationResourceSummaryBuilder { /* private fields */ }Expand description
A builder for OrganizationRecommendationResourceSummary.
Implementations§
source§impl OrganizationRecommendationResourceSummaryBuilder
impl OrganizationRecommendationResourceSummaryBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The ID of the Recommendation Resource
This field is required.sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The ARN of the Recommendation Resource
This field is required.sourcepub fn aws_resource_id(self, input: impl Into<String>) -> Self
pub fn aws_resource_id(self, input: impl Into<String>) -> Self
The AWS resource identifier
This field is required.sourcepub fn set_aws_resource_id(self, input: Option<String>) -> Self
pub fn set_aws_resource_id(self, input: Option<String>) -> Self
The AWS resource identifier
sourcepub fn get_aws_resource_id(&self) -> &Option<String>
pub fn get_aws_resource_id(&self) -> &Option<String>
The AWS resource identifier
sourcepub fn region_code(self, input: impl Into<String>) -> Self
pub fn region_code(self, input: impl Into<String>) -> Self
The AWS Region code that the Recommendation Resource is in
This field is required.sourcepub fn set_region_code(self, input: Option<String>) -> Self
pub fn set_region_code(self, input: Option<String>) -> Self
The AWS Region code that the Recommendation Resource is in
sourcepub fn get_region_code(&self) -> &Option<String>
pub fn get_region_code(&self) -> &Option<String>
The AWS Region code that the Recommendation Resource is in
sourcepub fn status(self, input: ResourceStatus) -> Self
pub fn status(self, input: ResourceStatus) -> Self
The current status of the Recommendation Resource
This field is required.sourcepub fn set_status(self, input: Option<ResourceStatus>) -> Self
pub fn set_status(self, input: Option<ResourceStatus>) -> Self
The current status of the Recommendation Resource
sourcepub fn get_status(&self) -> &Option<ResourceStatus>
pub fn get_status(&self) -> &Option<ResourceStatus>
The current status of the Recommendation Resource
sourcepub fn metadata(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn metadata(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to metadata.
To override the contents of this collection use set_metadata.
Metadata associated with the Recommendation Resource
sourcepub fn set_metadata(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_metadata(self, input: Option<HashMap<String, String>>) -> Self
Metadata associated with the Recommendation Resource
sourcepub fn get_metadata(&self) -> &Option<HashMap<String, String>>
pub fn get_metadata(&self) -> &Option<HashMap<String, String>>
Metadata associated with the Recommendation Resource
sourcepub fn last_updated_at(self, input: DateTime) -> Self
pub fn last_updated_at(self, input: DateTime) -> Self
When the Recommendation Resource was last updated
This field is required.sourcepub fn set_last_updated_at(self, input: Option<DateTime>) -> Self
pub fn set_last_updated_at(self, input: Option<DateTime>) -> Self
When the Recommendation Resource was last updated
sourcepub fn get_last_updated_at(&self) -> &Option<DateTime>
pub fn get_last_updated_at(&self) -> &Option<DateTime>
When the Recommendation Resource was last updated
sourcepub fn account_id(self, input: impl Into<String>) -> Self
pub fn account_id(self, input: impl Into<String>) -> Self
The AWS account ID
sourcepub fn set_account_id(self, input: Option<String>) -> Self
pub fn set_account_id(self, input: Option<String>) -> Self
The AWS account ID
sourcepub fn get_account_id(&self) -> &Option<String>
pub fn get_account_id(&self) -> &Option<String>
The AWS account ID
sourcepub fn recommendation_arn(self, input: impl Into<String>) -> Self
pub fn recommendation_arn(self, input: impl Into<String>) -> Self
The Recommendation ARN
This field is required.sourcepub fn set_recommendation_arn(self, input: Option<String>) -> Self
pub fn set_recommendation_arn(self, input: Option<String>) -> Self
The Recommendation ARN
sourcepub fn get_recommendation_arn(&self) -> &Option<String>
pub fn get_recommendation_arn(&self) -> &Option<String>
The Recommendation ARN
sourcepub fn build(
self
) -> Result<OrganizationRecommendationResourceSummary, BuildError>
pub fn build( self ) -> Result<OrganizationRecommendationResourceSummary, BuildError>
Consumes the builder and constructs a OrganizationRecommendationResourceSummary.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for OrganizationRecommendationResourceSummaryBuilder
impl Clone for OrganizationRecommendationResourceSummaryBuilder
source§fn clone(&self) -> OrganizationRecommendationResourceSummaryBuilder
fn clone(&self) -> OrganizationRecommendationResourceSummaryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for OrganizationRecommendationResourceSummaryBuilder
impl Default for OrganizationRecommendationResourceSummaryBuilder
source§fn default() -> OrganizationRecommendationResourceSummaryBuilder
fn default() -> OrganizationRecommendationResourceSummaryBuilder
source§impl PartialEq for OrganizationRecommendationResourceSummaryBuilder
impl PartialEq for OrganizationRecommendationResourceSummaryBuilder
source§fn eq(&self, other: &OrganizationRecommendationResourceSummaryBuilder) -> bool
fn eq(&self, other: &OrganizationRecommendationResourceSummaryBuilder) -> bool
self and other values to be equal, and is used
by ==.