@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class QuestionMetric extends Object implements Serializable, Cloneable, StructuredPojo
A metric for a particular question in the pillar.
Constructor and Description |
---|
QuestionMetric() |
Modifier and Type | Method and Description |
---|---|
QuestionMetric |
clone() |
boolean |
equals(Object obj) |
List<BestPractice> |
getBestPractices()
The best practices, or choices, that have been identified as contributing to risk in a question.
|
String |
getQuestionId() |
String |
getRisk() |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBestPractices(Collection<BestPractice> bestPractices)
The best practices, or choices, that have been identified as contributing to risk in a question.
|
void |
setQuestionId(String questionId) |
void |
setRisk(String risk) |
String |
toString()
Returns a string representation of this object.
|
QuestionMetric |
withBestPractices(BestPractice... bestPractices)
The best practices, or choices, that have been identified as contributing to risk in a question.
|
QuestionMetric |
withBestPractices(Collection<BestPractice> bestPractices)
The best practices, or choices, that have been identified as contributing to risk in a question.
|
QuestionMetric |
withQuestionId(String questionId) |
QuestionMetric |
withRisk(Risk risk) |
QuestionMetric |
withRisk(String risk) |
public void setQuestionId(String questionId)
questionId
- public String getQuestionId()
public QuestionMetric withQuestionId(String questionId)
questionId
- public QuestionMetric withRisk(String risk)
risk
- Risk
public QuestionMetric withRisk(Risk risk)
risk
- Risk
public List<BestPractice> getBestPractices()
The best practices, or choices, that have been identified as contributing to risk in a question.
public void setBestPractices(Collection<BestPractice> bestPractices)
The best practices, or choices, that have been identified as contributing to risk in a question.
bestPractices
- The best practices, or choices, that have been identified as contributing to risk in a question.public QuestionMetric withBestPractices(BestPractice... bestPractices)
The best practices, or choices, that have been identified as contributing to risk in a question.
NOTE: This method appends the values to the existing list (if any). Use
setBestPractices(java.util.Collection)
or withBestPractices(java.util.Collection)
if you want
to override the existing values.
bestPractices
- The best practices, or choices, that have been identified as contributing to risk in a question.public QuestionMetric withBestPractices(Collection<BestPractice> bestPractices)
The best practices, or choices, that have been identified as contributing to risk in a question.
bestPractices
- The best practices, or choices, that have been identified as contributing to risk in a question.public String toString()
toString
in class Object
Object.toString()
public QuestionMetric clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.