pub struct CreateSchemaFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateSchema
.
Creates an Amazon Personalize schema from the specified schema string. The schema you create must be in Avro JSON format.
Amazon Personalize recognizes three schema variants. Each schema is associated with a dataset type and has a set of required field and keywords. If you are creating a schema for a dataset in a Domain dataset group, you provide the domain of the Domain dataset group. You specify a schema when you call CreateDataset.
Related APIs
Implementations§
source§impl CreateSchemaFluentBuilder
impl CreateSchemaFluentBuilder
sourcepub fn as_input(&self) -> &CreateSchemaInputBuilder
pub fn as_input(&self) -> &CreateSchemaInputBuilder
Access the CreateSchema as a reference.
sourcepub async fn send(
self
) -> Result<CreateSchemaOutput, SdkError<CreateSchemaError, HttpResponse>>
pub async fn send( self ) -> Result<CreateSchemaOutput, SdkError<CreateSchemaError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<CreateSchemaOutput, CreateSchemaError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateSchemaOutput, CreateSchemaError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn set_schema(self, input: Option<String>) -> Self
pub fn set_schema(self, input: Option<String>) -> Self
A schema in Avro JSON format.
sourcepub fn get_schema(&self) -> &Option<String>
pub fn get_schema(&self) -> &Option<String>
A schema in Avro JSON format.
sourcepub fn domain(self, input: Domain) -> Self
pub fn domain(self, input: Domain) -> Self
The domain for the schema. If you are creating a schema for a dataset in a Domain dataset group, specify the domain you chose when you created the Domain dataset group.
sourcepub fn set_domain(self, input: Option<Domain>) -> Self
pub fn set_domain(self, input: Option<Domain>) -> Self
The domain for the schema. If you are creating a schema for a dataset in a Domain dataset group, specify the domain you chose when you created the Domain dataset group.
sourcepub fn get_domain(&self) -> &Option<Domain>
pub fn get_domain(&self) -> &Option<Domain>
The domain for the schema. If you are creating a schema for a dataset in a Domain dataset group, specify the domain you chose when you created the Domain dataset group.
Trait Implementations§
source§impl Clone for CreateSchemaFluentBuilder
impl Clone for CreateSchemaFluentBuilder
source§fn clone(&self) -> CreateSchemaFluentBuilder
fn clone(&self) -> CreateSchemaFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more