Package com.datadog.api.client.v2.model
Class IncidentUserDefinedFieldAttributesCreateRequest
java.lang.Object
com.datadog.api.client.v2.model.IncidentUserDefinedFieldAttributesCreateRequest
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class IncidentUserDefinedFieldAttributesCreateRequest
extends Object
Attributes for creating an incident user-defined field.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIncidentUserDefinedFieldAttributesCreateRequest(String name, IncidentUserDefinedFieldFieldType type) -
Method Summary
Modifier and TypeMethodDescriptionaddValidValuesItem(IncidentUserDefinedFieldValidValue validValuesItem) category(IncidentUserDefinedFieldCategory category) collected(IncidentUserDefinedFieldCollected collected) defaultValue(String defaultValue) displayName(String displayName) booleanReturn true if this IncidentUserDefinedFieldAttributesCreateRequest object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The section in which the field appears: "what_happened" or "why_it_happened".org.openapitools.jackson.nullable.JsonNullable<IncidentUserDefinedFieldCategory>The lifecycle stage at which the app prompts users to fill out this field.org.openapitools.jackson.nullable.JsonNullable<IncidentUserDefinedFieldCollected>The default value for the field.org.openapitools.jackson.nullable.JsonNullable<String>The human-readable name shown in the UI.getName()The unique identifier of the field.A decimal string representing the field's display order in the UI.org.openapitools.jackson.nullable.JsonNullable<String>When true, users must fill out this field on incidents.For metric tag-type fields only, the metric tag key that powers the autocomplete options.org.openapitools.jackson.nullable.JsonNullable<String>getType()The data type of the field.The list of allowed values for dropdown and multiselect fields.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetCategory(IncidentUserDefinedFieldCategory category) voidsetCategory_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<IncidentUserDefinedFieldCategory> category) voidsetCollected(IncidentUserDefinedFieldCollected collected) voidsetCollected_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<IncidentUserDefinedFieldCollected> collected) voidsetDefaultValue(String defaultValue) voidsetDefaultValue_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> defaultValue) voidsetDisplayName(String displayName) voidvoidsetOrdinal(String ordinal) voidsetOrdinal_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> ordinal) voidsetRequired(Boolean required) voidvoidsetTagKey_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> tagKey) voidvoidsetValidValues(List<IncidentUserDefinedFieldValidValue> validValues) toString()validValues(List<IncidentUserDefinedFieldValidValue> validValues)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_CATEGORY
- See Also:
-
JSON_PROPERTY_COLLECTED
- See Also:
-
JSON_PROPERTY_DEFAULT_VALUE
- See Also:
-
JSON_PROPERTY_DISPLAY_NAME
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_ORDINAL
- See Also:
-
JSON_PROPERTY_REQUIRED
- See Also:
-
JSON_PROPERTY_TAG_KEY
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
JSON_PROPERTY_VALID_VALUES
- See Also:
-
-
Constructor Details
-
IncidentUserDefinedFieldAttributesCreateRequest
public IncidentUserDefinedFieldAttributesCreateRequest() -
IncidentUserDefinedFieldAttributesCreateRequest
public IncidentUserDefinedFieldAttributesCreateRequest(String name, IncidentUserDefinedFieldFieldType type)
-
-
Method Details
-
category
public IncidentUserDefinedFieldAttributesCreateRequest category(IncidentUserDefinedFieldCategory category) -
getCategory
The section in which the field appears: "what_happened" or "why_it_happened". When null, the field appears in the Attributes section.- Returns:
- category
-
getCategory_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<IncidentUserDefinedFieldCategory> getCategory_JsonNullable() -
setCategory_JsonNullable
public void setCategory_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<IncidentUserDefinedFieldCategory> category) -
setCategory
-
collected
public IncidentUserDefinedFieldAttributesCreateRequest collected(IncidentUserDefinedFieldCollected collected) -
getCollected
The lifecycle stage at which the app prompts users to fill out this field. Cannot be set on required fields.- Returns:
- collected
-
getCollected_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<IncidentUserDefinedFieldCollected> getCollected_JsonNullable() -
setCollected_JsonNullable
public void setCollected_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<IncidentUserDefinedFieldCollected> collected) -
setCollected
-
defaultValue
-
getDefaultValue
The default value for the field. Must be one of the valid values when valid_values is set.- Returns:
- defaultValue
-
getDefaultValue_JsonNullable
-
setDefaultValue_JsonNullable
public void setDefaultValue_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> defaultValue) -
setDefaultValue
-
displayName
-
getDisplayName
The human-readable name shown in the UI. Defaults to a formatted version of the name if not provided.- Returns:
- displayName
-
setDisplayName
-
name
-
getName
The unique identifier of the field. Must start with a letter or digit and contain only letters, digits, underscores, or periods.- Returns:
- name
-
setName
-
ordinal
-
getOrdinal
A decimal string representing the field's display order in the UI.- Returns:
- ordinal
-
getOrdinal_JsonNullable
-
setOrdinal_JsonNullable
-
setOrdinal
-
required
-
getRequired
When true, users must fill out this field on incidents.- Returns:
- required
-
setRequired
-
tagKey
-
getTagKey
For metric tag-type fields only, the metric tag key that powers the autocomplete options.- Returns:
- tagKey
-
getTagKey_JsonNullable
-
setTagKey_JsonNullable
-
setTagKey
-
type
-
getType
The data type of the field. 1=dropdown, 2=multiselect, 3=textbox, 4=textarray, 5=metrictag, 6=autocomplete, 7=number, 8=datetime.- Returns:
- type
-
setType
-
validValues
public IncidentUserDefinedFieldAttributesCreateRequest validValues(List<IncidentUserDefinedFieldValidValue> validValues) -
addValidValuesItem
public IncidentUserDefinedFieldAttributesCreateRequest addValidValuesItem(IncidentUserDefinedFieldValidValue validValuesItem) -
getValidValues
The list of allowed values for dropdown and multiselect fields. Limited to 1000 values.- Returns:
- validValues
-
setValidValues
-
putAdditionalProperty
public IncidentUserDefinedFieldAttributesCreateRequest putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- The arbitrary key to setvalue- The associated value- Returns:
- IncidentUserDefinedFieldAttributesCreateRequest
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- The arbitrary key to get- Returns:
- The specific additional property for the given key
-
equals
Return true if this IncidentUserDefinedFieldAttributesCreateRequest object is equal to o. -
hashCode
public int hashCode() -
toString
-