java.lang.Object
com.softlayer.api.Type
com.softlayer.api.service.Entity
com.softlayer.api.service.product.item.category.Question

@ApiType("SoftLayer_Product_Item_Category_Question")
public class Question
extends Entity
The SoftLayer_Product_Item_Category_Question data type represents a single question to be answered by an end user. The question may or may not be required which can be located by looking at the 'required' property on the item category references. The answerValueExpression property is a regular expression that is used to validate the answer to the question. The description and valueExample properties can be used to get an idea of the type of answer that should be provided.
See Also:
SoftLayer_Product_Item_Category_Question
  • Field Details

    • fieldType

      @ApiProperty protected Type fieldType
      The type of field that should be used in an HTML form to accept an answer from an end user.
    • itemCategoryReferences

      @ApiProperty protected List<Xref> itemCategoryReferences
      The link between an item category and an item category question.
    • answerValueExpression

      @ApiProperty(canBeNullOrNotSet=true) protected String answerValueExpression
      The type of answer expected.
    • answerValueExpressionSpecified

      protected boolean answerValueExpressionSpecified
    • description

      @ApiProperty(canBeNullOrNotSet=true) protected String description
      The description for the question.
    • descriptionSpecified

      protected boolean descriptionSpecified
    • fieldTypeId

      @ApiProperty(canBeNullOrNotSet=true) protected Long fieldTypeId
      The type of field to use.
    • fieldTypeIdSpecified

      protected boolean fieldTypeIdSpecified
    • id

      @ApiProperty(canBeNullOrNotSet=true) protected Long id
      identifier for category.
    • idSpecified

      protected boolean idSpecified
    • keyName

      @ApiProperty(canBeNullOrNotSet=true) protected String keyName
      The keyname for the question.
    • keyNameSpecified

      protected boolean keyNameSpecified
    • question

      @ApiProperty(canBeNullOrNotSet=true) protected String question
      The question for the category.
    • questionSpecified

      protected boolean questionSpecified
    • valueExample

      @ApiProperty(canBeNullOrNotSet=true) protected String valueExample
      An example and/or explanation of what the answer for the question is expected to look like.
    • valueExampleSpecified

      protected boolean valueExampleSpecified
    • itemCategoryReferenceCount

      @ApiProperty protected Long itemCategoryReferenceCount
      A count of the link between an item category and an item category question.
  • Constructor Details

    • Question

      public Question()
  • Method Details

    • getFieldType

      public Type getFieldType()
    • setFieldType

      public void setFieldType​(Type fieldType)
    • getItemCategoryReferences

      public List<Xref> getItemCategoryReferences()
    • getAnswerValueExpression

      public String getAnswerValueExpression()
    • setAnswerValueExpression

      public void setAnswerValueExpression​(String answerValueExpression)
    • isAnswerValueExpressionSpecified

      public boolean isAnswerValueExpressionSpecified()
    • unsetAnswerValueExpression

      public void unsetAnswerValueExpression()
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription​(String description)
    • isDescriptionSpecified

      public boolean isDescriptionSpecified()
    • unsetDescription

      public void unsetDescription()
    • getFieldTypeId

      public Long getFieldTypeId()
    • setFieldTypeId

      public void setFieldTypeId​(Long fieldTypeId)
    • isFieldTypeIdSpecified

      public boolean isFieldTypeIdSpecified()
    • unsetFieldTypeId

      public void unsetFieldTypeId()
    • getId

      public Long getId()
    • setId

      public void setId​(Long id)
    • isIdSpecified

      public boolean isIdSpecified()
    • unsetId

      public void unsetId()
    • getKeyName

      public String getKeyName()
    • setKeyName

      public void setKeyName​(String keyName)
    • isKeyNameSpecified

      public boolean isKeyNameSpecified()
    • unsetKeyName

      public void unsetKeyName()
    • getQuestion

      public String getQuestion()
    • setQuestion

      public void setQuestion​(String question)
    • isQuestionSpecified

      public boolean isQuestionSpecified()
    • unsetQuestion

      public void unsetQuestion()
    • getValueExample

      public String getValueExample()
    • setValueExample

      public void setValueExample​(String valueExample)
    • isValueExampleSpecified

      public boolean isValueExampleSpecified()
    • unsetValueExample

      public void unsetValueExample()
    • getItemCategoryReferenceCount

      public Long getItemCategoryReferenceCount()
    • setItemCategoryReferenceCount

      public void setItemCategoryReferenceCount​(Long itemCategoryReferenceCount)