Interface PhysicalResource.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<PhysicalResource.Builder,PhysicalResource>,SdkBuilder<PhysicalResource.Builder,PhysicalResource>,SdkPojo
- Enclosing class:
- PhysicalResource
public static interface PhysicalResource.Builder extends SdkPojo, CopyableBuilder<PhysicalResource.Builder,PhysicalResource>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PhysicalResource.BuilderadditionalInfo(Map<String,? extends Collection<String>> additionalInfo)Additional configuration parameters for an Resilience Hub application.PhysicalResource.BuilderappComponents(Collection<AppComponent> appComponents)The application components that belong to this resource.PhysicalResource.BuilderappComponents(Consumer<AppComponent.Builder>... appComponents)The application components that belong to this resource.PhysicalResource.BuilderappComponents(AppComponent... appComponents)The application components that belong to this resource.PhysicalResource.Builderexcluded(Boolean excluded)Indicates if a resource is included or excluded from the assessment.default PhysicalResource.BuilderlogicalResourceId(Consumer<LogicalResourceId.Builder> logicalResourceId)Logical identifier of the resource.PhysicalResource.BuilderlogicalResourceId(LogicalResourceId logicalResourceId)Logical identifier of the resource.PhysicalResource.BuilderparentResourceName(String parentResourceName)Name of the parent resource.default PhysicalResource.BuilderphysicalResourceId(Consumer<PhysicalResourceId.Builder> physicalResourceId)Identifier of the physical resource.PhysicalResource.BuilderphysicalResourceId(PhysicalResourceId physicalResourceId)Identifier of the physical resource.PhysicalResource.BuilderresourceName(String resourceName)The name of the resource.PhysicalResource.BuilderresourceType(String resourceType)The type of resource.PhysicalResource.BuildersourceType(String sourceType)Type of input source.PhysicalResource.BuildersourceType(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, sdkFields
-
-
-
-
Method Detail
-
additionalInfo
PhysicalResource.Builder additionalInfo(Map<String,? extends Collection<String>> additionalInfo)
Additional configuration parameters for an Resilience Hub application. If you want to implement
additionalInfothrough 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 implementadditionalInfothrough 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
PhysicalResource.Builder appComponents(Collection<AppComponent> 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
PhysicalResource.Builder appComponents(AppComponent... 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
PhysicalResource.Builder appComponents(Consumer<AppComponent.Builder>... appComponents)
The application components that belong to this resource.
This is a convenience method that creates an instance of theAppComponent.Builderavoiding the need to create one manually viaAppComponent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#appComponents(List.) - 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:
#appComponents(java.util.Collection)
-
excluded
PhysicalResource.Builder excluded(Boolean 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
PhysicalResource.Builder logicalResourceId(LogicalResourceId 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.Builderavoiding the need to create one manually viaLogicalResourceId.builder().When the
Consumercompletes,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:
logicalResourceId(LogicalResourceId)
-
parentResourceName
PhysicalResource.Builder parentResourceName(String 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
PhysicalResource.Builder physicalResourceId(PhysicalResourceId 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.Builderavoiding the need to create one manually viaPhysicalResourceId.builder().When the
Consumercompletes,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:
physicalResourceId(PhysicalResourceId)
-
resourceName
PhysicalResource.Builder resourceName(String 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
PhysicalResource.Builder resourceType(String resourceType)
The type of resource.
- Parameters:
resourceType- The type of resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceType
PhysicalResource.Builder sourceType(String 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:
ResourceSourceType,ResourceSourceType
-
sourceType
PhysicalResource.Builder sourceType(ResourceSourceType 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:
ResourceSourceType,ResourceSourceType
-
-