Struct aws_sdk_iot::operation::update_custom_metric::builders::UpdateCustomMetricOutputBuilder
source · #[non_exhaustive]pub struct UpdateCustomMetricOutputBuilder { /* private fields */ }
Expand description
A builder for UpdateCustomMetricOutput
.
Implementations§
source§impl UpdateCustomMetricOutputBuilder
impl UpdateCustomMetricOutputBuilder
sourcepub fn metric_name(self, input: impl Into<String>) -> Self
pub fn metric_name(self, input: impl Into<String>) -> Self
The name of the custom metric.
sourcepub fn set_metric_name(self, input: Option<String>) -> Self
pub fn set_metric_name(self, input: Option<String>) -> Self
The name of the custom metric.
sourcepub fn get_metric_name(&self) -> &Option<String>
pub fn get_metric_name(&self) -> &Option<String>
The name of the custom metric.
sourcepub fn metric_arn(self, input: impl Into<String>) -> Self
pub fn metric_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Number (ARN) of the custom metric.
sourcepub fn set_metric_arn(self, input: Option<String>) -> Self
pub fn set_metric_arn(self, input: Option<String>) -> Self
The Amazon Resource Number (ARN) of the custom metric.
sourcepub fn get_metric_arn(&self) -> &Option<String>
pub fn get_metric_arn(&self) -> &Option<String>
The Amazon Resource Number (ARN) of the custom metric.
sourcepub fn metric_type(self, input: CustomMetricType) -> Self
pub fn metric_type(self, input: CustomMetricType) -> Self
The type of the custom metric.
The type number
only takes a single metric value as an input, but while submitting the metrics value in the DeviceMetrics report, it must be passed as an array with a single value.
sourcepub fn set_metric_type(self, input: Option<CustomMetricType>) -> Self
pub fn set_metric_type(self, input: Option<CustomMetricType>) -> Self
The type of the custom metric.
The type number
only takes a single metric value as an input, but while submitting the metrics value in the DeviceMetrics report, it must be passed as an array with a single value.
sourcepub fn get_metric_type(&self) -> &Option<CustomMetricType>
pub fn get_metric_type(&self) -> &Option<CustomMetricType>
The type of the custom metric.
The type number
only takes a single metric value as an input, but while submitting the metrics value in the DeviceMetrics report, it must be passed as an array with a single value.
sourcepub fn display_name(self, input: impl Into<String>) -> Self
pub fn display_name(self, input: impl Into<String>) -> Self
A friendly name in the console for the custom metric
sourcepub fn set_display_name(self, input: Option<String>) -> Self
pub fn set_display_name(self, input: Option<String>) -> Self
A friendly name in the console for the custom metric
sourcepub fn get_display_name(&self) -> &Option<String>
pub fn get_display_name(&self) -> &Option<String>
A friendly name in the console for the custom metric
sourcepub fn creation_date(self, input: DateTime) -> Self
pub fn creation_date(self, input: DateTime) -> Self
The creation date of the custom metric in milliseconds since epoch.
sourcepub fn set_creation_date(self, input: Option<DateTime>) -> Self
pub fn set_creation_date(self, input: Option<DateTime>) -> Self
The creation date of the custom metric in milliseconds since epoch.
sourcepub fn get_creation_date(&self) -> &Option<DateTime>
pub fn get_creation_date(&self) -> &Option<DateTime>
The creation date of the custom metric in milliseconds since epoch.
sourcepub fn last_modified_date(self, input: DateTime) -> Self
pub fn last_modified_date(self, input: DateTime) -> Self
The time the custom metric was last modified in milliseconds since epoch.
sourcepub fn set_last_modified_date(self, input: Option<DateTime>) -> Self
pub fn set_last_modified_date(self, input: Option<DateTime>) -> Self
The time the custom metric was last modified in milliseconds since epoch.
sourcepub fn get_last_modified_date(&self) -> &Option<DateTime>
pub fn get_last_modified_date(&self) -> &Option<DateTime>
The time the custom metric was last modified in milliseconds since epoch.
sourcepub fn build(self) -> UpdateCustomMetricOutput
pub fn build(self) -> UpdateCustomMetricOutput
Consumes the builder and constructs a UpdateCustomMetricOutput
.
Trait Implementations§
source§impl Clone for UpdateCustomMetricOutputBuilder
impl Clone for UpdateCustomMetricOutputBuilder
source§fn clone(&self) -> UpdateCustomMetricOutputBuilder
fn clone(&self) -> UpdateCustomMetricOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for UpdateCustomMetricOutputBuilder
impl Default for UpdateCustomMetricOutputBuilder
source§fn default() -> UpdateCustomMetricOutputBuilder
fn default() -> UpdateCustomMetricOutputBuilder
source§impl PartialEq for UpdateCustomMetricOutputBuilder
impl PartialEq for UpdateCustomMetricOutputBuilder
source§fn eq(&self, other: &UpdateCustomMetricOutputBuilder) -> bool
fn eq(&self, other: &UpdateCustomMetricOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateCustomMetricOutputBuilder
Auto Trait Implementations§
impl Freeze for UpdateCustomMetricOutputBuilder
impl RefUnwindSafe for UpdateCustomMetricOutputBuilder
impl Send for UpdateCustomMetricOutputBuilder
impl Sync for UpdateCustomMetricOutputBuilder
impl Unpin for UpdateCustomMetricOutputBuilder
impl UnwindSafe for UpdateCustomMetricOutputBuilder
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> 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