#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for Answer
Implementations
sourceimpl Builder
impl Builder
sourcepub fn question_id(self, input: impl Into<String>) -> Self
pub fn question_id(self, input: impl Into<String>) -> Self
The ID of the question.
sourcepub fn set_question_id(self, input: Option<String>) -> Self
pub fn set_question_id(self, input: Option<String>) -> Self
The ID of the question.
sourcepub fn pillar_id(self, input: impl Into<String>) -> Self
pub fn pillar_id(self, input: impl Into<String>) -> Self
The ID used to identify a pillar, for example, security
.
A pillar is identified by its PillarReviewSummary$PillarId
.
sourcepub fn set_pillar_id(self, input: Option<String>) -> Self
pub fn set_pillar_id(self, input: Option<String>) -> Self
The ID used to identify a pillar, for example, security
.
A pillar is identified by its PillarReviewSummary$PillarId
.
sourcepub fn question_title(self, input: impl Into<String>) -> Self
pub fn question_title(self, input: impl Into<String>) -> Self
The title of the question.
sourcepub fn set_question_title(self, input: Option<String>) -> Self
pub fn set_question_title(self, input: Option<String>) -> Self
The title of the question.
sourcepub fn question_description(self, input: impl Into<String>) -> Self
pub fn question_description(self, input: impl Into<String>) -> Self
The description of the question.
sourcepub fn set_question_description(self, input: Option<String>) -> Self
pub fn set_question_description(self, input: Option<String>) -> Self
The description of the question.
sourcepub fn improvement_plan_url(self, input: impl Into<String>) -> Self
pub fn improvement_plan_url(self, input: impl Into<String>) -> Self
The improvement plan URL for a question.
This value is only available if the question has been answered.
sourcepub fn set_improvement_plan_url(self, input: Option<String>) -> Self
pub fn set_improvement_plan_url(self, input: Option<String>) -> Self
The improvement plan URL for a question.
This value is only available if the question has been answered.
sourcepub fn helpful_resource_url(self, input: impl Into<String>) -> Self
pub fn helpful_resource_url(self, input: impl Into<String>) -> Self
The helpful resource URL for a question.
sourcepub fn set_helpful_resource_url(self, input: Option<String>) -> Self
pub fn set_helpful_resource_url(self, input: Option<String>) -> Self
The helpful resource URL for a question.
sourcepub fn helpful_resource_display_text(self, input: impl Into<String>) -> Self
pub fn helpful_resource_display_text(self, input: impl Into<String>) -> Self
The helpful resource text to be displayed.
sourcepub fn set_helpful_resource_display_text(self, input: Option<String>) -> Self
pub fn set_helpful_resource_display_text(self, input: Option<String>) -> Self
The helpful resource text to be displayed.
sourcepub fn choices(self, input: Choice) -> Self
pub fn choices(self, input: Choice) -> Self
Appends an item to choices
.
To override the contents of this collection use set_choices
.
List of choices available for a question.
sourcepub fn set_choices(self, input: Option<Vec<Choice>>) -> Self
pub fn set_choices(self, input: Option<Vec<Choice>>) -> Self
List of choices available for a question.
sourcepub fn selected_choices(self, input: impl Into<String>) -> Self
pub fn selected_choices(self, input: impl Into<String>) -> Self
Appends an item to selected_choices
.
To override the contents of this collection use set_selected_choices
.
List of selected choice IDs in a question answer.
The values entered replace the previously selected choices.
sourcepub fn set_selected_choices(self, input: Option<Vec<String>>) -> Self
pub fn set_selected_choices(self, input: Option<Vec<String>>) -> Self
List of selected choice IDs in a question answer.
The values entered replace the previously selected choices.
sourcepub fn choice_answers(self, input: ChoiceAnswer) -> Self
pub fn choice_answers(self, input: ChoiceAnswer) -> Self
Appends an item to choice_answers
.
To override the contents of this collection use set_choice_answers
.
A list of selected choices to a question in your workload.
sourcepub fn set_choice_answers(self, input: Option<Vec<ChoiceAnswer>>) -> Self
pub fn set_choice_answers(self, input: Option<Vec<ChoiceAnswer>>) -> Self
A list of selected choices to a question in your workload.
sourcepub fn is_applicable(self, input: bool) -> Self
pub fn is_applicable(self, input: bool) -> Self
Defines whether this question is applicable to a lens review.
sourcepub fn set_is_applicable(self, input: Option<bool>) -> Self
pub fn set_is_applicable(self, input: Option<bool>) -> Self
Defines whether this question is applicable to a lens review.
sourcepub fn risk(self, input: Risk) -> Self
pub fn risk(self, input: Risk) -> Self
The risk for a given workload, lens review, pillar, or question.
sourcepub fn set_risk(self, input: Option<Risk>) -> Self
pub fn set_risk(self, input: Option<Risk>) -> Self
The risk for a given workload, lens review, pillar, or question.
sourcepub fn reason(self, input: AnswerReason) -> Self
pub fn reason(self, input: AnswerReason) -> Self
The reason why the question is not applicable to your workload.
sourcepub fn set_reason(self, input: Option<AnswerReason>) -> Self
pub fn set_reason(self, input: Option<AnswerReason>) -> Self
The reason why the question is not applicable to your workload.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more