Class SlackField
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1beta1.SlackField
-
- All Implemented Interfaces:
Editable<SlackFieldBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class SlackField extends Object implements Editable<SlackFieldBuilder>, KubernetesResource
SlackField configures a single Slack field that is sent with each notification. Each field must contain a title, value, and optionally, a boolean value to indicate if the field is short enough to be displayed next to other fields designated as short. See https://api.slack.com/docs/message-attachments#fields for more information.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SlackField()No args constructor for use in serializationSlackField(Boolean _short, String title, String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SlackFieldBuilderedit()Map<String,Object>getAdditionalProperties()BooleangetShort()short determines whether this field can be displayed alongside other short fields.StringgetTitle()title defines the label or header text displayed for this field.StringgetValue()value defines the content or data displayed for this field.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetShort(Boolean _short)short determines whether this field can be displayed alongside other short fields.voidsetTitle(String title)title defines the label or header text displayed for this field.voidsetValue(String value)value defines the content or data displayed for this field.SlackFieldBuildertoBuilder()
-
-
-
Method Detail
-
getShort
public Boolean getShort()
short determines whether this field can be displayed alongside other short fields. When true, Slack may display this field side by side with other short fields. When false or not specified, the field takes the full width of the message.
-
setShort
public void setShort(Boolean _short)
short determines whether this field can be displayed alongside other short fields. When true, Slack may display this field side by side with other short fields. When false or not specified, the field takes the full width of the message.
-
getTitle
public String getTitle()
title defines the label or header text displayed for this field. This appears as bold text above the field value in the Slack message.
-
setTitle
public void setTitle(String title)
title defines the label or header text displayed for this field. This appears as bold text above the field value in the Slack message.
-
getValue
public String getValue()
value defines the content or data displayed for this field. This appears below the title and can contain plain text or Slack markdown.
-
setValue
public void setValue(String value)
value defines the content or data displayed for this field. This appears below the title and can contain plain text or Slack markdown.
-
edit
public SlackFieldBuilder edit()
- Specified by:
editin interfaceEditable<SlackFieldBuilder>
-
toBuilder
public SlackFieldBuilder toBuilder()
-
-