Package com.softlayer.api.service
Class Survey
- java.lang.Object
-
- com.softlayer.api.Type
-
- com.softlayer.api.service.Entity
-
- com.softlayer.api.service.Survey
-
@ApiType("SoftLayer_Survey") public class Survey extends Entity
The SoftLayer_Survey data type contains general information relating to a single SoftLayer survey.- See Also:
- SoftLayer_Survey
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Survey.Mask
static interface
Survey.Service
Every SoftLayer survey is defined in the SoftLayer_Survey service.static interface
Survey.ServiceAsync
-
Field Summary
Fields Modifier and Type Field Description protected Long
active
A flag indicating if a survey can be taken.protected boolean
activeSpecified
protected GregorianCalendar
createDate
The date that a survey had originally started.protected boolean
createDateSpecified
protected Long
id
A survey's id.protected boolean
idSpecified
protected String
name
A survey's name or title.protected boolean
nameSpecified
protected Long
questionCount
A count of the questions for a survey.protected List<Question>
questions
The questions for a survey.protected Status
status
The status of the surveyprotected Long
statusId
The status id of the survey.protected boolean
statusIdSpecified
protected Type
type
The type of surveyprotected Long
typeId
The type id of the survey.protected boolean
typeIdSpecified
-
Fields inherited from class com.softlayer.api.Type
unknownProperties
-
-
Constructor Summary
Constructors Constructor Description Survey()
-
Method Summary
Modifier and Type Method Description Survey.Service
asService(ApiClient client)
Long
getActive()
GregorianCalendar
getCreateDate()
Long
getId()
String
getName()
Long
getQuestionCount()
List<Question>
getQuestions()
Status
getStatus()
Long
getStatusId()
Type
getType()
Long
getTypeId()
boolean
isActiveSpecified()
boolean
isCreateDateSpecified()
boolean
isIdSpecified()
boolean
isNameSpecified()
boolean
isStatusIdSpecified()
boolean
isTypeIdSpecified()
static Survey.Service
service(ApiClient client)
static Survey.Service
service(ApiClient client, Long id)
void
setActive(Long active)
void
setCreateDate(GregorianCalendar createDate)
void
setId(Long id)
void
setName(String name)
void
setQuestionCount(Long questionCount)
void
setStatus(Status status)
void
setStatusId(Long statusId)
void
setType(Type type)
void
setTypeId(Long typeId)
void
unsetActive()
void
unsetCreateDate()
void
unsetId()
void
unsetName()
void
unsetStatusId()
void
unsetTypeId()
-
Methods inherited from class com.softlayer.api.Type
getUnknownProperties, setUnknownProperties
-
-
-
-
Field Detail
-
questions
@ApiProperty protected List<Question> questions
The questions for a survey.
-
status
@ApiProperty protected Status status
The status of the survey
-
type
@ApiProperty protected Type type
The type of survey
-
active
@ApiProperty(canBeNullOrNotSet=true) protected Long active
A flag indicating if a survey can be taken.
-
activeSpecified
protected boolean activeSpecified
-
createDate
@ApiProperty(canBeNullOrNotSet=true) protected GregorianCalendar createDate
The date that a survey had originally started.
-
createDateSpecified
protected boolean createDateSpecified
-
id
@ApiProperty(canBeNullOrNotSet=true) protected Long id
A survey's id.
-
idSpecified
protected boolean idSpecified
-
name
@ApiProperty(canBeNullOrNotSet=true) protected String name
A survey's name or title.
-
nameSpecified
protected boolean nameSpecified
-
statusId
@ApiProperty(canBeNullOrNotSet=true) protected Long statusId
The status id of the survey.
-
statusIdSpecified
protected boolean statusIdSpecified
-
typeId
@ApiProperty(canBeNullOrNotSet=true) protected Long typeId
The type id of the survey.
-
typeIdSpecified
protected boolean typeIdSpecified
-
questionCount
@ApiProperty protected Long questionCount
A count of the questions for a survey.
-
-
Method Detail
-
getStatus
public Status getStatus()
-
setStatus
public void setStatus(Status status)
-
getType
public Type getType()
-
setType
public void setType(Type type)
-
getActive
public Long getActive()
-
setActive
public void setActive(Long active)
-
isActiveSpecified
public boolean isActiveSpecified()
-
unsetActive
public void unsetActive()
-
getCreateDate
public GregorianCalendar getCreateDate()
-
setCreateDate
public void setCreateDate(GregorianCalendar createDate)
-
isCreateDateSpecified
public boolean isCreateDateSpecified()
-
unsetCreateDate
public void unsetCreateDate()
-
getId
public Long getId()
-
setId
public void setId(Long id)
-
isIdSpecified
public boolean isIdSpecified()
-
unsetId
public void unsetId()
-
getName
public String getName()
-
setName
public void setName(String name)
-
isNameSpecified
public boolean isNameSpecified()
-
unsetName
public void unsetName()
-
getStatusId
public Long getStatusId()
-
setStatusId
public void setStatusId(Long statusId)
-
isStatusIdSpecified
public boolean isStatusIdSpecified()
-
unsetStatusId
public void unsetStatusId()
-
getTypeId
public Long getTypeId()
-
setTypeId
public void setTypeId(Long typeId)
-
isTypeIdSpecified
public boolean isTypeIdSpecified()
-
unsetTypeId
public void unsetTypeId()
-
getQuestionCount
public Long getQuestionCount()
-
setQuestionCount
public void setQuestionCount(Long questionCount)
-
asService
public Survey.Service asService(ApiClient client)
-
service
public static Survey.Service service(ApiClient client)
-
service
public static Survey.Service service(ApiClient client, Long id)
-
-