Struct aws_sdk_nimble::types::builders::ValidationResultBuilder
source · #[non_exhaustive]pub struct ValidationResultBuilder { /* private fields */ }Expand description
A builder for ValidationResult.
Implementations§
source§impl ValidationResultBuilder
impl ValidationResultBuilder
sourcepub fn type(self, input: LaunchProfileValidationType) -> Self
pub fn type(self, input: LaunchProfileValidationType) -> Self
The type of the validation result.
This field is required.sourcepub fn set_type(self, input: Option<LaunchProfileValidationType>) -> Self
pub fn set_type(self, input: Option<LaunchProfileValidationType>) -> Self
The type of the validation result.
sourcepub fn get_type(&self) -> &Option<LaunchProfileValidationType>
pub fn get_type(&self) -> &Option<LaunchProfileValidationType>
The type of the validation result.
sourcepub fn state(self, input: LaunchProfileValidationState) -> Self
pub fn state(self, input: LaunchProfileValidationState) -> Self
The current state.
This field is required.sourcepub fn set_state(self, input: Option<LaunchProfileValidationState>) -> Self
pub fn set_state(self, input: Option<LaunchProfileValidationState>) -> Self
The current state.
sourcepub fn get_state(&self) -> &Option<LaunchProfileValidationState>
pub fn get_state(&self) -> &Option<LaunchProfileValidationState>
The current state.
sourcepub fn status_code(self, input: LaunchProfileValidationStatusCode) -> Self
pub fn status_code(self, input: LaunchProfileValidationStatusCode) -> Self
The status code. This will contain the failure reason if the state is VALIDATION_FAILED.
sourcepub fn set_status_code(
self,
input: Option<LaunchProfileValidationStatusCode>
) -> Self
pub fn set_status_code( self, input: Option<LaunchProfileValidationStatusCode> ) -> Self
The status code. This will contain the failure reason if the state is VALIDATION_FAILED.
sourcepub fn get_status_code(&self) -> &Option<LaunchProfileValidationStatusCode>
pub fn get_status_code(&self) -> &Option<LaunchProfileValidationStatusCode>
The status code. This will contain the failure reason if the state is VALIDATION_FAILED.
sourcepub fn status_message(self, input: impl Into<String>) -> Self
pub fn status_message(self, input: impl Into<String>) -> Self
The status message for the validation result.
This field is required.sourcepub fn set_status_message(self, input: Option<String>) -> Self
pub fn set_status_message(self, input: Option<String>) -> Self
The status message for the validation result.
sourcepub fn get_status_message(&self) -> &Option<String>
pub fn get_status_message(&self) -> &Option<String>
The status message for the validation result.
sourcepub fn build(self) -> Result<ValidationResult, BuildError>
pub fn build(self) -> Result<ValidationResult, BuildError>
Consumes the builder and constructs a ValidationResult.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ValidationResultBuilder
impl Clone for ValidationResultBuilder
source§fn clone(&self) -> ValidationResultBuilder
fn clone(&self) -> ValidationResultBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ValidationResultBuilder
impl Debug for ValidationResultBuilder
source§impl Default for ValidationResultBuilder
impl Default for ValidationResultBuilder
source§fn default() -> ValidationResultBuilder
fn default() -> ValidationResultBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ValidationResultBuilder
impl PartialEq for ValidationResultBuilder
source§fn eq(&self, other: &ValidationResultBuilder) -> bool
fn eq(&self, other: &ValidationResultBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ValidationResultBuilder
Auto Trait Implementations§
impl RefUnwindSafe for ValidationResultBuilder
impl Send for ValidationResultBuilder
impl Sync for ValidationResultBuilder
impl Unpin for ValidationResultBuilder
impl UnwindSafe for ValidationResultBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.