Package com.softlayer.api.service.survey
Class Question
- java.lang.Object
-
- com.softlayer.api.Type
-
- com.softlayer.api.service.Entity
-
- com.softlayer.api.service.survey.Question
-
@ApiType("SoftLayer_Survey_Question") public class Question extends Entity
The SoftLayer_Survey_Question data type contains general information relating to a single SoftLayer survey question.- See Also:
- SoftLayer_Survey_Question
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Question.Mask
-
Field Summary
Fields Modifier and Type Field Description protected Long
answerCount
A count of the possible answers for a survey question.protected List<Answer>
answers
The possible answers for a survey question.protected Long
id
A survey question's Id.protected boolean
idSpecified
protected Long
isRequired
A flag indicating that a survey question requires a response.protected boolean
isRequiredSpecified
protected Long
multiAnswer
A flag indicating that a survey question can have multiple answers responded to.protected boolean
multiAnswerSpecified
protected String
question
A survey question's question.protected Long
questionOrder
A value indicating the order in when a survey question will be asked.protected boolean
questionOrderSpecified
protected boolean
questionSpecified
protected Survey
survey
The survey that a question belongs to.protected Long
surveyId
A survey question's associated [[SoftLayer_Survey|Survey]] Id.protected boolean
surveyIdSpecified
-
Fields inherited from class com.softlayer.api.Type
unknownProperties
-
-
Constructor Summary
Constructors Constructor Description Question()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
getAnswerCount()
List<Answer>
getAnswers()
Long
getId()
Long
getIsRequired()
Long
getMultiAnswer()
String
getQuestion()
Long
getQuestionOrder()
Survey
getSurvey()
Long
getSurveyId()
boolean
isIdSpecified()
boolean
isIsRequiredSpecified()
boolean
isMultiAnswerSpecified()
boolean
isQuestionOrderSpecified()
boolean
isQuestionSpecified()
boolean
isSurveyIdSpecified()
void
setAnswerCount(Long answerCount)
void
setId(Long id)
void
setIsRequired(Long isRequired)
void
setMultiAnswer(Long multiAnswer)
void
setQuestion(String question)
void
setQuestionOrder(Long questionOrder)
void
setSurvey(Survey survey)
void
setSurveyId(Long surveyId)
void
unsetId()
void
unsetIsRequired()
void
unsetMultiAnswer()
void
unsetQuestion()
void
unsetQuestionOrder()
void
unsetSurveyId()
-
Methods inherited from class com.softlayer.api.Type
getUnknownProperties, setUnknownProperties
-
-
-
-
Field Detail
-
answers
@ApiProperty protected List<Answer> answers
The possible answers for a survey question.
-
survey
@ApiProperty protected Survey survey
The survey that a question belongs to.
-
id
@ApiProperty(canBeNullOrNotSet=true) protected Long id
A survey question's Id.
-
idSpecified
protected boolean idSpecified
-
isRequired
@ApiProperty(canBeNullOrNotSet=true) protected Long isRequired
A flag indicating that a survey question requires a response.
-
isRequiredSpecified
protected boolean isRequiredSpecified
-
multiAnswer
@ApiProperty(canBeNullOrNotSet=true) protected Long multiAnswer
A flag indicating that a survey question can have multiple answers responded to.
-
multiAnswerSpecified
protected boolean multiAnswerSpecified
-
question
@ApiProperty(canBeNullOrNotSet=true) protected String question
A survey question's question.
-
questionSpecified
protected boolean questionSpecified
-
questionOrder
@ApiProperty(canBeNullOrNotSet=true) protected Long questionOrder
A value indicating the order in when a survey question will be asked.
-
questionOrderSpecified
protected boolean questionOrderSpecified
-
surveyId
@ApiProperty(canBeNullOrNotSet=true) protected Long surveyId
A survey question's associated [[SoftLayer_Survey|Survey]] Id.
-
surveyIdSpecified
protected boolean surveyIdSpecified
-
answerCount
@ApiProperty protected Long answerCount
A count of the possible answers for a survey question.
-
-
Method Detail
-
getSurvey
public Survey getSurvey()
-
setSurvey
public void setSurvey(Survey survey)
-
getId
public Long getId()
-
setId
public void setId(Long id)
-
isIdSpecified
public boolean isIdSpecified()
-
unsetId
public void unsetId()
-
getIsRequired
public Long getIsRequired()
-
setIsRequired
public void setIsRequired(Long isRequired)
-
isIsRequiredSpecified
public boolean isIsRequiredSpecified()
-
unsetIsRequired
public void unsetIsRequired()
-
getMultiAnswer
public Long getMultiAnswer()
-
setMultiAnswer
public void setMultiAnswer(Long multiAnswer)
-
isMultiAnswerSpecified
public boolean isMultiAnswerSpecified()
-
unsetMultiAnswer
public void unsetMultiAnswer()
-
getQuestion
public String getQuestion()
-
setQuestion
public void setQuestion(String question)
-
isQuestionSpecified
public boolean isQuestionSpecified()
-
unsetQuestion
public void unsetQuestion()
-
getQuestionOrder
public Long getQuestionOrder()
-
setQuestionOrder
public void setQuestionOrder(Long questionOrder)
-
isQuestionOrderSpecified
public boolean isQuestionOrderSpecified()
-
unsetQuestionOrder
public void unsetQuestionOrder()
-
getSurveyId
public Long getSurveyId()
-
setSurveyId
public void setSurveyId(Long surveyId)
-
isSurveyIdSpecified
public boolean isSurveyIdSpecified()
-
unsetSurveyId
public void unsetSurveyId()
-
getAnswerCount
public Long getAnswerCount()
-
setAnswerCount
public void setAnswerCount(Long answerCount)
-
-