Class TRCaseField
java.lang.Object
org.touchbit.testrail4j.jackson2.model.TRCaseField
public class TRCaseField extends Object
Case custom field. See http://docs.gurock.com/testrail-api2/reference-cases-fields#add_case_field
-
Constructor Summary
Constructors Constructor Description TRCaseField()No args constructor for use in serializationTRCaseField(List<TRCaseFieldConfig> configs, String description, Long displayOrder, Long id, Long isMulti, Boolean isActive, Long statusId, Long isSystem, Long entityId, String label, String name, String systemName, String type, Long typeId, Long locationId, Boolean includeAll, List<Long> templateIds) -
Method Summary
Modifier and Type Method Description booleanequals(Object other)Map<String,Object>getAdditionalProperties()List<TRCaseFieldConfig>getConfigs()An object wrapped in an array with two default keys, 'context' and 'options'StringgetDescription()The description for the new custom fieldLonggetDisplayOrder()LonggetEntityId()LonggetId()BooleangetIncludeAll()Set flag to true if you want the new custom field included for all templates.BooleangetIsActive()LonggetIsMulti()LonggetIsSystem()StringgetLabel()The label for custom field (Required)LonggetLocationId()See FieldTypes classStringgetName()The name for custom field (Required)LonggetStatusId()StringgetSystemName()The system name for custom fieldList<Long>getTemplateIds()ID's of templates new custom field will apply to if include_all is set to falseStringgetType()See FieldTypes class.LonggetTypeId()See FieldTypes class (Required)inthashCode()voidsetAdditionalProperty(String name, Object value)voidsetConfigs(List<TRCaseFieldConfig> configs)An object wrapped in an array with two default keys, 'context' and 'options'voidsetDescription(String description)The description for the new custom fieldvoidsetDisplayOrder(Long displayOrder)voidsetEntityId(Long entityId)voidsetId(Long id)voidsetIncludeAll(Boolean includeAll)Set flag to true if you want the new custom field included for all templates.voidsetIsActive(Boolean isActive)voidsetIsMulti(Long isMulti)voidsetIsSystem(Long isSystem)voidsetLabel(String label)The label for custom field (Required)voidsetLocationId(Long locationId)See FieldTypes classvoidsetName(String name)The name for custom field (Required)voidsetStatusId(Long statusId)voidsetSystemName(String systemName)The system name for custom fieldvoidsetTemplateIds(List<Long> templateIds)ID's of templates new custom field will apply to if include_all is set to falsevoidsetType(String type)See FieldTypes class.voidsetTypeId(Long typeId)See FieldTypes class (Required)StringtoString()TRCaseFieldwithAdditionalProperty(String name, Object value)TRCaseFieldwithConfigs(List<TRCaseFieldConfig> configs)TRCaseFieldwithDescription(String description)TRCaseFieldwithDisplayOrder(Long displayOrder)TRCaseFieldwithEntityId(Long entityId)TRCaseFieldwithId(Long id)TRCaseFieldwithIncludeAll(Boolean includeAll)TRCaseFieldwithIsActive(Boolean isActive)TRCaseFieldwithIsMulti(Long isMulti)TRCaseFieldwithIsSystem(Long isSystem)TRCaseFieldwithLabel(String label)TRCaseFieldwithLocationId(Long locationId)TRCaseFieldwithName(String name)TRCaseFieldwithStatusId(Long statusId)TRCaseFieldwithSystemName(String systemName)TRCaseFieldwithTemplateIds(List<Long> templateIds)TRCaseFieldwithType(String type)TRCaseFieldwithTypeId(Long typeId)
-
Constructor Details
-
TRCaseField
public TRCaseField()No args constructor for use in serialization -
TRCaseField
public TRCaseField(List<TRCaseFieldConfig> configs, String description, Long displayOrder, Long id, Long isMulti, Boolean isActive, Long statusId, Long isSystem, Long entityId, String label, String name, String systemName, String type, Long typeId, Long locationId, Boolean includeAll, List<Long> templateIds)- Parameters:
configs-templateIds-displayOrder-description-entityId-includeAll-label-isActive-type-isMulti-isSystem-statusId-systemName-locationId-name-typeId-id-
-
-
Method Details
-
getConfigs
An object wrapped in an array with two default keys, 'context' and 'options' -
setConfigs
An object wrapped in an array with two default keys, 'context' and 'options' -
withConfigs
-
getDescription
The description for the new custom field -
setDescription
The description for the new custom field -
withDescription
-
getDisplayOrder
-
setDisplayOrder
-
withDisplayOrder
-
getId
-
setId
-
withId
-
getIsMulti
-
setIsMulti
-
withIsMulti
-
getIsActive
-
setIsActive
-
withIsActive
-
getStatusId
-
setStatusId
-
withStatusId
-
getIsSystem
-
setIsSystem
-
withIsSystem
-
getEntityId
-
setEntityId
-
withEntityId
-
getLabel
The label for custom field (Required) -
setLabel
The label for custom field (Required) -
withLabel
-
getName
The name for custom field (Required) -
setName
The name for custom field (Required) -
withName
-
getSystemName
The system name for custom field -
setSystemName
The system name for custom field -
withSystemName
-
getType
See FieldTypes class. You can pass the number of the type as well as the word, e.g. 5, string, String, Dropdown, 12. The numbers must be sent as a string e.g {type: "5"} not {type: 5}, otherwise you will get a 400 (Bad Request) response. -
setType
See FieldTypes class. You can pass the number of the type as well as the word, e.g. 5, string, String, Dropdown, 12. The numbers must be sent as a string e.g {type: "5"} not {type: 5}, otherwise you will get a 400 (Bad Request) response. -
withType
-
getTypeId
See FieldTypes class (Required) -
setTypeId
See FieldTypes class (Required) -
withTypeId
-
getLocationId
See FieldTypes class -
setLocationId
See FieldTypes class -
withLocationId
-
getIncludeAll
Set flag to true if you want the new custom field included for all templates. Otherwise (false) specify the ID's of templates to be included as the next parameter (template_ids) -
setIncludeAll
Set flag to true if you want the new custom field included for all templates. Otherwise (false) specify the ID's of templates to be included as the next parameter (template_ids) -
withIncludeAll
-
getTemplateIds
ID's of templates new custom field will apply to if include_all is set to false -
setTemplateIds
ID's of templates new custom field will apply to if include_all is set to false -
withTemplateIds
-
getAdditionalProperties
-
setAdditionalProperty
-
withAdditionalProperty
-
toString
-
hashCode
public int hashCode() -
equals
-