@Generated(value="software.amazon.awssdk:codegen") public final class App extends Object implements SdkPojo, Serializable, ToCopyableBuilder<App.Builder,App>
Defines an Resilience Hub application.
| Modifier and Type | Class and Description |
|---|---|
static interface |
App.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
appArn()
Amazon Resource Name (ARN) of the Resilience Hub application.
|
AppAssessmentScheduleType |
assessmentSchedule()
Assessment execution schedule with 'Daily' or 'Disabled' values.
|
String |
assessmentScheduleAsString()
Assessment execution schedule with 'Daily' or 'Disabled' values.
|
static App.Builder |
builder() |
AppComplianceStatusType |
complianceStatus()
Current status of compliance for the resiliency policy.
|
String |
complianceStatusAsString()
Current status of compliance for the resiliency policy.
|
Instant |
creationTime()
Date and time when the app was created.
|
String |
description()
Optional description for an application.
|
AppDriftStatusType |
driftStatus()
Indicates if compliance drifts (deviations) were detected while running an assessment for your application.
|
String |
driftStatusAsString()
Indicates if compliance drifts (deviations) were detected while running an assessment for your application.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
List<EventSubscription> |
eventSubscriptions()
The list of events you would like to subscribe and get notification for.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasEventSubscriptions()
For responses, this returns true if the service returned a value for the EventSubscriptions property.
|
int |
hashCode() |
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
Instant |
lastAppComplianceEvaluationTime()
Date and time the most recent compliance evaluation.
|
Instant |
lastDriftEvaluationTime()
Indicates the last time that a drift was evaluated.
|
Instant |
lastResiliencyScoreEvaluationTime()
Date and time the most recent resiliency score evaluation.
|
String |
name()
Name for the application.
|
PermissionModel |
permissionModel()
Defines the roles and credentials that Resilience Hub would use while creating the application, importing its
resources, and running an assessment.
|
String |
policyArn()
Amazon Resource Name (ARN) of the resiliency policy.
|
Double |
resiliencyScore()
Current resiliency score for the application.
|
Integer |
rpoInSecs()
Recovery Point Objective (RPO) in seconds.
|
Integer |
rtoInSecs()
Recovery Time Objective (RTO) in seconds.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends App.Builder> |
serializableBuilderClass() |
AppStatusType |
status()
Status of the application.
|
String |
statusAsString()
Status of the application.
|
Map<String,String> |
tags()
Tags assigned to the resource.
|
App.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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.
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.public final AppAssessmentScheduleType assessmentSchedule()
Assessment execution schedule with 'Daily' or 'Disabled' values.
If the service returns an enum value that is not available in the current SDK version,
assessmentSchedule will return AppAssessmentScheduleType.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from assessmentScheduleAsString().
AppAssessmentScheduleTypepublic final String assessmentScheduleAsString()
Assessment execution schedule with 'Daily' or 'Disabled' values.
If the service returns an enum value that is not available in the current SDK version,
assessmentSchedule will return AppAssessmentScheduleType.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from assessmentScheduleAsString().
AppAssessmentScheduleTypepublic final AppComplianceStatusType complianceStatus()
Current status of compliance for the resiliency policy.
If the service returns an enum value that is not available in the current SDK version, complianceStatus
will return AppComplianceStatusType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from complianceStatusAsString().
AppComplianceStatusTypepublic final String complianceStatusAsString()
Current status of compliance for the resiliency policy.
If the service returns an enum value that is not available in the current SDK version, complianceStatus
will return AppComplianceStatusType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from complianceStatusAsString().
AppComplianceStatusTypepublic final Instant creationTime()
Date and time when the app was created.
public final String description()
Optional description for an application.
public final AppDriftStatusType driftStatus()
Indicates if compliance drifts (deviations) were detected while running an assessment for your application.
If the service returns an enum value that is not available in the current SDK version, driftStatus will
return AppDriftStatusType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
driftStatusAsString().
AppDriftStatusTypepublic final String driftStatusAsString()
Indicates if compliance drifts (deviations) were detected while running an assessment for your application.
If the service returns an enum value that is not available in the current SDK version, driftStatus will
return AppDriftStatusType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
driftStatusAsString().
AppDriftStatusTypepublic final boolean hasEventSubscriptions()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasEventSubscriptions() method.
public final Instant lastAppComplianceEvaluationTime()
Date and time the most recent compliance evaluation.
public final Instant lastDriftEvaluationTime()
Indicates the last time that a drift was evaluated.
public final Instant lastResiliencyScoreEvaluationTime()
Date and time the most recent resiliency score evaluation.
public final String name()
Name for the application.
public final PermissionModel permissionModel()
Defines the roles and credentials that Resilience Hub would use while creating the application, importing its resources, and running an assessment.
public final 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.
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.public final Double resiliencyScore()
Current resiliency score for the application.
public final Integer rpoInSecs()
Recovery Point Objective (RPO) in seconds.
public final Integer rtoInSecs()
Recovery Time Objective (RTO) in seconds.
public final AppStatusType status()
Status of the application.
If the service returns an enum value that is not available in the current SDK version, status will
return AppStatusType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
AppStatusTypepublic final String statusAsString()
Status of the application.
If the service returns an enum value that is not available in the current SDK version, status will
return AppStatusType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
AppStatusTypepublic final boolean hasTags()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final 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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTags() method.
public App.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<App.Builder,App>public static App.Builder builder()
public static Class<? extends App.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.