Struct aws_sdk_deadline::types::builders::StatisticsBuilder
source · #[non_exhaustive]pub struct StatisticsBuilder { /* private fields */ }Expand description
A builder for Statistics.
Implementations§
source§impl StatisticsBuilder
impl StatisticsBuilder
sourcepub fn set_queue_id(self, input: Option<String>) -> Self
pub fn set_queue_id(self, input: Option<String>) -> Self
The queue ID.
sourcepub fn get_queue_id(&self) -> &Option<String>
pub fn get_queue_id(&self) -> &Option<String>
The queue ID.
sourcepub fn set_fleet_id(self, input: Option<String>) -> Self
pub fn set_fleet_id(self, input: Option<String>) -> Self
The fleet ID.
sourcepub fn get_fleet_id(&self) -> &Option<String>
pub fn get_fleet_id(&self) -> &Option<String>
The fleet ID.
sourcepub fn set_job_id(self, input: Option<String>) -> Self
pub fn set_job_id(self, input: Option<String>) -> Self
The job ID.
sourcepub fn get_job_id(&self) -> &Option<String>
pub fn get_job_id(&self) -> &Option<String>
The job ID.
sourcepub fn set_job_name(self, input: Option<String>) -> Self
pub fn set_job_name(self, input: Option<String>) -> Self
The job name.
sourcepub fn get_job_name(&self) -> &Option<String>
pub fn get_job_name(&self) -> &Option<String>
The job name.
sourcepub fn set_user_id(self, input: Option<String>) -> Self
pub fn set_user_id(self, input: Option<String>) -> Self
The user ID.
sourcepub fn get_user_id(&self) -> &Option<String>
pub fn get_user_id(&self) -> &Option<String>
The user ID.
sourcepub fn usage_type(self, input: UsageType) -> Self
pub fn usage_type(self, input: UsageType) -> Self
The type of usage for the statistics.
sourcepub fn set_usage_type(self, input: Option<UsageType>) -> Self
pub fn set_usage_type(self, input: Option<UsageType>) -> Self
The type of usage for the statistics.
sourcepub fn get_usage_type(&self) -> &Option<UsageType>
pub fn get_usage_type(&self) -> &Option<UsageType>
The type of usage for the statistics.
sourcepub fn license_product(self, input: impl Into<String>) -> Self
pub fn license_product(self, input: impl Into<String>) -> Self
The licensed product.
sourcepub fn set_license_product(self, input: Option<String>) -> Self
pub fn set_license_product(self, input: Option<String>) -> Self
The licensed product.
sourcepub fn get_license_product(&self) -> &Option<String>
pub fn get_license_product(&self) -> &Option<String>
The licensed product.
sourcepub fn instance_type(self, input: impl Into<String>) -> Self
pub fn instance_type(self, input: impl Into<String>) -> Self
The type of instance.
sourcepub fn set_instance_type(self, input: Option<String>) -> Self
pub fn set_instance_type(self, input: Option<String>) -> Self
The type of instance.
sourcepub fn get_instance_type(&self) -> &Option<String>
pub fn get_instance_type(&self) -> &Option<String>
The type of instance.
sourcepub fn count(self, input: i32) -> Self
pub fn count(self, input: i32) -> Self
The number of instances in a list of statistics.
This field is required.sourcepub fn set_count(self, input: Option<i32>) -> Self
pub fn set_count(self, input: Option<i32>) -> Self
The number of instances in a list of statistics.
sourcepub fn cost_in_usd(self, input: Stats) -> Self
pub fn cost_in_usd(self, input: Stats) -> Self
How the statistics should appear in USD. Options include: minimum, maximum, average or sum.
This field is required.sourcepub fn set_cost_in_usd(self, input: Option<Stats>) -> Self
pub fn set_cost_in_usd(self, input: Option<Stats>) -> Self
How the statistics should appear in USD. Options include: minimum, maximum, average or sum.
sourcepub fn get_cost_in_usd(&self) -> &Option<Stats>
pub fn get_cost_in_usd(&self) -> &Option<Stats>
How the statistics should appear in USD. Options include: minimum, maximum, average or sum.
sourcepub fn runtime_in_seconds(self, input: Stats) -> Self
pub fn runtime_in_seconds(self, input: Stats) -> Self
The total aggregated runtime.
This field is required.sourcepub fn set_runtime_in_seconds(self, input: Option<Stats>) -> Self
pub fn set_runtime_in_seconds(self, input: Option<Stats>) -> Self
The total aggregated runtime.
sourcepub fn get_runtime_in_seconds(&self) -> &Option<Stats>
pub fn get_runtime_in_seconds(&self) -> &Option<Stats>
The total aggregated runtime.
sourcepub fn aggregation_start_time(self, input: DateTime) -> Self
pub fn aggregation_start_time(self, input: DateTime) -> Self
The start time for the aggregation.
sourcepub fn set_aggregation_start_time(self, input: Option<DateTime>) -> Self
pub fn set_aggregation_start_time(self, input: Option<DateTime>) -> Self
The start time for the aggregation.
sourcepub fn get_aggregation_start_time(&self) -> &Option<DateTime>
pub fn get_aggregation_start_time(&self) -> &Option<DateTime>
The start time for the aggregation.
sourcepub fn aggregation_end_time(self, input: DateTime) -> Self
pub fn aggregation_end_time(self, input: DateTime) -> Self
The end time for the aggregation.
sourcepub fn set_aggregation_end_time(self, input: Option<DateTime>) -> Self
pub fn set_aggregation_end_time(self, input: Option<DateTime>) -> Self
The end time for the aggregation.
sourcepub fn get_aggregation_end_time(&self) -> &Option<DateTime>
pub fn get_aggregation_end_time(&self) -> &Option<DateTime>
The end time for the aggregation.
sourcepub fn build(self) -> Result<Statistics, BuildError>
pub fn build(self) -> Result<Statistics, BuildError>
Consumes the builder and constructs a Statistics.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for StatisticsBuilder
impl Clone for StatisticsBuilder
source§fn clone(&self) -> StatisticsBuilder
fn clone(&self) -> StatisticsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for StatisticsBuilder
impl Debug for StatisticsBuilder
source§impl Default for StatisticsBuilder
impl Default for StatisticsBuilder
source§fn default() -> StatisticsBuilder
fn default() -> StatisticsBuilder
source§impl PartialEq for StatisticsBuilder
impl PartialEq for StatisticsBuilder
source§fn eq(&self, other: &StatisticsBuilder) -> bool
fn eq(&self, other: &StatisticsBuilder) -> bool
self and other values to be equal, and is used
by ==.