#[non_exhaustive]pub struct CodegenJobGenericDataSchemaBuilder { /* private fields */ }Expand description
A builder for CodegenJobGenericDataSchema.
Implementations§
source§impl CodegenJobGenericDataSchemaBuilder
 
impl CodegenJobGenericDataSchemaBuilder
sourcepub fn data_source_type(self, input: CodegenJobGenericDataSourceType) -> Self
 
pub fn data_source_type(self, input: CodegenJobGenericDataSourceType) -> Self
The type of the data source for the schema. Currently, the only valid value is an Amplify DataStore.
sourcepub fn set_data_source_type(
    self,
    input: Option<CodegenJobGenericDataSourceType>
) -> Self
 
pub fn set_data_source_type( self, input: Option<CodegenJobGenericDataSourceType> ) -> Self
The type of the data source for the schema. Currently, the only valid value is an Amplify DataStore.
sourcepub fn get_data_source_type(&self) -> &Option<CodegenJobGenericDataSourceType>
 
pub fn get_data_source_type(&self) -> &Option<CodegenJobGenericDataSourceType>
The type of the data source for the schema. Currently, the only valid value is an Amplify DataStore.
sourcepub fn models(self, k: impl Into<String>, v: CodegenGenericDataModel) -> Self
 
pub fn models(self, k: impl Into<String>, v: CodegenGenericDataModel) -> Self
Adds a key-value pair to models.
To override the contents of this collection use set_models.
The name of a CodegenGenericDataModel.
sourcepub fn set_models(
    self,
    input: Option<HashMap<String, CodegenGenericDataModel>>
) -> Self
 
pub fn set_models( self, input: Option<HashMap<String, CodegenGenericDataModel>> ) -> Self
The name of a CodegenGenericDataModel.
sourcepub fn get_models(&self) -> &Option<HashMap<String, CodegenGenericDataModel>>
 
pub fn get_models(&self) -> &Option<HashMap<String, CodegenGenericDataModel>>
The name of a CodegenGenericDataModel.
sourcepub fn enums(self, k: impl Into<String>, v: CodegenGenericDataEnum) -> Self
 
pub fn enums(self, k: impl Into<String>, v: CodegenGenericDataEnum) -> Self
Adds a key-value pair to enums.
To override the contents of this collection use set_enums.
The name of a CodegenGenericDataEnum.
sourcepub fn set_enums(
    self,
    input: Option<HashMap<String, CodegenGenericDataEnum>>
) -> Self
 
pub fn set_enums( self, input: Option<HashMap<String, CodegenGenericDataEnum>> ) -> Self
The name of a CodegenGenericDataEnum.
sourcepub fn get_enums(&self) -> &Option<HashMap<String, CodegenGenericDataEnum>>
 
pub fn get_enums(&self) -> &Option<HashMap<String, CodegenGenericDataEnum>>
The name of a CodegenGenericDataEnum.
sourcepub fn non_models(
    self,
    k: impl Into<String>,
    v: CodegenGenericDataNonModel
) -> Self
 
pub fn non_models( self, k: impl Into<String>, v: CodegenGenericDataNonModel ) -> Self
Adds a key-value pair to non_models.
To override the contents of this collection use set_non_models.
The name of a CodegenGenericDataNonModel.
sourcepub fn set_non_models(
    self,
    input: Option<HashMap<String, CodegenGenericDataNonModel>>
) -> Self
 
pub fn set_non_models( self, input: Option<HashMap<String, CodegenGenericDataNonModel>> ) -> Self
The name of a CodegenGenericDataNonModel.
sourcepub fn get_non_models(
    &self
) -> &Option<HashMap<String, CodegenGenericDataNonModel>>
 
pub fn get_non_models( &self ) -> &Option<HashMap<String, CodegenGenericDataNonModel>>
The name of a CodegenGenericDataNonModel.
sourcepub fn build(self) -> Result<CodegenJobGenericDataSchema, BuildError>
 
pub fn build(self) -> Result<CodegenJobGenericDataSchema, BuildError>
Consumes the builder and constructs a CodegenJobGenericDataSchema.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CodegenJobGenericDataSchemaBuilder
 
impl Clone for CodegenJobGenericDataSchemaBuilder
source§fn clone(&self) -> CodegenJobGenericDataSchemaBuilder
 
fn clone(&self) -> CodegenJobGenericDataSchemaBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CodegenJobGenericDataSchemaBuilder
 
impl Default for CodegenJobGenericDataSchemaBuilder
source§fn default() -> CodegenJobGenericDataSchemaBuilder
 
fn default() -> CodegenJobGenericDataSchemaBuilder
source§impl PartialEq for CodegenJobGenericDataSchemaBuilder
 
impl PartialEq for CodegenJobGenericDataSchemaBuilder
source§fn eq(&self, other: &CodegenJobGenericDataSchemaBuilder) -> bool
 
fn eq(&self, other: &CodegenJobGenericDataSchemaBuilder) -> bool
self and other values to be equal, and is used
by ==.