Struct aws_sdk_resiliencehub::types::builders::AppComponentBuilder
source · #[non_exhaustive]pub struct AppComponentBuilder { /* private fields */ }Expand description
A builder for AppComponent.
Implementations§
source§impl AppComponentBuilder
impl AppComponentBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
Name of the Application Component.
This field is required.sourcepub fn type(self, input: impl Into<String>) -> Self
pub fn type(self, input: impl Into<String>) -> Self
The type of Application Component.
This field is required.sourcepub fn additional_info(self, k: impl Into<String>, v: Vec<String>) -> Self
pub fn additional_info(self, k: impl Into<String>, v: Vec<String>) -> Self
Adds a key-value pair to additional_info.
To override the contents of this collection use set_additional_info.
Additional configuration parameters for an Resilience Hub application. If you want to implement additionalInfo through the Resilience Hub console rather than using an API call, see Configure the application configuration parameters.
Currently, this parameter accepts a key-value mapping (in a string format) of only one failover region and one associated account.
Key: "failover-regions"
Value: "[{"region":"<REGION>", "accounts":[{"id":"<ACCOUNT_ID>"}]}]"
sourcepub fn set_additional_info(
self,
input: Option<HashMap<String, Vec<String>>>
) -> Self
pub fn set_additional_info( self, input: Option<HashMap<String, Vec<String>>> ) -> Self
Additional configuration parameters for an Resilience Hub application. If you want to implement additionalInfo through the Resilience Hub console rather than using an API call, see Configure the application configuration parameters.
Currently, this parameter accepts a key-value mapping (in a string format) of only one failover region and one associated account.
Key: "failover-regions"
Value: "[{"region":"<REGION>", "accounts":[{"id":"<ACCOUNT_ID>"}]}]"
sourcepub fn get_additional_info(&self) -> &Option<HashMap<String, Vec<String>>>
pub fn get_additional_info(&self) -> &Option<HashMap<String, Vec<String>>>
Additional configuration parameters for an Resilience Hub application. If you want to implement additionalInfo through the Resilience Hub console rather than using an API call, see Configure the application configuration parameters.
Currently, this parameter accepts a key-value mapping (in a string format) of only one failover region and one associated account.
Key: "failover-regions"
Value: "[{"region":"<REGION>", "accounts":[{"id":"<ACCOUNT_ID>"}]}]"
sourcepub fn build(self) -> Result<AppComponent, BuildError>
pub fn build(self) -> Result<AppComponent, BuildError>
Consumes the builder and constructs a AppComponent.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AppComponentBuilder
impl Clone for AppComponentBuilder
source§fn clone(&self) -> AppComponentBuilder
fn clone(&self) -> AppComponentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AppComponentBuilder
impl Debug for AppComponentBuilder
source§impl Default for AppComponentBuilder
impl Default for AppComponentBuilder
source§fn default() -> AppComponentBuilder
fn default() -> AppComponentBuilder
source§impl PartialEq for AppComponentBuilder
impl PartialEq for AppComponentBuilder
source§fn eq(&self, other: &AppComponentBuilder) -> bool
fn eq(&self, other: &AppComponentBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AppComponentBuilder
Auto Trait Implementations§
impl Freeze for AppComponentBuilder
impl RefUnwindSafe for AppComponentBuilder
impl Send for AppComponentBuilder
impl Sync for AppComponentBuilder
impl Unpin for AppComponentBuilder
impl UnwindSafe for AppComponentBuilder
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> 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 more