#[non_exhaustive]pub struct PhysicalResourceBuilder { /* private fields */ }Expand description
A builder for PhysicalResource.
Implementations§
source§impl PhysicalResourceBuilder
impl PhysicalResourceBuilder
sourcepub fn resource_name(self, input: impl Into<String>) -> Self
pub fn resource_name(self, input: impl Into<String>) -> Self
The name of the resource.
sourcepub fn set_resource_name(self, input: Option<String>) -> Self
pub fn set_resource_name(self, input: Option<String>) -> Self
The name of the resource.
sourcepub fn get_resource_name(&self) -> &Option<String>
pub fn get_resource_name(&self) -> &Option<String>
The name of the resource.
sourcepub fn logical_resource_id(self, input: LogicalResourceId) -> Self
pub fn logical_resource_id(self, input: LogicalResourceId) -> Self
Logical identifier of the resource.
This field is required.sourcepub fn set_logical_resource_id(self, input: Option<LogicalResourceId>) -> Self
pub fn set_logical_resource_id(self, input: Option<LogicalResourceId>) -> Self
Logical identifier of the resource.
sourcepub fn get_logical_resource_id(&self) -> &Option<LogicalResourceId>
pub fn get_logical_resource_id(&self) -> &Option<LogicalResourceId>
Logical identifier of the resource.
sourcepub fn physical_resource_id(self, input: PhysicalResourceId) -> Self
pub fn physical_resource_id(self, input: PhysicalResourceId) -> Self
Identifier of the physical resource.
This field is required.sourcepub fn set_physical_resource_id(self, input: Option<PhysicalResourceId>) -> Self
pub fn set_physical_resource_id(self, input: Option<PhysicalResourceId>) -> Self
Identifier of the physical resource.
sourcepub fn get_physical_resource_id(&self) -> &Option<PhysicalResourceId>
pub fn get_physical_resource_id(&self) -> &Option<PhysicalResourceId>
Identifier of the physical resource.
sourcepub fn resource_type(self, input: impl Into<String>) -> Self
pub fn resource_type(self, input: impl Into<String>) -> Self
Type of resource.
This field is required.sourcepub fn set_resource_type(self, input: Option<String>) -> Self
pub fn set_resource_type(self, input: Option<String>) -> Self
Type of resource.
sourcepub fn get_resource_type(&self) -> &Option<String>
pub fn get_resource_type(&self) -> &Option<String>
Type of resource.
sourcepub fn app_components(self, input: AppComponent) -> Self
pub fn app_components(self, input: AppComponent) -> Self
Appends an item to app_components.
To override the contents of this collection use set_app_components.
The application components that belong to this resource.
sourcepub fn set_app_components(self, input: Option<Vec<AppComponent>>) -> Self
pub fn set_app_components(self, input: Option<Vec<AppComponent>>) -> Self
The application components that belong to this resource.
sourcepub fn get_app_components(&self) -> &Option<Vec<AppComponent>>
pub fn get_app_components(&self) -> &Option<Vec<AppComponent>>
The application components that belong to this resource.
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 excluded(self, input: bool) -> Self
pub fn excluded(self, input: bool) -> Self
Indicates if a resource is included or excluded from the assessment.
sourcepub fn set_excluded(self, input: Option<bool>) -> Self
pub fn set_excluded(self, input: Option<bool>) -> Self
Indicates if a resource is included or excluded from the assessment.
sourcepub fn get_excluded(&self) -> &Option<bool>
pub fn get_excluded(&self) -> &Option<bool>
Indicates if a resource is included or excluded from the assessment.
sourcepub fn source_type(self, input: ResourceSourceType) -> Self
pub fn source_type(self, input: ResourceSourceType) -> Self
Type of input source.
sourcepub fn set_source_type(self, input: Option<ResourceSourceType>) -> Self
pub fn set_source_type(self, input: Option<ResourceSourceType>) -> Self
Type of input source.
sourcepub fn get_source_type(&self) -> &Option<ResourceSourceType>
pub fn get_source_type(&self) -> &Option<ResourceSourceType>
Type of input source.
sourcepub fn parent_resource_name(self, input: impl Into<String>) -> Self
pub fn parent_resource_name(self, input: impl Into<String>) -> Self
Name of the parent resource.
sourcepub fn set_parent_resource_name(self, input: Option<String>) -> Self
pub fn set_parent_resource_name(self, input: Option<String>) -> Self
Name of the parent resource.
sourcepub fn get_parent_resource_name(&self) -> &Option<String>
pub fn get_parent_resource_name(&self) -> &Option<String>
Name of the parent resource.
sourcepub fn build(self) -> Result<PhysicalResource, BuildError>
pub fn build(self) -> Result<PhysicalResource, BuildError>
Consumes the builder and constructs a PhysicalResource.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for PhysicalResourceBuilder
impl Clone for PhysicalResourceBuilder
source§fn clone(&self) -> PhysicalResourceBuilder
fn clone(&self) -> PhysicalResourceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PhysicalResourceBuilder
impl Debug for PhysicalResourceBuilder
source§impl Default for PhysicalResourceBuilder
impl Default for PhysicalResourceBuilder
source§fn default() -> PhysicalResourceBuilder
fn default() -> PhysicalResourceBuilder
source§impl PartialEq for PhysicalResourceBuilder
impl PartialEq for PhysicalResourceBuilder
source§fn eq(&self, other: &PhysicalResourceBuilder) -> bool
fn eq(&self, other: &PhysicalResourceBuilder) -> bool
self and other values to be equal, and is used
by ==.