com.softlayer.api.service.survey.Response 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.Answer;
/**
* The SoftLayer_Survey_Response data type contains general information relating to a single SoftLayer survey response.
*
* @see SoftLayer_Survey_Response
*/
@ApiType("SoftLayer_Survey_Response")
public class Response extends Entity {
/**
* The survey answer that this response was to.
*/
@ApiProperty
protected Answer surveyAnswer;
public Answer getSurveyAnswer() {
return surveyAnswer;
}
public void setSurveyAnswer(Answer surveyAnswer) {
this.surveyAnswer = surveyAnswer;
}
/**
* The user typed response for the [[SoftLayer_Survey_Answer|Survey Answer]] that a response is associated with.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String otherAnswer;
public String getOtherAnswer() {
return otherAnswer;
}
public void setOtherAnswer(String otherAnswer) {
otherAnswerSpecified = true;
this.otherAnswer = otherAnswer;
}
protected boolean otherAnswerSpecified;
public boolean isOtherAnswerSpecified() {
return otherAnswerSpecified;
}
public void unsetOtherAnswer() {
otherAnswer = null;
otherAnswerSpecified = false;
}
/**
* The Id of the [[SoftLayer_Survey_Answer|Survey Answer]] that a response was made for.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long surveyAnswerId;
public Long getSurveyAnswerId() {
return surveyAnswerId;
}
public void setSurveyAnswerId(Long surveyAnswerId) {
surveyAnswerIdSpecified = true;
this.surveyAnswerId = surveyAnswerId;
}
protected boolean surveyAnswerIdSpecified;
public boolean isSurveyAnswerIdSpecified() {
return surveyAnswerIdSpecified;
}
public void unsetSurveyAnswerId() {
surveyAnswerId = null;
surveyAnswerIdSpecified = false;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public Answer.Mask surveyAnswer() {
return withSubMask("surveyAnswer", Answer.Mask.class);
}
public Mask otherAnswer() {
withLocalProperty("otherAnswer");
return this;
}
public Mask surveyAnswerId() {
withLocalProperty("surveyAnswerId");
return this;
}
}
}