Interface App.Builder

    • Method Detail

      • appArn

        App.Builder appArn​(String appArn)

        Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn: partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.

        Parameters:
        appArn - Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn: partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • assessmentSchedule

        App.Builder assessmentSchedule​(String assessmentSchedule)

        Assessment execution schedule with 'Daily' or 'Disabled' values.

        Parameters:
        assessmentSchedule - Assessment execution schedule with 'Daily' or 'Disabled' values.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AppAssessmentScheduleType, AppAssessmentScheduleType
      • complianceStatus

        App.Builder complianceStatus​(String complianceStatus)

        Current status of compliance for the resiliency policy.

        Parameters:
        complianceStatus - Current status of compliance for the resiliency policy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AppComplianceStatusType, AppComplianceStatusType
      • creationTime

        App.Builder creationTime​(Instant creationTime)

        Date and time when the app was created.

        Parameters:
        creationTime - Date and time when the app was created.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • description

        App.Builder description​(String description)

        Optional description for an application.

        Parameters:
        description - Optional description for an application.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • driftStatus

        App.Builder driftStatus​(String driftStatus)

        Indicates if compliance drifts (deviations) were detected while running an assessment for your application.

        Parameters:
        driftStatus - Indicates if compliance drifts (deviations) were detected while running an assessment for your application.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AppDriftStatusType, AppDriftStatusType
      • driftStatus

        App.Builder driftStatus​(AppDriftStatusType driftStatus)

        Indicates if compliance drifts (deviations) were detected while running an assessment for your application.

        Parameters:
        driftStatus - Indicates if compliance drifts (deviations) were detected while running an assessment for your application.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AppDriftStatusType, AppDriftStatusType
      • eventSubscriptions

        App.Builder eventSubscriptions​(Collection<EventSubscription> eventSubscriptions)

        The list of events you would like to subscribe and get notification for. Currently, Resilience Hub supports notifications only for Drift detected and Scheduled assessment failure events.

        Parameters:
        eventSubscriptions - The list of events you would like to subscribe and get notification for. Currently, Resilience Hub supports notifications only for Drift detected and Scheduled assessment failure events.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • eventSubscriptions

        App.Builder eventSubscriptions​(EventSubscription... eventSubscriptions)

        The list of events you would like to subscribe and get notification for. Currently, Resilience Hub supports notifications only for Drift detected and Scheduled assessment failure events.

        Parameters:
        eventSubscriptions - The list of events you would like to subscribe and get notification for. Currently, Resilience Hub supports notifications only for Drift detected and Scheduled assessment failure events.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • eventSubscriptions

        App.Builder eventSubscriptions​(Consumer<EventSubscription.Builder>... eventSubscriptions)

        The list of events you would like to subscribe and get notification for. Currently, Resilience Hub supports notifications only for Drift detected and Scheduled assessment failure events.

        This is a convenience method that creates an instance of the EventSubscription.Builder avoiding the need to create one manually via EventSubscription.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #eventSubscriptions(List).

        Parameters:
        eventSubscriptions - a consumer that will call methods on EventSubscription.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #eventSubscriptions(java.util.Collection)
      • lastAppComplianceEvaluationTime

        App.Builder lastAppComplianceEvaluationTime​(Instant lastAppComplianceEvaluationTime)

        Date and time the most recent compliance evaluation.

        Parameters:
        lastAppComplianceEvaluationTime - Date and time the most recent compliance evaluation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • lastDriftEvaluationTime

        App.Builder lastDriftEvaluationTime​(Instant lastDriftEvaluationTime)

        Indicates the last time that a drift was evaluated.

        Parameters:
        lastDriftEvaluationTime - Indicates the last time that a drift was evaluated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • lastResiliencyScoreEvaluationTime

        App.Builder lastResiliencyScoreEvaluationTime​(Instant lastResiliencyScoreEvaluationTime)

        Date and time the most recent resiliency score evaluation.

        Parameters:
        lastResiliencyScoreEvaluationTime - Date and time the most recent resiliency score evaluation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • name

        App.Builder name​(String name)

        Name for the application.

        Parameters:
        name - Name for the application.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • permissionModel

        App.Builder permissionModel​(PermissionModel permissionModel)

        Defines the roles and credentials that Resilience Hub would use while creating the application, importing its resources, and running an assessment.

        Parameters:
        permissionModel - Defines the roles and credentials that Resilience Hub would use while creating the application, importing its resources, and running an assessment.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • policyArn

        App.Builder policyArn​(String policyArn)

        Amazon Resource Name (ARN) of the resiliency policy. The format for this ARN is: arn:partition :resiliencehub:region:account:resiliency-policy/policy-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.

        Parameters:
        policyArn - Amazon Resource Name (ARN) of the resiliency policy. The format for this ARN is: arn: partition:resiliencehub:region:account:resiliency-policy/ policy-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • resiliencyScore

        App.Builder resiliencyScore​(Double resiliencyScore)

        Current resiliency score for the application.

        Parameters:
        resiliencyScore - Current resiliency score for the application.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • rpoInSecs

        App.Builder rpoInSecs​(Integer rpoInSecs)

        Recovery Point Objective (RPO) in seconds.

        Parameters:
        rpoInSecs - Recovery Point Objective (RPO) in seconds.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • rtoInSecs

        App.Builder rtoInSecs​(Integer rtoInSecs)

        Recovery Time Objective (RTO) in seconds.

        Parameters:
        rtoInSecs - Recovery Time Objective (RTO) in seconds.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • status

        App.Builder status​(String status)

        Status of the application.

        Parameters:
        status - Status of the application.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AppStatusType, AppStatusType
      • status

        App.Builder status​(AppStatusType status)

        Status of the application.

        Parameters:
        status - Status of the application.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AppStatusType, AppStatusType
      • tags

        App.Builder tags​(Map<String,​String> tags)

        Tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key/value pair.

        Parameters:
        tags - Tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key/value pair.
        Returns:
        Returns a reference to this object so that method calls can be chained together.