#[non_exhaustive]pub struct GrammarSlotTypeSourceBuilder { /* private fields */ }Expand description
A builder for GrammarSlotTypeSource.
Implementations§
source§impl GrammarSlotTypeSourceBuilder
impl GrammarSlotTypeSourceBuilder
sourcepub fn s3_bucket_name(self, input: impl Into<String>) -> Self
pub fn s3_bucket_name(self, input: impl Into<String>) -> Self
The name of the Amazon S3 bucket that contains the grammar source.
This field is required.sourcepub fn set_s3_bucket_name(self, input: Option<String>) -> Self
pub fn set_s3_bucket_name(self, input: Option<String>) -> Self
The name of the Amazon S3 bucket that contains the grammar source.
sourcepub fn get_s3_bucket_name(&self) -> &Option<String>
pub fn get_s3_bucket_name(&self) -> &Option<String>
The name of the Amazon S3 bucket that contains the grammar source.
sourcepub fn s3_object_key(self, input: impl Into<String>) -> Self
pub fn s3_object_key(self, input: impl Into<String>) -> Self
The path to the grammar in the Amazon S3 bucket.
This field is required.sourcepub fn set_s3_object_key(self, input: Option<String>) -> Self
pub fn set_s3_object_key(self, input: Option<String>) -> Self
The path to the grammar in the Amazon S3 bucket.
sourcepub fn get_s3_object_key(&self) -> &Option<String>
pub fn get_s3_object_key(&self) -> &Option<String>
The path to the grammar in the Amazon S3 bucket.
sourcepub fn kms_key_arn(self, input: impl Into<String>) -> Self
pub fn kms_key_arn(self, input: impl Into<String>) -> Self
The KMS key required to decrypt the contents of the grammar, if any.
sourcepub fn set_kms_key_arn(self, input: Option<String>) -> Self
pub fn set_kms_key_arn(self, input: Option<String>) -> Self
The KMS key required to decrypt the contents of the grammar, if any.
sourcepub fn get_kms_key_arn(&self) -> &Option<String>
pub fn get_kms_key_arn(&self) -> &Option<String>
The KMS key required to decrypt the contents of the grammar, if any.
sourcepub fn build(self) -> Result<GrammarSlotTypeSource, BuildError>
pub fn build(self) -> Result<GrammarSlotTypeSource, BuildError>
Consumes the builder and constructs a GrammarSlotTypeSource.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for GrammarSlotTypeSourceBuilder
impl Clone for GrammarSlotTypeSourceBuilder
source§fn clone(&self) -> GrammarSlotTypeSourceBuilder
fn clone(&self) -> GrammarSlotTypeSourceBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for GrammarSlotTypeSourceBuilder
impl Debug for GrammarSlotTypeSourceBuilder
source§impl Default for GrammarSlotTypeSourceBuilder
impl Default for GrammarSlotTypeSourceBuilder
source§fn default() -> GrammarSlotTypeSourceBuilder
fn default() -> GrammarSlotTypeSourceBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for GrammarSlotTypeSourceBuilder
impl PartialEq for GrammarSlotTypeSourceBuilder
source§fn eq(&self, other: &GrammarSlotTypeSourceBuilder) -> bool
fn eq(&self, other: &GrammarSlotTypeSourceBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for GrammarSlotTypeSourceBuilder
Auto Trait Implementations§
impl RefUnwindSafe for GrammarSlotTypeSourceBuilder
impl Send for GrammarSlotTypeSourceBuilder
impl Sync for GrammarSlotTypeSourceBuilder
impl Unpin for GrammarSlotTypeSourceBuilder
impl UnwindSafe for GrammarSlotTypeSourceBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.