#[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 S3 bucket that contains the grammar source.
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 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 S3 bucket.
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 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 Amazon 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 Amazon KMS key required to decrypt the contents of the grammar, if any.
sourcepub fn build(self) -> GrammarSlotTypeSource
pub fn build(self) -> GrammarSlotTypeSource
Consumes the builder and constructs a GrammarSlotTypeSource.
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<GrammarSlotTypeSourceBuilder> for GrammarSlotTypeSourceBuilder
impl PartialEq<GrammarSlotTypeSourceBuilder> 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 ==.