Class ResiliencyScore
- java.lang.Object
-
- software.amazon.awssdk.services.resiliencehub.model.ResiliencyScore
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ResiliencyScore.Builder,ResiliencyScore>
@Generated("software.amazon.awssdk:codegen") public final class ResiliencyScore extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResiliencyScore.Builder,ResiliencyScore>
The overall resiliency score, returned as an object that includes the disruption score and outage score.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceResiliencyScore.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResiliencyScore.Builderbuilder()Map<ResiliencyScoreType,ScoringComponentResiliencyScore>componentScore()The score generated by Resilience Hub for the scoring component after running an assessment.Map<String,ScoringComponentResiliencyScore>componentScoreAsStrings()The score generated by Resilience Hub for the scoring component after running an assessment.Map<DisruptionType,Double>disruptionScore()The disruption score for a valid key.Map<String,Double>disruptionScoreAsStrings()The disruption score for a valid key.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasComponentScore()For responses, this returns true if the service returned a value for the ComponentScore property.booleanhasDisruptionScore()For responses, this returns true if the service returned a value for the DisruptionScore property.inthashCode()Doublescore()The outage score for a valid key.List<SdkField<?>>sdkFields()static Class<? extends ResiliencyScore.Builder>serializableBuilderClass()ResiliencyScore.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
componentScore
public final Map<ResiliencyScoreType,ScoringComponentResiliencyScore> componentScore()
The score generated by Resilience Hub for the scoring component after running an assessment.
For example, if the
scoreis 25 points, it indicates the overall score of your application generated by Resilience Hub after running an assessment.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
hasComponentScore()method.- Returns:
- The score generated by Resilience Hub for the scoring component after running an assessment.
For example, if the
scoreis 25 points, it indicates the overall score of your application generated by Resilience Hub after running an assessment.
-
hasComponentScore
public final boolean hasComponentScore()
For responses, this returns true if the service returned a value for the ComponentScore property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
componentScoreAsStrings
public final Map<String,ScoringComponentResiliencyScore> componentScoreAsStrings()
The score generated by Resilience Hub for the scoring component after running an assessment.
For example, if the
scoreis 25 points, it indicates the overall score of your application generated by Resilience Hub after running an assessment.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
hasComponentScore()method.- Returns:
- The score generated by Resilience Hub for the scoring component after running an assessment.
For example, if the
scoreis 25 points, it indicates the overall score of your application generated by Resilience Hub after running an assessment.
-
disruptionScore
public final Map<DisruptionType,Double> disruptionScore()
The disruption score for a valid key.
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
hasDisruptionScore()method.- Returns:
- The disruption score for a valid key.
-
hasDisruptionScore
public final boolean hasDisruptionScore()
For responses, this returns true if the service returned a value for the DisruptionScore property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
disruptionScoreAsStrings
public final Map<String,Double> disruptionScoreAsStrings()
The disruption score for a valid key.
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
hasDisruptionScore()method.- Returns:
- The disruption score for a valid key.
-
score
public final Double score()
The outage score for a valid key.
- Returns:
- The outage score for a valid key.
-
toBuilder
public ResiliencyScore.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ResiliencyScore.Builder,ResiliencyScore>
-
builder
public static ResiliencyScore.Builder builder()
-
serializableBuilderClass
public static Class<? extends ResiliencyScore.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-