#[non_exhaustive]pub struct GenerativeAiSettingsBuilder { /* private fields */ }
Expand description
A builder for GenerativeAiSettings
.
Implementations§
source§impl GenerativeAiSettingsBuilder
impl GenerativeAiSettingsBuilder
sourcepub fn amazon_bedrock_role_arn(self, input: impl Into<String>) -> Self
pub fn amazon_bedrock_role_arn(self, input: impl Into<String>) -> Self
The ARN of an Amazon Web Services IAM role that allows fine-tuning of large language models (LLMs) in Amazon Bedrock. The IAM role should have Amazon S3 read and write permissions, as well as a trust relationship that establishes bedrock.amazonaws.com
as a service principal.
sourcepub fn set_amazon_bedrock_role_arn(self, input: Option<String>) -> Self
pub fn set_amazon_bedrock_role_arn(self, input: Option<String>) -> Self
The ARN of an Amazon Web Services IAM role that allows fine-tuning of large language models (LLMs) in Amazon Bedrock. The IAM role should have Amazon S3 read and write permissions, as well as a trust relationship that establishes bedrock.amazonaws.com
as a service principal.
sourcepub fn get_amazon_bedrock_role_arn(&self) -> &Option<String>
pub fn get_amazon_bedrock_role_arn(&self) -> &Option<String>
The ARN of an Amazon Web Services IAM role that allows fine-tuning of large language models (LLMs) in Amazon Bedrock. The IAM role should have Amazon S3 read and write permissions, as well as a trust relationship that establishes bedrock.amazonaws.com
as a service principal.
sourcepub fn build(self) -> GenerativeAiSettings
pub fn build(self) -> GenerativeAiSettings
Consumes the builder and constructs a GenerativeAiSettings
.
Trait Implementations§
source§impl Clone for GenerativeAiSettingsBuilder
impl Clone for GenerativeAiSettingsBuilder
source§fn clone(&self) -> GenerativeAiSettingsBuilder
fn clone(&self) -> GenerativeAiSettingsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GenerativeAiSettingsBuilder
impl Debug for GenerativeAiSettingsBuilder
source§impl Default for GenerativeAiSettingsBuilder
impl Default for GenerativeAiSettingsBuilder
source§fn default() -> GenerativeAiSettingsBuilder
fn default() -> GenerativeAiSettingsBuilder
impl StructuralPartialEq for GenerativeAiSettingsBuilder
Auto Trait Implementations§
impl Freeze for GenerativeAiSettingsBuilder
impl RefUnwindSafe for GenerativeAiSettingsBuilder
impl Send for GenerativeAiSettingsBuilder
impl Sync for GenerativeAiSettingsBuilder
impl Unpin for GenerativeAiSettingsBuilder
impl UnwindSafe for GenerativeAiSettingsBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more