aws_sdk_wellarchitected/client/
update_answer.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateAnswer`](crate::operation::update_answer::builders::UpdateAnswerFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`workload_id(impl Into<String>)`](crate::operation::update_answer::builders::UpdateAnswerFluentBuilder::workload_id) / [`set_workload_id(Option<String>)`](crate::operation::update_answer::builders::UpdateAnswerFluentBuilder::set_workload_id):<br>required: **true**<br><p>The ID assigned to the workload. This ID is unique within an Amazon Web Services Region.</p><br>
    ///   - [`lens_alias(impl Into<String>)`](crate::operation::update_answer::builders::UpdateAnswerFluentBuilder::lens_alias) / [`set_lens_alias(Option<String>)`](crate::operation::update_answer::builders::UpdateAnswerFluentBuilder::set_lens_alias):<br>required: **true**<br><p>The alias of the lens.</p> <p>For Amazon Web Services official lenses, this is either the lens alias, such as <code>serverless</code>, or the lens ARN, such as <code>arn:aws:wellarchitected:us-east-1::lens/serverless</code>. Note that some operations (such as ExportLens and CreateLensShare) are not permitted on Amazon Web Services official lenses.</p> <p>For custom lenses, this is the lens ARN, such as <code>arn:aws:wellarchitected:us-west-2:123456789012:lens/0123456789abcdef01234567890abcdef</code>.</p> <p>Each lens is identified by its <code>LensSummary$LensAlias</code>.</p><br>
    ///   - [`question_id(impl Into<String>)`](crate::operation::update_answer::builders::UpdateAnswerFluentBuilder::question_id) / [`set_question_id(Option<String>)`](crate::operation::update_answer::builders::UpdateAnswerFluentBuilder::set_question_id):<br>required: **true**<br><p>The ID of the question.</p><br>
    ///   - [`selected_choices(impl Into<String>)`](crate::operation::update_answer::builders::UpdateAnswerFluentBuilder::selected_choices) / [`set_selected_choices(Option<Vec::<String>>)`](crate::operation::update_answer::builders::UpdateAnswerFluentBuilder::set_selected_choices):<br>required: **false**<br><p>List of selected choice IDs in a question answer.</p> <p>The values entered replace the previously selected choices.</p><br>
    ///   - [`choice_updates(impl Into<String>, ChoiceUpdate)`](crate::operation::update_answer::builders::UpdateAnswerFluentBuilder::choice_updates) / [`set_choice_updates(Option<HashMap::<String, ChoiceUpdate>>)`](crate::operation::update_answer::builders::UpdateAnswerFluentBuilder::set_choice_updates):<br>required: **false**<br><p>A list of choices to update on a question in your workload. The String key corresponds to the choice ID to be updated.</p><br>
    ///   - [`notes(impl Into<String>)`](crate::operation::update_answer::builders::UpdateAnswerFluentBuilder::notes) / [`set_notes(Option<String>)`](crate::operation::update_answer::builders::UpdateAnswerFluentBuilder::set_notes):<br>required: **false**<br><p>The notes associated with the workload.</p> <p>For a review template, these are the notes that will be associated with the workload when the template is applied.</p><br>
    ///   - [`is_applicable(bool)`](crate::operation::update_answer::builders::UpdateAnswerFluentBuilder::is_applicable) / [`set_is_applicable(Option<bool>)`](crate::operation::update_answer::builders::UpdateAnswerFluentBuilder::set_is_applicable):<br>required: **false**<br><p>Defines whether this question is applicable to a lens review.</p><br>
    ///   - [`reason(AnswerReason)`](crate::operation::update_answer::builders::UpdateAnswerFluentBuilder::reason) / [`set_reason(Option<AnswerReason>)`](crate::operation::update_answer::builders::UpdateAnswerFluentBuilder::set_reason):<br>required: **false**<br><p>The reason why a question is not applicable to your workload.</p><br>
    /// - On success, responds with [`UpdateAnswerOutput`](crate::operation::update_answer::UpdateAnswerOutput) with field(s):
    ///   - [`workload_id(Option<String>)`](crate::operation::update_answer::UpdateAnswerOutput::workload_id): <p>The ID assigned to the workload. This ID is unique within an Amazon Web Services Region.</p>
    ///   - [`lens_alias(Option<String>)`](crate::operation::update_answer::UpdateAnswerOutput::lens_alias): <p>The alias of the lens.</p> <p>For Amazon Web Services official lenses, this is either the lens alias, such as <code>serverless</code>, or the lens ARN, such as <code>arn:aws:wellarchitected:us-east-1::lens/serverless</code>. Note that some operations (such as ExportLens and CreateLensShare) are not permitted on Amazon Web Services official lenses.</p> <p>For custom lenses, this is the lens ARN, such as <code>arn:aws:wellarchitected:us-west-2:123456789012:lens/0123456789abcdef01234567890abcdef</code>.</p> <p>Each lens is identified by its <code>LensSummary$LensAlias</code>.</p>
    ///   - [`lens_arn(Option<String>)`](crate::operation::update_answer::UpdateAnswerOutput::lens_arn): <p>The ARN for the lens.</p>
    ///   - [`answer(Option<Answer>)`](crate::operation::update_answer::UpdateAnswerOutput::answer): <p>An answer of the question.</p>
    /// - On failure, responds with [`SdkError<UpdateAnswerError>`](crate::operation::update_answer::UpdateAnswerError)
    pub fn update_answer(&self) -> crate::operation::update_answer::builders::UpdateAnswerFluentBuilder {
        crate::operation::update_answer::builders::UpdateAnswerFluentBuilder::new(self.handle.clone())
    }
}