com.softlayer.api.service.survey.Answer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of softlayer-api-client Show documentation
Show all versions of softlayer-api-client Show documentation
API client for accessing the SoftLayer API
package com.softlayer.api.service.survey;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.survey.Question;
/**
* The SoftLayer_Survey_Answer data type contains general information relating to a single SoftLayer survey answer.
*
* @see SoftLayer_Survey_Answer
*/
@ApiType("SoftLayer_Survey_Answer")
public class Answer extends Entity {
/**
* The survey question that this answer belongs to.
*/
@ApiProperty
protected Question surveyQuestion;
public Question getSurveyQuestion() {
return surveyQuestion;
}
public void setSurveyQuestion(Question surveyQuestion) {
this.surveyQuestion = surveyQuestion;
}
/**
* A survey answer's answer that a user can response too.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String answer;
public String getAnswer() {
return answer;
}
public void setAnswer(String answer) {
answerSpecified = true;
this.answer = answer;
}
protected boolean answerSpecified;
public boolean isAnswerSpecified() {
return answerSpecified;
}
public void unsetAnswer() {
answer = null;
answerSpecified = false;
}
/**
* A value indicating the order in when a survey answer will be displayed to a user.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long answerOrder;
public Long getAnswerOrder() {
return answerOrder;
}
public void setAnswerOrder(Long answerOrder) {
answerOrderSpecified = true;
this.answerOrder = answerOrder;
}
protected boolean answerOrderSpecified;
public boolean isAnswerOrderSpecified() {
return answerOrderSpecified;
}
public void unsetAnswerOrder() {
answerOrder = null;
answerOrderSpecified = false;
}
/**
* A survey answer's Id.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long id;
public Long getId() {
return id;
}
public void setId(Long id) {
idSpecified = true;
this.id = id;
}
protected boolean idSpecified;
public boolean isIdSpecified() {
return idSpecified;
}
public void unsetId() {
id = null;
idSpecified = false;
}
/**
* A survey answer's associated [[SoftLayer_Survey_Question|Survey Question]] Id.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long surveyQuestionId;
public Long getSurveyQuestionId() {
return surveyQuestionId;
}
public void setSurveyQuestionId(Long surveyQuestionId) {
surveyQuestionIdSpecified = true;
this.surveyQuestionId = surveyQuestionId;
}
protected boolean surveyQuestionIdSpecified;
public boolean isSurveyQuestionIdSpecified() {
return surveyQuestionIdSpecified;
}
public void unsetSurveyQuestionId() {
surveyQuestionId = null;
surveyQuestionIdSpecified = false;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public Question.Mask surveyQuestion() {
return withSubMask("surveyQuestion", Question.Mask.class);
}
public Mask answer() {
withLocalProperty("answer");
return this;
}
public Mask answerOrder() {
withLocalProperty("answerOrder");
return this;
}
public Mask id() {
withLocalProperty("id");
return this;
}
public Mask surveyQuestionId() {
withLocalProperty("surveyQuestionId");
return this;
}
}
}