Struct aws_sdk_forecastquery::model::forecast::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for Forecast
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn predictions(self, k: impl Into<String>, v: Vec<DataPoint>) -> Self
pub fn predictions(self, k: impl Into<String>, v: Vec<DataPoint>) -> Self
Adds a key-value pair to predictions
.
To override the contents of this collection use set_predictions
.
The forecast.
The string of the string-to-array map is one of the following values:
-
p10
-
p50
-
p90
The default setting is ["0.1", "0.5", "0.9"]
. Use the optional ForecastTypes
parameter of the CreateForecast operation to change the values. The values will vary depending on how this is set, with a minimum of 1
and a maximum of 5.
sourcepub fn set_predictions(
self,
input: Option<HashMap<String, Vec<DataPoint>>>
) -> Self
pub fn set_predictions(
self,
input: Option<HashMap<String, Vec<DataPoint>>>
) -> Self
The forecast.
The string of the string-to-array map is one of the following values:
-
p10
-
p50
-
p90
The default setting is ["0.1", "0.5", "0.9"]
. Use the optional ForecastTypes
parameter of the CreateForecast operation to change the values. The values will vary depending on how this is set, with a minimum of 1
and a maximum of 5.