#[non_exhaustive]pub struct GetHookResultOutputBuilder { /* private fields */ }Expand description
A builder for GetHookResultOutput.
Implementations§
Source§impl GetHookResultOutputBuilder
impl GetHookResultOutputBuilder
Sourcepub fn hook_result_id(self, input: impl Into<String>) -> Self
pub fn hook_result_id(self, input: impl Into<String>) -> Self
The unique identifier of the Hook result.
Sourcepub fn set_hook_result_id(self, input: Option<String>) -> Self
pub fn set_hook_result_id(self, input: Option<String>) -> Self
The unique identifier of the Hook result.
Sourcepub fn get_hook_result_id(&self) -> &Option<String>
pub fn get_hook_result_id(&self) -> &Option<String>
The unique identifier of the Hook result.
Sourcepub fn invocation_point(self, input: HookInvocationPoint) -> Self
pub fn invocation_point(self, input: HookInvocationPoint) -> Self
The specific point in the provisioning process where the Hook is invoked.
Sourcepub fn set_invocation_point(self, input: Option<HookInvocationPoint>) -> Self
pub fn set_invocation_point(self, input: Option<HookInvocationPoint>) -> Self
The specific point in the provisioning process where the Hook is invoked.
Sourcepub fn get_invocation_point(&self) -> &Option<HookInvocationPoint>
pub fn get_invocation_point(&self) -> &Option<HookInvocationPoint>
The specific point in the provisioning process where the Hook is invoked.
Sourcepub fn failure_mode(self, input: HookFailureMode) -> Self
pub fn failure_mode(self, input: HookFailureMode) -> Self
The failure mode of the invocation.
Sourcepub fn set_failure_mode(self, input: Option<HookFailureMode>) -> Self
pub fn set_failure_mode(self, input: Option<HookFailureMode>) -> Self
The failure mode of the invocation.
Sourcepub fn get_failure_mode(&self) -> &Option<HookFailureMode>
pub fn get_failure_mode(&self) -> &Option<HookFailureMode>
The failure mode of the invocation.
Sourcepub fn type_name(self, input: impl Into<String>) -> Self
pub fn type_name(self, input: impl Into<String>) -> Self
The name of the Hook that was invoked.
Sourcepub fn set_type_name(self, input: Option<String>) -> Self
pub fn set_type_name(self, input: Option<String>) -> Self
The name of the Hook that was invoked.
Sourcepub fn get_type_name(&self) -> &Option<String>
pub fn get_type_name(&self) -> &Option<String>
The name of the Hook that was invoked.
Sourcepub fn original_type_name(self, input: impl Into<String>) -> Self
pub fn original_type_name(self, input: impl Into<String>) -> Self
The original public type name of the Hook when an alias is used.
For example, if you activate AWS::Hooks::GuardHook with alias MyCompany::Custom::GuardHook, then TypeName will be MyCompany::Custom::GuardHook and OriginalTypeName will be AWS::Hooks::GuardHook.
Sourcepub fn set_original_type_name(self, input: Option<String>) -> Self
pub fn set_original_type_name(self, input: Option<String>) -> Self
The original public type name of the Hook when an alias is used.
For example, if you activate AWS::Hooks::GuardHook with alias MyCompany::Custom::GuardHook, then TypeName will be MyCompany::Custom::GuardHook and OriginalTypeName will be AWS::Hooks::GuardHook.
Sourcepub fn get_original_type_name(&self) -> &Option<String>
pub fn get_original_type_name(&self) -> &Option<String>
The original public type name of the Hook when an alias is used.
For example, if you activate AWS::Hooks::GuardHook with alias MyCompany::Custom::GuardHook, then TypeName will be MyCompany::Custom::GuardHook and OriginalTypeName will be AWS::Hooks::GuardHook.
Sourcepub fn type_version_id(self, input: impl Into<String>) -> Self
pub fn type_version_id(self, input: impl Into<String>) -> Self
The version identifier of the Hook that was invoked.
Sourcepub fn set_type_version_id(self, input: Option<String>) -> Self
pub fn set_type_version_id(self, input: Option<String>) -> Self
The version identifier of the Hook that was invoked.
Sourcepub fn get_type_version_id(&self) -> &Option<String>
pub fn get_type_version_id(&self) -> &Option<String>
The version identifier of the Hook that was invoked.
Sourcepub fn type_configuration_version_id(self, input: impl Into<String>) -> Self
pub fn type_configuration_version_id(self, input: impl Into<String>) -> Self
The version identifier of the Hook configuration data that was used during invocation.
Sourcepub fn set_type_configuration_version_id(self, input: Option<String>) -> Self
pub fn set_type_configuration_version_id(self, input: Option<String>) -> Self
The version identifier of the Hook configuration data that was used during invocation.
Sourcepub fn get_type_configuration_version_id(&self) -> &Option<String>
pub fn get_type_configuration_version_id(&self) -> &Option<String>
The version identifier of the Hook configuration data that was used during invocation.
Sourcepub fn type_arn(self, input: impl Into<String>) -> Self
pub fn type_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the Hook.
Sourcepub fn set_type_arn(self, input: Option<String>) -> Self
pub fn set_type_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the Hook.
Sourcepub fn get_type_arn(&self) -> &Option<String>
pub fn get_type_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the Hook.
Sourcepub fn status(self, input: HookStatus) -> Self
pub fn status(self, input: HookStatus) -> Self
The status of the Hook invocation. The following statuses are possible:
-
HOOK_IN_PROGRESS: The Hook is currently running. -
HOOK_COMPLETE_SUCCEEDED: The Hook completed successfully. -
HOOK_COMPLETE_FAILED: The Hook completed but failed validation. -
HOOK_FAILED: The Hook encountered an error during execution.
Sourcepub fn set_status(self, input: Option<HookStatus>) -> Self
pub fn set_status(self, input: Option<HookStatus>) -> Self
The status of the Hook invocation. The following statuses are possible:
-
HOOK_IN_PROGRESS: The Hook is currently running. -
HOOK_COMPLETE_SUCCEEDED: The Hook completed successfully. -
HOOK_COMPLETE_FAILED: The Hook completed but failed validation. -
HOOK_FAILED: The Hook encountered an error during execution.
Sourcepub fn get_status(&self) -> &Option<HookStatus>
pub fn get_status(&self) -> &Option<HookStatus>
The status of the Hook invocation. The following statuses are possible:
-
HOOK_IN_PROGRESS: The Hook is currently running. -
HOOK_COMPLETE_SUCCEEDED: The Hook completed successfully. -
HOOK_COMPLETE_FAILED: The Hook completed but failed validation. -
HOOK_FAILED: The Hook encountered an error during execution.
Sourcepub fn hook_status_reason(self, input: impl Into<String>) -> Self
pub fn hook_status_reason(self, input: impl Into<String>) -> Self
A message that provides additional details about the Hook invocation status.
Sourcepub fn set_hook_status_reason(self, input: Option<String>) -> Self
pub fn set_hook_status_reason(self, input: Option<String>) -> Self
A message that provides additional details about the Hook invocation status.
Sourcepub fn get_hook_status_reason(&self) -> &Option<String>
pub fn get_hook_status_reason(&self) -> &Option<String>
A message that provides additional details about the Hook invocation status.
Sourcepub fn invoked_at(self, input: DateTime) -> Self
pub fn invoked_at(self, input: DateTime) -> Self
The timestamp when the Hook was invoked.
Sourcepub fn set_invoked_at(self, input: Option<DateTime>) -> Self
pub fn set_invoked_at(self, input: Option<DateTime>) -> Self
The timestamp when the Hook was invoked.
Sourcepub fn get_invoked_at(&self) -> &Option<DateTime>
pub fn get_invoked_at(&self) -> &Option<DateTime>
The timestamp when the Hook was invoked.
Sourcepub fn target(self, input: HookTarget) -> Self
pub fn target(self, input: HookTarget) -> Self
Information about the target of the Hook invocation.
Sourcepub fn set_target(self, input: Option<HookTarget>) -> Self
pub fn set_target(self, input: Option<HookTarget>) -> Self
Information about the target of the Hook invocation.
Sourcepub fn get_target(&self) -> &Option<HookTarget>
pub fn get_target(&self) -> &Option<HookTarget>
Information about the target of the Hook invocation.
Sourcepub fn annotations(self, input: Annotation) -> Self
pub fn annotations(self, input: Annotation) -> Self
Appends an item to annotations.
To override the contents of this collection use set_annotations.
A list of objects with additional information and guidance that can help you resolve a failed Hook invocation.
Sourcepub fn set_annotations(self, input: Option<Vec<Annotation>>) -> Self
pub fn set_annotations(self, input: Option<Vec<Annotation>>) -> Self
A list of objects with additional information and guidance that can help you resolve a failed Hook invocation.
Sourcepub fn get_annotations(&self) -> &Option<Vec<Annotation>>
pub fn get_annotations(&self) -> &Option<Vec<Annotation>>
A list of objects with additional information and guidance that can help you resolve a failed Hook invocation.
Sourcepub fn build(self) -> GetHookResultOutput
pub fn build(self) -> GetHookResultOutput
Consumes the builder and constructs a GetHookResultOutput.
Trait Implementations§
Source§impl Clone for GetHookResultOutputBuilder
impl Clone for GetHookResultOutputBuilder
Source§fn clone(&self) -> GetHookResultOutputBuilder
fn clone(&self) -> GetHookResultOutputBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GetHookResultOutputBuilder
impl Debug for GetHookResultOutputBuilder
Source§impl Default for GetHookResultOutputBuilder
impl Default for GetHookResultOutputBuilder
Source§fn default() -> GetHookResultOutputBuilder
fn default() -> GetHookResultOutputBuilder
impl StructuralPartialEq for GetHookResultOutputBuilder
Auto Trait Implementations§
impl Freeze for GetHookResultOutputBuilder
impl RefUnwindSafe for GetHookResultOutputBuilder
impl Send for GetHookResultOutputBuilder
impl Sync for GetHookResultOutputBuilder
impl Unpin for GetHookResultOutputBuilder
impl UnwindSafe for GetHookResultOutputBuilder
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§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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);