@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()
The Amazon Resource Name (ARN) of the Resilience Hub application.
|
String |
appVersion()
The version of the application.
|
String |
assessmentArn()
The Amazon Resource Name (ARN) of the assessment.
|
String |
assessmentName()
The name of the assessment.
|
AssessmentStatus |
assessmentStatus()
The current status of the assessment for the resiliency policy.
|
String |
assessmentStatusAsString()
The current status of the assessment for the resiliency policy.
|
static AppAssessment.Builder |
builder() |
Map<DisruptionType,DisruptionCompliance> |
compliance()
The application compliance against the resiliency policy.
|
Map<String,DisruptionCompliance> |
complianceAsStrings()
The application compliance against the resiliency policy.
|
ComplianceStatus |
complianceStatus()
The current status of the compliance for the resiliency policy.
|
String |
complianceStatusAsString()
The current status of the compliance for the resiliency policy.
|
Cost |
cost()
The cost for the application.
|
Instant |
endTime()
The 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()
The resiliency policy.
|
ResiliencyScore |
resiliencyScore()
The current resiliency score for the 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()
The starting time for the action.
|
Map<String,String> |
tags()
The tags assigned to the resource.
|
AppAssessment.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String appArn()
The 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()
The version of the application.
public final String assessmentArn()
The 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()
The name of the assessment.
public final AssessmentStatus assessmentStatus()
The 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()
The 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()
The 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()
The 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()
The 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()
The 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()
The cost for the application.
public final Instant endTime()
The 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()
The resiliency policy.
public final ResiliencyScore resiliencyScore()
The current resiliency score for the application.
public final ResourceErrorsDetails resourceErrorsDetails()
A resource error object containing a list of errors retrieving an application's resources.
public final Instant startTime()
The 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()
The 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 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.