Struct aws_sdk_wellarchitected::input::UpdateAnswerInput
source · [−]#[non_exhaustive]pub struct UpdateAnswerInput {
pub workload_id: Option<String>,
pub lens_alias: Option<String>,
pub question_id: Option<String>,
pub selected_choices: Option<Vec<String>>,
pub choice_updates: Option<HashMap<String, ChoiceUpdate>>,
pub notes: Option<String>,
pub is_applicable: bool,
pub reason: Option<AnswerReason>,
}
Expand description
Input to update answer.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.workload_id: Option<String>
The ID assigned to the workload. This ID is unique within an Amazon Web Services Region.
lens_alias: Option<String>
The alias of the lens, for example, serverless
.
Each lens is identified by its LensSummary$LensAlias
.
question_id: Option<String>
The ID of the question.
selected_choices: Option<Vec<String>>
List of selected choice IDs in a question answer.
The values entered replace the previously selected choices.
choice_updates: Option<HashMap<String, ChoiceUpdate>>
A list of choices to update on a question in your workload. The String key corresponds to the choice ID to be updated.
notes: Option<String>
The notes associated with the workload.
is_applicable: bool
Defines whether this question is applicable to a lens review.
reason: Option<AnswerReason>
The reason why a question is not applicable to your workload.
Implementations
sourceimpl UpdateAnswerInput
impl UpdateAnswerInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateAnswer, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateAnswer, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<UpdateAnswer
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture UpdateAnswerInput
sourceimpl UpdateAnswerInput
impl UpdateAnswerInput
sourcepub fn workload_id(&self) -> Option<&str>
pub fn workload_id(&self) -> Option<&str>
The ID assigned to the workload. This ID is unique within an Amazon Web Services Region.
sourcepub fn lens_alias(&self) -> Option<&str>
pub fn lens_alias(&self) -> Option<&str>
The alias of the lens, for example, serverless
.
Each lens is identified by its LensSummary$LensAlias
.
sourcepub fn question_id(&self) -> Option<&str>
pub fn question_id(&self) -> Option<&str>
The ID of the question.
sourcepub fn selected_choices(&self) -> Option<&[String]>
pub fn selected_choices(&self) -> Option<&[String]>
List of selected choice IDs in a question answer.
The values entered replace the previously selected choices.
sourcepub fn choice_updates(&self) -> Option<&HashMap<String, ChoiceUpdate>>
pub fn choice_updates(&self) -> Option<&HashMap<String, ChoiceUpdate>>
A list of choices to update on a question in your workload. The String key corresponds to the choice ID to be updated.
sourcepub fn is_applicable(&self) -> bool
pub fn is_applicable(&self) -> bool
Defines whether this question is applicable to a lens review.
sourcepub fn reason(&self) -> Option<&AnswerReason>
pub fn reason(&self) -> Option<&AnswerReason>
The reason why a question is not applicable to your workload.
Trait Implementations
sourceimpl Clone for UpdateAnswerInput
impl Clone for UpdateAnswerInput
sourcefn clone(&self) -> UpdateAnswerInput
fn clone(&self) -> UpdateAnswerInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UpdateAnswerInput
impl Debug for UpdateAnswerInput
sourceimpl PartialEq<UpdateAnswerInput> for UpdateAnswerInput
impl PartialEq<UpdateAnswerInput> for UpdateAnswerInput
sourcefn eq(&self, other: &UpdateAnswerInput) -> bool
fn eq(&self, other: &UpdateAnswerInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &UpdateAnswerInput) -> bool
fn ne(&self, other: &UpdateAnswerInput) -> bool
This method tests for !=
.
impl StructuralPartialEq for UpdateAnswerInput
Auto Trait Implementations
impl RefUnwindSafe for UpdateAnswerInput
impl Send for UpdateAnswerInput
impl Sync for UpdateAnswerInput
impl Unpin for UpdateAnswerInput
impl UnwindSafe for UpdateAnswerInput
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