Interface App.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<App.Builder,
,App> SdkBuilder<App.Builder,
,App> SdkPojo
- Enclosing class:
App
-
Method Summary
Modifier and TypeMethodDescriptionAmazon Resource Name (ARN) of the Resilience Hub application.assessmentSchedule
(String assessmentSchedule) Assessment execution schedule with 'Daily' or 'Disabled' values.assessmentSchedule
(AppAssessmentScheduleType assessmentSchedule) Assessment execution schedule with 'Daily' or 'Disabled' values.complianceStatus
(String complianceStatus) Current status of compliance for the resiliency policy.complianceStatus
(AppComplianceStatusType complianceStatus) Current status of compliance for the resiliency policy.creationTime
(Instant creationTime) Date and time when the app was created.description
(String description) Optional description for an application.driftStatus
(String driftStatus) Indicates if compliance drifts (deviations) were detected while running an assessment for your application.driftStatus
(AppDriftStatusType driftStatus) Indicates if compliance drifts (deviations) were detected while running an assessment for your application.eventSubscriptions
(Collection<EventSubscription> eventSubscriptions) The list of events you would like to subscribe and get notification for.eventSubscriptions
(Consumer<EventSubscription.Builder>... eventSubscriptions) The list of events you would like to subscribe and get notification for.eventSubscriptions
(EventSubscription... eventSubscriptions) The list of events you would like to subscribe and get notification for.lastAppComplianceEvaluationTime
(Instant lastAppComplianceEvaluationTime) Date and time the most recent compliance evaluation.lastDriftEvaluationTime
(Instant lastDriftEvaluationTime) Indicates the last time that a drift was evaluated.lastResiliencyScoreEvaluationTime
(Instant lastResiliencyScoreEvaluationTime) Date and time the most recent resiliency score evaluation.Name for the application.default App.Builder
permissionModel
(Consumer<PermissionModel.Builder> permissionModel) Defines the roles and credentials that Resilience Hub would use while creating the application, importing its resources, and running an assessment.permissionModel
(PermissionModel permissionModel) Defines the roles and credentials that Resilience Hub would use while creating the application, importing its resources, and running an assessment.Amazon Resource Name (ARN) of the resiliency policy.resiliencyScore
(Double resiliencyScore) Current resiliency score for the application.Recovery Point Objective (RPO) in seconds.Recovery Time Objective (RTO) in seconds.Status of the application.status
(AppStatusType status) Status of the application.Tags assigned to the resource.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 Details
-
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
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:
-
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:
-
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:
-
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:
-
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
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
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:
-
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:
-
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
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
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 theEventSubscription.Builder
avoiding the need to create one manually viaEventSubscription.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toeventSubscriptions(List<EventSubscription>)
.- Parameters:
eventSubscriptions
- a consumer that will call methods onEventSubscription.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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
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
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.
-
permissionModel
Defines the roles and credentials that Resilience Hub would use while creating the application, importing its resources, and running an assessment.
This is a convenience method that creates an instance of thePermissionModel.Builder
avoiding the need to create one manually viaPermissionModel.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topermissionModel(PermissionModel)
.- Parameters:
permissionModel
- a consumer that will call methods onPermissionModel.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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
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
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:
-
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:
-
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.
-