#[non_exhaustive]pub struct CreateTopicReviewedAnswerBuilder { /* private fields */ }
Expand description
A builder for CreateTopicReviewedAnswer
.
Implementations§
source§impl CreateTopicReviewedAnswerBuilder
impl CreateTopicReviewedAnswerBuilder
sourcepub fn answer_id(self, input: impl Into<String>) -> Self
pub fn answer_id(self, input: impl Into<String>) -> Self
The answer ID for the CreateTopicReviewedAnswer
.
sourcepub fn set_answer_id(self, input: Option<String>) -> Self
pub fn set_answer_id(self, input: Option<String>) -> Self
The answer ID for the CreateTopicReviewedAnswer
.
sourcepub fn get_answer_id(&self) -> &Option<String>
pub fn get_answer_id(&self) -> &Option<String>
The answer ID for the CreateTopicReviewedAnswer
.
sourcepub fn dataset_arn(self, input: impl Into<String>) -> Self
pub fn dataset_arn(self, input: impl Into<String>) -> Self
The Dataset arn for the CreateTopicReviewedAnswer
.
sourcepub fn set_dataset_arn(self, input: Option<String>) -> Self
pub fn set_dataset_arn(self, input: Option<String>) -> Self
The Dataset arn for the CreateTopicReviewedAnswer
.
sourcepub fn get_dataset_arn(&self) -> &Option<String>
pub fn get_dataset_arn(&self) -> &Option<String>
The Dataset arn for the CreateTopicReviewedAnswer
.
sourcepub fn question(self, input: impl Into<String>) -> Self
pub fn question(self, input: impl Into<String>) -> Self
The Question to be created.
This field is required.sourcepub fn set_question(self, input: Option<String>) -> Self
pub fn set_question(self, input: Option<String>) -> Self
The Question to be created.
sourcepub fn get_question(&self) -> &Option<String>
pub fn get_question(&self) -> &Option<String>
The Question to be created.
sourcepub fn set_mir(self, input: Option<TopicIr>) -> Self
pub fn set_mir(self, input: Option<TopicIr>) -> Self
The Mir for the CreateTopicReviewedAnswer
.
sourcepub fn primary_visual(self, input: TopicVisual) -> Self
pub fn primary_visual(self, input: TopicVisual) -> Self
The PrimaryVisual
for the CreateTopicReviewedAnswer
.
sourcepub fn set_primary_visual(self, input: Option<TopicVisual>) -> Self
pub fn set_primary_visual(self, input: Option<TopicVisual>) -> Self
The PrimaryVisual
for the CreateTopicReviewedAnswer
.
sourcepub fn get_primary_visual(&self) -> &Option<TopicVisual>
pub fn get_primary_visual(&self) -> &Option<TopicVisual>
The PrimaryVisual
for the CreateTopicReviewedAnswer
.
sourcepub fn template(self, input: TopicTemplate) -> Self
pub fn template(self, input: TopicTemplate) -> Self
The template for the CreateTopicReviewedAnswer
.
sourcepub fn set_template(self, input: Option<TopicTemplate>) -> Self
pub fn set_template(self, input: Option<TopicTemplate>) -> Self
The template for the CreateTopicReviewedAnswer
.
sourcepub fn get_template(&self) -> &Option<TopicTemplate>
pub fn get_template(&self) -> &Option<TopicTemplate>
The template for the CreateTopicReviewedAnswer
.
sourcepub fn build(self) -> Result<CreateTopicReviewedAnswer, BuildError>
pub fn build(self) -> Result<CreateTopicReviewedAnswer, BuildError>
Consumes the builder and constructs a CreateTopicReviewedAnswer
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CreateTopicReviewedAnswerBuilder
impl Clone for CreateTopicReviewedAnswerBuilder
source§fn clone(&self) -> CreateTopicReviewedAnswerBuilder
fn clone(&self) -> CreateTopicReviewedAnswerBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateTopicReviewedAnswerBuilder
impl Default for CreateTopicReviewedAnswerBuilder
source§fn default() -> CreateTopicReviewedAnswerBuilder
fn default() -> CreateTopicReviewedAnswerBuilder
source§impl PartialEq for CreateTopicReviewedAnswerBuilder
impl PartialEq for CreateTopicReviewedAnswerBuilder
source§fn eq(&self, other: &CreateTopicReviewedAnswerBuilder) -> bool
fn eq(&self, other: &CreateTopicReviewedAnswerBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CreateTopicReviewedAnswerBuilder
Auto Trait Implementations§
impl Freeze for CreateTopicReviewedAnswerBuilder
impl RefUnwindSafe for CreateTopicReviewedAnswerBuilder
impl Send for CreateTopicReviewedAnswerBuilder
impl Sync for CreateTopicReviewedAnswerBuilder
impl Unpin for CreateTopicReviewedAnswerBuilder
impl UnwindSafe for CreateTopicReviewedAnswerBuilder
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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