pub struct Builder { /* private fields */ }Expand description
A builder for TimeSeriesReplacementsDataSource.
Implementations§
source§impl Builder
impl Builder
sourcepub fn s3_config(self, input: S3Config) -> Self
pub fn s3_config(self, input: S3Config) -> Self
The path to the file(s) in an Amazon Simple Storage Service (Amazon S3) bucket, and an AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the file(s). Optionally, includes an AWS Key Management Service (KMS) key. This object is part of the DataSource object that is submitted in the CreateDatasetImportJob request, and part of the DataDestination object.
sourcepub fn set_s3_config(self, input: Option<S3Config>) -> Self
pub fn set_s3_config(self, input: Option<S3Config>) -> Self
The path to the file(s) in an Amazon Simple Storage Service (Amazon S3) bucket, and an AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the file(s). Optionally, includes an AWS Key Management Service (KMS) key. This object is part of the DataSource object that is submitted in the CreateDatasetImportJob request, and part of the DataDestination object.
sourcepub fn set_schema(self, input: Option<Schema>) -> Self
pub fn set_schema(self, input: Option<Schema>) -> Self
Defines the fields of a dataset.
sourcepub fn format(self, input: impl Into<String>) -> Self
pub fn format(self, input: impl Into<String>) -> Self
The format of the replacement data, CSV or PARQUET.
sourcepub fn set_format(self, input: Option<String>) -> Self
pub fn set_format(self, input: Option<String>) -> Self
The format of the replacement data, CSV or PARQUET.
sourcepub fn timestamp_format(self, input: impl Into<String>) -> Self
pub fn timestamp_format(self, input: impl Into<String>) -> Self
The timestamp format of the replacement data.
sourcepub fn set_timestamp_format(self, input: Option<String>) -> Self
pub fn set_timestamp_format(self, input: Option<String>) -> Self
The timestamp format of the replacement data.
sourcepub fn build(self) -> TimeSeriesReplacementsDataSource
pub fn build(self) -> TimeSeriesReplacementsDataSource
Consumes the builder and constructs a TimeSeriesReplacementsDataSource.