Interface App.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<App.Builder,App>,SdkBuilder<App.Builder,App>,SdkPojo
- Enclosing class:
- App
public static interface App.Builder extends SdkPojo, CopyableBuilder<App.Builder,App>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description App.BuilderappArn(String appArn)Amazon Resource Name (ARN) of the Resilience Hub application.App.BuilderassessmentSchedule(String assessmentSchedule)Assessment execution schedule with 'Daily' or 'Disabled' values.App.BuilderassessmentSchedule(AppAssessmentScheduleType assessmentSchedule)Assessment execution schedule with 'Daily' or 'Disabled' values.App.BuildercomplianceStatus(String complianceStatus)Current status of compliance for the resiliency policy.App.BuildercomplianceStatus(AppComplianceStatusType complianceStatus)Current status of compliance for the resiliency policy.App.BuildercreationTime(Instant creationTime)Date and time when the app was created.App.Builderdescription(String description)Optional description for an application.App.BuilderdriftStatus(String driftStatus)Indicates if compliance drifts (deviations) were detected while running an assessment for your application.App.BuilderdriftStatus(AppDriftStatusType driftStatus)Indicates if compliance drifts (deviations) were detected while running an assessment for your application.App.BuildereventSubscriptions(Collection<EventSubscription> eventSubscriptions)The list of events you would like to subscribe and get notification for.App.BuildereventSubscriptions(Consumer<EventSubscription.Builder>... eventSubscriptions)The list of events you would like to subscribe and get notification for.App.BuildereventSubscriptions(EventSubscription... eventSubscriptions)The list of events you would like to subscribe and get notification for.App.BuilderlastAppComplianceEvaluationTime(Instant lastAppComplianceEvaluationTime)Date and time the most recent compliance evaluation.App.BuilderlastDriftEvaluationTime(Instant lastDriftEvaluationTime)Indicates the last time that a drift was evaluated.App.BuilderlastResiliencyScoreEvaluationTime(Instant lastResiliencyScoreEvaluationTime)Date and time the most recent resiliency score evaluation.App.Buildername(String name)Name for the application.default App.BuilderpermissionModel(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.App.BuilderpermissionModel(PermissionModel permissionModel)Defines the roles and credentials that Resilience Hub would use while creating the application, importing its resources, and running an assessment.App.BuilderpolicyArn(String policyArn)Amazon Resource Name (ARN) of the resiliency policy.App.BuilderresiliencyScore(Double resiliencyScore)Current resiliency score for the application.App.BuilderrpoInSecs(Integer rpoInSecs)Recovery Point Objective (RPO) in seconds.App.BuilderrtoInSecs(Integer rtoInSecs)Recovery Time Objective (RTO) in seconds.App.Builderstatus(String status)Status of the application.App.Builderstatus(AppStatusType status)Status of the application.App.Buildertags(Map<String,String> tags)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 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
-
assessmentSchedule
App.Builder assessmentSchedule(AppAssessmentScheduleType 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
-
complianceStatus
App.Builder complianceStatus(AppComplianceStatusType 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 theEventSubscription.Builderavoiding the need to create one manually viaEventSubscription.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#eventSubscriptions(List.) - 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:
#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.
-
permissionModel
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.
This is a convenience method that creates an instance of thePermissionModel.Builderavoiding the need to create one manually viaPermissionModel.builder().When the
Consumercompletes,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:
permissionModel(PermissionModel)
-
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.
-
-