@Generated(value="software.amazon.awssdk:codegen") public final class AppAssessment extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AppAssessment.Builder,AppAssessment>
Defines an application assessment.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AppAssessment.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
appArn()
Amazon Resource Name (ARN) of the Resilience Hub application.
|
String |
appVersion()
Version of an application.
|
String |
assessmentArn()
Amazon Resource Name (ARN) of the assessment.
|
String |
assessmentName()
Name of the assessment.
|
AssessmentStatus |
assessmentStatus()
Current status of the assessment for the resiliency policy.
|
String |
assessmentStatusAsString()
Current status of the assessment for the resiliency policy.
|
static AppAssessment.Builder |
builder() |
Map<DisruptionType,DisruptionCompliance> |
compliance()
Application compliance against the resiliency policy.
|
Map<String,DisruptionCompliance> |
complianceAsStrings()
Application compliance against the resiliency policy.
|
ComplianceStatus |
complianceStatus()
Current status of the compliance for the resiliency policy.
|
String |
complianceStatusAsString()
Current status of the compliance for the resiliency policy.
|
Cost |
cost()
Cost for the application.
|
DriftStatus |
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.
|
Instant |
endTime()
End time for the action.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasCompliance()
For responses, this returns true if the service returned a value for the Compliance property.
|
int |
hashCode() |
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
AssessmentInvoker |
invoker()
The entity that invoked the assessment.
|
String |
invokerAsString()
The entity that invoked the assessment.
|
String |
message()
Error or warning message from the assessment execution
|
ResiliencyPolicy |
policy()
Resiliency policy of an application.
|
ResiliencyScore |
resiliencyScore()
Current resiliency score for an application.
|
ResourceErrorsDetails |
resourceErrorsDetails()
A resource error object containing a list of errors retrieving an application's resources.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AppAssessment.Builder> |
serializableBuilderClass() |
Instant |
startTime()
Starting time for the action.
|
Map<String,String> |
tags()
Tags assigned to the resource.
|
AppAssessment.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
versionName()
Version name of the published application.
|
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 AWS General Reference guide.
partition:resiliencehub:region:account:app/app-id.
For more information about ARNs, see Amazon Resource Names
(ARNs) in the AWS General Reference guide.public final String appVersion()
Version of an application.
public final String assessmentArn()
Amazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:partition
:resiliencehub:region:account:app-assessment/app-id. For more information
about ARNs, see Amazon
Resource Names (ARNs) in the AWS General Reference guide.
partition
:resiliencehub:region:account:app-assessment/app-id. For more
information about ARNs, see Amazon Resource Names
(ARNs) in the AWS General Reference guide.public final String assessmentName()
Name of the assessment.
public final AssessmentStatus assessmentStatus()
Current status of the assessment for the resiliency policy.
If the service returns an enum value that is not available in the current SDK version, assessmentStatus
will return AssessmentStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from assessmentStatusAsString().
AssessmentStatuspublic final String assessmentStatusAsString()
Current status of the assessment for the resiliency policy.
If the service returns an enum value that is not available in the current SDK version, assessmentStatus
will return AssessmentStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from assessmentStatusAsString().
AssessmentStatuspublic final Map<DisruptionType,DisruptionCompliance> compliance()
Application compliance against the resiliency policy.
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 hasCompliance() method.
public final boolean hasCompliance()
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,DisruptionCompliance> complianceAsStrings()
Application compliance against the resiliency policy.
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 hasCompliance() method.
public final ComplianceStatus complianceStatus()
Current status of the compliance for the resiliency policy.
If the service returns an enum value that is not available in the current SDK version, complianceStatus
will return ComplianceStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from complianceStatusAsString().
ComplianceStatuspublic final String complianceStatusAsString()
Current status of the compliance for the resiliency policy.
If the service returns an enum value that is not available in the current SDK version, complianceStatus
will return ComplianceStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from complianceStatusAsString().
ComplianceStatuspublic final Cost cost()
Cost for the application.
public final DriftStatus 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 DriftStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
driftStatusAsString().
DriftStatuspublic 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 DriftStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
driftStatusAsString().
DriftStatuspublic final Instant endTime()
End time for the action.
public final AssessmentInvoker invoker()
The entity that invoked the assessment.
If the service returns an enum value that is not available in the current SDK version, invoker will
return AssessmentInvoker.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
invokerAsString().
AssessmentInvokerpublic final String invokerAsString()
The entity that invoked the assessment.
If the service returns an enum value that is not available in the current SDK version, invoker will
return AssessmentInvoker.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
invokerAsString().
AssessmentInvokerpublic final String message()
Error or warning message from the assessment execution
public final ResiliencyPolicy policy()
Resiliency policy of an application.
public final ResiliencyScore resiliencyScore()
Current resiliency score for an application.
public final ResourceErrorsDetails resourceErrorsDetails()
A resource error object containing a list of errors retrieving an application's resources.
public final Instant startTime()
Starting time for the action.
public 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 final String versionName()
Version name of the published application.
public AppAssessment.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AppAssessment.Builder,AppAssessment>public static AppAssessment.Builder builder()
public static Class<? extends AppAssessment.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.