#[non_exhaustive]pub struct CreateFleetMetricInputBuilder { /* private fields */ }Expand description
A builder for CreateFleetMetricInput.
Implementations§
source§impl CreateFleetMetricInputBuilder
impl CreateFleetMetricInputBuilder
sourcepub fn metric_name(self, input: impl Into<String>) -> Self
pub fn metric_name(self, input: impl Into<String>) -> Self
The name of the fleet metric to create.
This field is required.sourcepub fn set_metric_name(self, input: Option<String>) -> Self
pub fn set_metric_name(self, input: Option<String>) -> Self
The name of the fleet metric to create.
sourcepub fn get_metric_name(&self) -> &Option<String>
pub fn get_metric_name(&self) -> &Option<String>
The name of the fleet metric to create.
sourcepub fn query_string(self, input: impl Into<String>) -> Self
pub fn query_string(self, input: impl Into<String>) -> Self
The search query string.
This field is required.sourcepub fn set_query_string(self, input: Option<String>) -> Self
pub fn set_query_string(self, input: Option<String>) -> Self
The search query string.
sourcepub fn get_query_string(&self) -> &Option<String>
pub fn get_query_string(&self) -> &Option<String>
The search query string.
sourcepub fn aggregation_type(self, input: AggregationType) -> Self
pub fn aggregation_type(self, input: AggregationType) -> Self
The type of the aggregation query.
This field is required.sourcepub fn set_aggregation_type(self, input: Option<AggregationType>) -> Self
pub fn set_aggregation_type(self, input: Option<AggregationType>) -> Self
The type of the aggregation query.
sourcepub fn get_aggregation_type(&self) -> &Option<AggregationType>
pub fn get_aggregation_type(&self) -> &Option<AggregationType>
The type of the aggregation query.
sourcepub fn period(self, input: i32) -> Self
pub fn period(self, input: i32) -> Self
The time in seconds between fleet metric emissions. Range [60(1 min), 86400(1 day)] and must be multiple of 60.
This field is required.sourcepub fn set_period(self, input: Option<i32>) -> Self
pub fn set_period(self, input: Option<i32>) -> Self
The time in seconds between fleet metric emissions. Range [60(1 min), 86400(1 day)] and must be multiple of 60.
sourcepub fn get_period(&self) -> &Option<i32>
pub fn get_period(&self) -> &Option<i32>
The time in seconds between fleet metric emissions. Range [60(1 min), 86400(1 day)] and must be multiple of 60.
sourcepub fn aggregation_field(self, input: impl Into<String>) -> Self
pub fn aggregation_field(self, input: impl Into<String>) -> Self
The field to aggregate.
This field is required.sourcepub fn set_aggregation_field(self, input: Option<String>) -> Self
pub fn set_aggregation_field(self, input: Option<String>) -> Self
The field to aggregate.
sourcepub fn get_aggregation_field(&self) -> &Option<String>
pub fn get_aggregation_field(&self) -> &Option<String>
The field to aggregate.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The fleet metric description.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The fleet metric description.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The fleet metric description.
sourcepub fn query_version(self, input: impl Into<String>) -> Self
pub fn query_version(self, input: impl Into<String>) -> Self
The query version.
sourcepub fn set_query_version(self, input: Option<String>) -> Self
pub fn set_query_version(self, input: Option<String>) -> Self
The query version.
sourcepub fn get_query_version(&self) -> &Option<String>
pub fn get_query_version(&self) -> &Option<String>
The query version.
sourcepub fn index_name(self, input: impl Into<String>) -> Self
pub fn index_name(self, input: impl Into<String>) -> Self
The name of the index to search.
sourcepub fn set_index_name(self, input: Option<String>) -> Self
pub fn set_index_name(self, input: Option<String>) -> Self
The name of the index to search.
sourcepub fn get_index_name(&self) -> &Option<String>
pub fn get_index_name(&self) -> &Option<String>
The name of the index to search.
sourcepub fn unit(self, input: FleetMetricUnit) -> Self
pub fn unit(self, input: FleetMetricUnit) -> Self
Used to support unit transformation such as milliseconds to seconds. The unit must be supported by CW metric. Default to null.
sourcepub fn set_unit(self, input: Option<FleetMetricUnit>) -> Self
pub fn set_unit(self, input: Option<FleetMetricUnit>) -> Self
Used to support unit transformation such as milliseconds to seconds. The unit must be supported by CW metric. Default to null.
sourcepub fn get_unit(&self) -> &Option<FleetMetricUnit>
pub fn get_unit(&self) -> &Option<FleetMetricUnit>
Used to support unit transformation such as milliseconds to seconds. The unit must be supported by CW metric. Default to null.
Appends an item to tags.
To override the contents of this collection use set_tags.
Metadata, which can be used to manage the fleet metric.
Metadata, which can be used to manage the fleet metric.
Metadata, which can be used to manage the fleet metric.
sourcepub fn build(self) -> Result<CreateFleetMetricInput, BuildError>
pub fn build(self) -> Result<CreateFleetMetricInput, BuildError>
Consumes the builder and constructs a CreateFleetMetricInput.
source§impl CreateFleetMetricInputBuilder
impl CreateFleetMetricInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateFleetMetricOutput, SdkError<CreateFleetMetricError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateFleetMetricOutput, SdkError<CreateFleetMetricError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateFleetMetricInputBuilder
impl Clone for CreateFleetMetricInputBuilder
source§fn clone(&self) -> CreateFleetMetricInputBuilder
fn clone(&self) -> CreateFleetMetricInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CreateFleetMetricInputBuilder
impl Default for CreateFleetMetricInputBuilder
source§fn default() -> CreateFleetMetricInputBuilder
fn default() -> CreateFleetMetricInputBuilder
source§impl PartialEq for CreateFleetMetricInputBuilder
impl PartialEq for CreateFleetMetricInputBuilder
source§fn eq(&self, other: &CreateFleetMetricInputBuilder) -> bool
fn eq(&self, other: &CreateFleetMetricInputBuilder) -> bool
self and other values to be equal, and is used
by ==.