Interface PhysicalResource.Builder

    • 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 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 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>"}]}]"

        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.
      • 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.
      • 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.
      • 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.