#[non_exhaustive]pub struct ApplicationComponentDetailBuilder { /* private fields */ }
Expand description
A builder for ApplicationComponentDetail
.
Implementations§
Source§impl ApplicationComponentDetailBuilder
impl ApplicationComponentDetailBuilder
Sourcepub fn recommendation_set(self, input: RecommendationSet) -> Self
pub fn recommendation_set(self, input: RecommendationSet) -> Self
The top recommendation set for the application component.
Sourcepub fn set_recommendation_set(self, input: Option<RecommendationSet>) -> Self
pub fn set_recommendation_set(self, input: Option<RecommendationSet>) -> Self
The top recommendation set for the application component.
Sourcepub fn get_recommendation_set(&self) -> &Option<RecommendationSet>
pub fn get_recommendation_set(&self) -> &Option<RecommendationSet>
The top recommendation set for the application component.
Sourcepub fn analysis_status(self, input: SrcCodeOrDbAnalysisStatus) -> Self
pub fn analysis_status(self, input: SrcCodeOrDbAnalysisStatus) -> Self
The status of analysis, if the application component has source code or an associated database.
Sourcepub fn set_analysis_status(
self,
input: Option<SrcCodeOrDbAnalysisStatus>,
) -> Self
pub fn set_analysis_status( self, input: Option<SrcCodeOrDbAnalysisStatus>, ) -> Self
The status of analysis, if the application component has source code or an associated database.
Sourcepub fn get_analysis_status(&self) -> &Option<SrcCodeOrDbAnalysisStatus>
pub fn get_analysis_status(&self) -> &Option<SrcCodeOrDbAnalysisStatus>
The status of analysis, if the application component has source code or an associated database.
Sourcepub fn status_message(self, input: impl Into<String>) -> Self
pub fn status_message(self, input: impl Into<String>) -> Self
A detailed description of the analysis status and any failure message.
Sourcepub fn set_status_message(self, input: Option<String>) -> Self
pub fn set_status_message(self, input: Option<String>) -> Self
A detailed description of the analysis status and any failure message.
Sourcepub fn get_status_message(&self) -> &Option<String>
pub fn get_status_message(&self) -> &Option<String>
A detailed description of the analysis status and any failure message.
Sourcepub fn list_antipattern_severity_summary(
self,
input: AntipatternSeveritySummary,
) -> Self
pub fn list_antipattern_severity_summary( self, input: AntipatternSeveritySummary, ) -> Self
Appends an item to list_antipattern_severity_summary
.
To override the contents of this collection use set_list_antipattern_severity_summary
.
A list of anti-pattern severity summaries.
Sourcepub fn set_list_antipattern_severity_summary(
self,
input: Option<Vec<AntipatternSeveritySummary>>,
) -> Self
pub fn set_list_antipattern_severity_summary( self, input: Option<Vec<AntipatternSeveritySummary>>, ) -> Self
A list of anti-pattern severity summaries.
Sourcepub fn get_list_antipattern_severity_summary(
&self,
) -> &Option<Vec<AntipatternSeveritySummary>>
pub fn get_list_antipattern_severity_summary( &self, ) -> &Option<Vec<AntipatternSeveritySummary>>
A list of anti-pattern severity summaries.
Sourcepub fn database_config_detail(self, input: DatabaseConfigDetail) -> Self
pub fn database_config_detail(self, input: DatabaseConfigDetail) -> Self
Configuration details for the database associated with the application component.
Sourcepub fn set_database_config_detail(
self,
input: Option<DatabaseConfigDetail>,
) -> Self
pub fn set_database_config_detail( self, input: Option<DatabaseConfigDetail>, ) -> Self
Configuration details for the database associated with the application component.
Sourcepub fn get_database_config_detail(&self) -> &Option<DatabaseConfigDetail>
pub fn get_database_config_detail(&self) -> &Option<DatabaseConfigDetail>
Configuration details for the database associated with the application component.
Sourcepub fn source_code_repositories(self, input: SourceCodeRepository) -> Self
pub fn source_code_repositories(self, input: SourceCodeRepository) -> Self
Appends an item to source_code_repositories
.
To override the contents of this collection use set_source_code_repositories
.
Details about the source code repository associated with the application component.
Sourcepub fn set_source_code_repositories(
self,
input: Option<Vec<SourceCodeRepository>>,
) -> Self
pub fn set_source_code_repositories( self, input: Option<Vec<SourceCodeRepository>>, ) -> Self
Details about the source code repository associated with the application component.
Sourcepub fn get_source_code_repositories(&self) -> &Option<Vec<SourceCodeRepository>>
pub fn get_source_code_repositories(&self) -> &Option<Vec<SourceCodeRepository>>
Details about the source code repository associated with the application component.
Sourcepub fn set_app_type(self, input: Option<AppType>) -> Self
pub fn set_app_type(self, input: Option<AppType>) -> Self
The type of application component.
Sourcepub fn get_app_type(&self) -> &Option<AppType>
pub fn get_app_type(&self) -> &Option<AppType>
The type of application component.
Sourcepub fn resource_sub_type(self, input: ResourceSubType) -> Self
pub fn resource_sub_type(self, input: ResourceSubType) -> Self
The application component subtype.
Sourcepub fn set_resource_sub_type(self, input: Option<ResourceSubType>) -> Self
pub fn set_resource_sub_type(self, input: Option<ResourceSubType>) -> Self
The application component subtype.
Sourcepub fn get_resource_sub_type(&self) -> &Option<ResourceSubType>
pub fn get_resource_sub_type(&self) -> &Option<ResourceSubType>
The application component subtype.
Sourcepub fn inclusion_status(self, input: InclusionStatus) -> Self
pub fn inclusion_status(self, input: InclusionStatus) -> Self
Indicates whether the application component has been included for server recommendation or not.
Sourcepub fn set_inclusion_status(self, input: Option<InclusionStatus>) -> Self
pub fn set_inclusion_status(self, input: Option<InclusionStatus>) -> Self
Indicates whether the application component has been included for server recommendation or not.
Sourcepub fn get_inclusion_status(&self) -> &Option<InclusionStatus>
pub fn get_inclusion_status(&self) -> &Option<InclusionStatus>
Indicates whether the application component has been included for server recommendation or not.
Sourcepub fn antipattern_report_s3_object(self, input: S3Object) -> Self
pub fn antipattern_report_s3_object(self, input: S3Object) -> Self
The S3 bucket name and the Amazon S3 key name for the anti-pattern report.
Sourcepub fn set_antipattern_report_s3_object(self, input: Option<S3Object>) -> Self
pub fn set_antipattern_report_s3_object(self, input: Option<S3Object>) -> Self
The S3 bucket name and the Amazon S3 key name for the anti-pattern report.
Sourcepub fn get_antipattern_report_s3_object(&self) -> &Option<S3Object>
pub fn get_antipattern_report_s3_object(&self) -> &Option<S3Object>
The S3 bucket name and the Amazon S3 key name for the anti-pattern report.
Sourcepub fn antipattern_report_status(self, input: AntipatternReportStatus) -> Self
pub fn antipattern_report_status(self, input: AntipatternReportStatus) -> Self
The status of the anti-pattern report generation.
Sourcepub fn set_antipattern_report_status(
self,
input: Option<AntipatternReportStatus>,
) -> Self
pub fn set_antipattern_report_status( self, input: Option<AntipatternReportStatus>, ) -> Self
The status of the anti-pattern report generation.
Sourcepub fn get_antipattern_report_status(&self) -> &Option<AntipatternReportStatus>
pub fn get_antipattern_report_status(&self) -> &Option<AntipatternReportStatus>
The status of the anti-pattern report generation.
Sourcepub fn antipattern_report_status_message(self, input: impl Into<String>) -> Self
pub fn antipattern_report_status_message(self, input: impl Into<String>) -> Self
The status message for the anti-pattern.
Sourcepub fn set_antipattern_report_status_message(
self,
input: Option<String>,
) -> Self
pub fn set_antipattern_report_status_message( self, input: Option<String>, ) -> Self
The status message for the anti-pattern.
Sourcepub fn get_antipattern_report_status_message(&self) -> &Option<String>
pub fn get_antipattern_report_status_message(&self) -> &Option<String>
The status message for the anti-pattern.
Sourcepub fn os_version(self, input: impl Into<String>) -> Self
pub fn os_version(self, input: impl Into<String>) -> Self
OS version.
Sourcepub fn set_os_version(self, input: Option<String>) -> Self
pub fn set_os_version(self, input: Option<String>) -> Self
OS version.
Sourcepub fn get_os_version(&self) -> &Option<String>
pub fn get_os_version(&self) -> &Option<String>
OS version.
Sourcepub fn set_os_driver(self, input: Option<String>) -> Self
pub fn set_os_driver(self, input: Option<String>) -> Self
OS driver.
Sourcepub fn get_os_driver(&self) -> &Option<String>
pub fn get_os_driver(&self) -> &Option<String>
OS driver.
Sourcepub fn last_analyzed_timestamp(self, input: DateTime) -> Self
pub fn last_analyzed_timestamp(self, input: DateTime) -> Self
The timestamp of when the application component was assessed.
Sourcepub fn set_last_analyzed_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_last_analyzed_timestamp(self, input: Option<DateTime>) -> Self
The timestamp of when the application component was assessed.
Sourcepub fn get_last_analyzed_timestamp(&self) -> &Option<DateTime>
pub fn get_last_analyzed_timestamp(&self) -> &Option<DateTime>
The timestamp of when the application component was assessed.
Sourcepub fn associated_server_id(self, input: impl Into<String>) -> Self
pub fn associated_server_id(self, input: impl Into<String>) -> Self
The ID of the server that the application component is running on.
Sourcepub fn set_associated_server_id(self, input: Option<String>) -> Self
pub fn set_associated_server_id(self, input: Option<String>) -> Self
The ID of the server that the application component is running on.
Sourcepub fn get_associated_server_id(&self) -> &Option<String>
pub fn get_associated_server_id(&self) -> &Option<String>
The ID of the server that the application component is running on.
Sourcepub fn more_server_association_exists(self, input: bool) -> Self
pub fn more_server_association_exists(self, input: bool) -> Self
Set to true if the application component is running on multiple servers.
Sourcepub fn set_more_server_association_exists(self, input: Option<bool>) -> Self
pub fn set_more_server_association_exists(self, input: Option<bool>) -> Self
Set to true if the application component is running on multiple servers.
Sourcepub fn get_more_server_association_exists(&self) -> &Option<bool>
pub fn get_more_server_association_exists(&self) -> &Option<bool>
Set to true if the application component is running on multiple servers.
Sourcepub fn runtime_status(self, input: RuntimeAnalysisStatus) -> Self
pub fn runtime_status(self, input: RuntimeAnalysisStatus) -> Self
The status of the application unit.
Sourcepub fn set_runtime_status(self, input: Option<RuntimeAnalysisStatus>) -> Self
pub fn set_runtime_status(self, input: Option<RuntimeAnalysisStatus>) -> Self
The status of the application unit.
Sourcepub fn get_runtime_status(&self) -> &Option<RuntimeAnalysisStatus>
pub fn get_runtime_status(&self) -> &Option<RuntimeAnalysisStatus>
The status of the application unit.
Sourcepub fn runtime_status_message(self, input: impl Into<String>) -> Self
pub fn runtime_status_message(self, input: impl Into<String>) -> Self
The status message for the application unit.
Sourcepub fn set_runtime_status_message(self, input: Option<String>) -> Self
pub fn set_runtime_status_message(self, input: Option<String>) -> Self
The status message for the application unit.
Sourcepub fn get_runtime_status_message(&self) -> &Option<String>
pub fn get_runtime_status_message(&self) -> &Option<String>
The status message for the application unit.
Sourcepub fn app_unit_error(self, input: AppUnitError) -> Self
pub fn app_unit_error(self, input: AppUnitError) -> Self
The error in the analysis of the source code or database.
Sourcepub fn set_app_unit_error(self, input: Option<AppUnitError>) -> Self
pub fn set_app_unit_error(self, input: Option<AppUnitError>) -> Self
The error in the analysis of the source code or database.
Sourcepub fn get_app_unit_error(&self) -> &Option<AppUnitError>
pub fn get_app_unit_error(&self) -> &Option<AppUnitError>
The error in the analysis of the source code or database.
Sourcepub fn result_list(self, input: Result) -> Self
pub fn result_list(self, input: Result) -> Self
Appends an item to result_list
.
To override the contents of this collection use set_result_list
.
A list of the analysis results.
Sourcepub fn set_result_list(self, input: Option<Vec<Result>>) -> Self
pub fn set_result_list(self, input: Option<Vec<Result>>) -> Self
A list of the analysis results.
Sourcepub fn get_result_list(&self) -> &Option<Vec<Result>>
pub fn get_result_list(&self) -> &Option<Vec<Result>>
A list of the analysis results.
Sourcepub fn build(self) -> ApplicationComponentDetail
pub fn build(self) -> ApplicationComponentDetail
Consumes the builder and constructs a ApplicationComponentDetail
.
Trait Implementations§
Source§impl Clone for ApplicationComponentDetailBuilder
impl Clone for ApplicationComponentDetailBuilder
Source§fn clone(&self) -> ApplicationComponentDetailBuilder
fn clone(&self) -> ApplicationComponentDetailBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for ApplicationComponentDetailBuilder
impl Default for ApplicationComponentDetailBuilder
Source§fn default() -> ApplicationComponentDetailBuilder
fn default() -> ApplicationComponentDetailBuilder
Source§impl PartialEq for ApplicationComponentDetailBuilder
impl PartialEq for ApplicationComponentDetailBuilder
Source§fn eq(&self, other: &ApplicationComponentDetailBuilder) -> bool
fn eq(&self, other: &ApplicationComponentDetailBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ApplicationComponentDetailBuilder
Auto Trait Implementations§
impl Freeze for ApplicationComponentDetailBuilder
impl RefUnwindSafe for ApplicationComponentDetailBuilder
impl Send for ApplicationComponentDetailBuilder
impl Sync for ApplicationComponentDetailBuilder
impl Unpin for ApplicationComponentDetailBuilder
impl UnwindSafe for ApplicationComponentDetailBuilder
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§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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);