Interface PhysicalResource.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PhysicalResource.Builder,
,PhysicalResource> SdkBuilder<PhysicalResource.Builder,
,PhysicalResource> SdkPojo
- Enclosing class:
PhysicalResource
-
Method Summary
Modifier and TypeMethodDescriptionadditionalInfo
(Map<String, ? extends Collection<String>> additionalInfo) Additional configuration parameters for an Resilience Hub application.appComponents
(Collection<AppComponent> appComponents) The application components that belong to this resource.appComponents
(Consumer<AppComponent.Builder>... appComponents) The application components that belong to this resource.appComponents
(AppComponent... appComponents) The application components that belong to this resource.Indicates if a resource is included or excluded from the assessment.default PhysicalResource.Builder
logicalResourceId
(Consumer<LogicalResourceId.Builder> logicalResourceId) Logical identifier of the resource.logicalResourceId
(LogicalResourceId logicalResourceId) Logical identifier of the resource.parentResourceName
(String parentResourceName) Name of the parent resource.default PhysicalResource.Builder
physicalResourceId
(Consumer<PhysicalResourceId.Builder> physicalResourceId) Identifier of the physical resource.physicalResourceId
(PhysicalResourceId physicalResourceId) Identifier of the physical resource.resourceName
(String resourceName) The name of the resource.resourceType
(String resourceType) Type of resource.sourceType
(String sourceType) Type of input source.sourceType
(ResourceSourceType sourceType) Type of input source.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
additionalInfo
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>"}]}]"
- Parameters:
additionalInfo
- Additional configuration parameters for an Resilience Hub application. If you want to implementadditionalInfo
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>"}]}]"
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
appComponents
The application components that belong to this resource.
- Parameters:
appComponents
- The application components that belong to this resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
appComponents
The application components that belong to this resource.
- Parameters:
appComponents
- The application components that belong to this resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
appComponents
The application components that belong to this resource.
This is a convenience method that creates an instance of theAppComponent.Builder
avoiding the need to create one manually viaAppComponent.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toappComponents(List<AppComponent>)
.- Parameters:
appComponents
- a consumer that will call methods onAppComponent.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
excluded
Indicates if a resource is included or excluded from the assessment.
- Parameters:
excluded
- Indicates if a resource is included or excluded from the assessment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logicalResourceId
Logical identifier of the resource.
- Parameters:
logicalResourceId
- Logical identifier of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logicalResourceId
default PhysicalResource.Builder logicalResourceId(Consumer<LogicalResourceId.Builder> logicalResourceId) Logical identifier of the resource.
This is a convenience method that creates an instance of theLogicalResourceId.Builder
avoiding the need to create one manually viaLogicalResourceId.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tologicalResourceId(LogicalResourceId)
.- Parameters:
logicalResourceId
- a consumer that will call methods onLogicalResourceId.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
parentResourceName
Name of the parent resource.
- Parameters:
parentResourceName
- Name of the parent resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
physicalResourceId
Identifier of the physical resource.
- Parameters:
physicalResourceId
- Identifier of the physical resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
physicalResourceId
default PhysicalResource.Builder physicalResourceId(Consumer<PhysicalResourceId.Builder> physicalResourceId) Identifier of the physical resource.
This is a convenience method that creates an instance of thePhysicalResourceId.Builder
avoiding the need to create one manually viaPhysicalResourceId.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tophysicalResourceId(PhysicalResourceId)
.- Parameters:
physicalResourceId
- a consumer that will call methods onPhysicalResourceId.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceName
The name of the resource.
- Parameters:
resourceName
- The name of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceType
Type of resource.
- Parameters:
resourceType
- Type of resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceType
Type of input source.
- Parameters:
sourceType
- Type of input source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sourceType
Type of input source.
- Parameters:
sourceType
- Type of input source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-