@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResiliencyScore extends Object implements Serializable, Cloneable, StructuredPojo
The overall resiliency score, returned as an object that includes the disruption score and outage score.
Constructor and Description |
---|
ResiliencyScore() |
Modifier and Type | Method and Description |
---|---|
ResiliencyScore |
addComponentScoreEntry(String key,
ScoringComponentResiliencyScore value)
Add a single ComponentScore entry
|
ResiliencyScore |
addDisruptionScoreEntry(String key,
Double value)
Add a single DisruptionScore entry
|
ResiliencyScore |
clearComponentScoreEntries()
Removes all the entries added into ComponentScore.
|
ResiliencyScore |
clearDisruptionScoreEntries()
Removes all the entries added into DisruptionScore.
|
ResiliencyScore |
clone() |
boolean |
equals(Object obj) |
Map<String,ScoringComponentResiliencyScore> |
getComponentScore()
The score generated by Resilience Hub for the scoring component after running an assessment.
|
Map<String,Double> |
getDisruptionScore()
The disruption score for a valid key.
|
Double |
getScore()
The outage score for a valid key.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setComponentScore(Map<String,ScoringComponentResiliencyScore> componentScore)
The score generated by Resilience Hub for the scoring component after running an assessment.
|
void |
setDisruptionScore(Map<String,Double> disruptionScore)
The disruption score for a valid key.
|
void |
setScore(Double score)
The outage score for a valid key.
|
String |
toString()
Returns a string representation of this object.
|
ResiliencyScore |
withComponentScore(Map<String,ScoringComponentResiliencyScore> componentScore)
The score generated by Resilience Hub for the scoring component after running an assessment.
|
ResiliencyScore |
withDisruptionScore(Map<String,Double> disruptionScore)
The disruption score for a valid key.
|
ResiliencyScore |
withScore(Double score)
The outage score for a valid key.
|
public Map<String,ScoringComponentResiliencyScore> getComponentScore()
The score generated by Resilience Hub for the scoring component after running an assessment.
For example, if the score
is 25 points, it indicates the overall score of your application generated
by Resilience Hub after running an assessment.
For example, if the score
is 25 points, it indicates the overall score of your application
generated by Resilience Hub after running an assessment.
public void setComponentScore(Map<String,ScoringComponentResiliencyScore> componentScore)
The score generated by Resilience Hub for the scoring component after running an assessment.
For example, if the score
is 25 points, it indicates the overall score of your application generated
by Resilience Hub after running an assessment.
componentScore
- The score generated by Resilience Hub for the scoring component after running an assessment.
For example, if the score
is 25 points, it indicates the overall score of your application
generated by Resilience Hub after running an assessment.
public ResiliencyScore withComponentScore(Map<String,ScoringComponentResiliencyScore> componentScore)
The score generated by Resilience Hub for the scoring component after running an assessment.
For example, if the score
is 25 points, it indicates the overall score of your application generated
by Resilience Hub after running an assessment.
componentScore
- The score generated by Resilience Hub for the scoring component after running an assessment.
For example, if the score
is 25 points, it indicates the overall score of your application
generated by Resilience Hub after running an assessment.
public ResiliencyScore addComponentScoreEntry(String key, ScoringComponentResiliencyScore value)
public ResiliencyScore clearComponentScoreEntries()
public Map<String,Double> getDisruptionScore()
The disruption score for a valid key.
public void setDisruptionScore(Map<String,Double> disruptionScore)
The disruption score for a valid key.
disruptionScore
- The disruption score for a valid key.public ResiliencyScore withDisruptionScore(Map<String,Double> disruptionScore)
The disruption score for a valid key.
disruptionScore
- The disruption score for a valid key.public ResiliencyScore addDisruptionScoreEntry(String key, Double value)
public ResiliencyScore clearDisruptionScoreEntries()
public void setScore(Double score)
The outage score for a valid key.
score
- The outage score for a valid key.public Double getScore()
The outage score for a valid key.
public ResiliencyScore withScore(Double score)
The outage score for a valid key.
score
- The outage score for a valid key.public String toString()
toString
in class Object
Object.toString()
public ResiliencyScore clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.