Class SlackAction
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1beta1.SlackAction
-
- All Implemented Interfaces:
Editable<SlackActionBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class SlackAction extends Object implements Editable<SlackActionBuilder>, KubernetesResource
SlackAction configures a single Slack action that is sent with each notification. See https://api.slack.com/docs/message-attachments#action_fields and https://api.slack.com/docs/message-buttons for more information.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SlackAction()No args constructor for use in serializationSlackAction(SlackConfirmationField confirm, String name, String style, String text, String type, String url, String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SlackActionBuilderedit()Map<String,Object>getAdditionalProperties()SlackConfirmationFieldgetConfirm()SlackAction configures a single Slack action that is sent with each notification.StringgetName()name defines a unique identifier for the action within the message.StringgetStyle()style defines the visual appearance of the action element.StringgetText()text defines the user-visible label displayed on the action element.StringgetType()type defines the type of interactive component.StringgetUrl()url defines the URL to open when the action is triggered.StringgetValue()value defines the payload sent when the action is triggered.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetConfirm(SlackConfirmationField confirm)SlackAction configures a single Slack action that is sent with each notification.voidsetName(String name)name defines a unique identifier for the action within the message.voidsetStyle(String style)style defines the visual appearance of the action element.voidsetText(String text)text defines the user-visible label displayed on the action element.voidsetType(String type)type defines the type of interactive component.voidsetUrl(String url)url defines the URL to open when the action is triggered.voidsetValue(String value)value defines the payload sent when the action is triggered.SlackActionBuildertoBuilder()
-
-
-
Method Detail
-
getConfirm
public SlackConfirmationField getConfirm()
SlackAction configures a single Slack action that is sent with each notification. See https://api.slack.com/docs/message-attachments#action_fields and https://api.slack.com/docs/message-buttons for more information.
-
setConfirm
public void setConfirm(SlackConfirmationField confirm)
SlackAction configures a single Slack action that is sent with each notification. See https://api.slack.com/docs/message-attachments#action_fields and https://api.slack.com/docs/message-buttons for more information.
-
getName
public String getName()
name defines a unique identifier for the action within the message. This value is sent back to your application when the action is triggered.
-
setName
public void setName(String name)
name defines a unique identifier for the action within the message. This value is sent back to your application when the action is triggered.
-
getStyle
public String getStyle()
style defines the visual appearance of the action element. Valid values include "default", "primary" (green), and "danger" (red).
-
setStyle
public void setStyle(String style)
style defines the visual appearance of the action element. Valid values include "default", "primary" (green), and "danger" (red).
-
getText
public String getText()
text defines the user-visible label displayed on the action element. For buttons, this is the button text. For select menus, this is the placeholder text.
-
setText
public void setText(String text)
text defines the user-visible label displayed on the action element. For buttons, this is the button text. For select menus, this is the placeholder text.
-
getType
public String getType()
type defines the type of interactive component. Common values include "button" for clickable buttons and "select" for dropdown menus.
-
setType
public void setType(String type)
type defines the type of interactive component. Common values include "button" for clickable buttons and "select" for dropdown menus.
-
getUrl
public String getUrl()
url defines the URL to open when the action is triggered. Only applicable for button-type actions. When set, clicking the button opens this URL.
-
setUrl
public void setUrl(String url)
url defines the URL to open when the action is triggered. Only applicable for button-type actions. When set, clicking the button opens this URL.
-
getValue
public String getValue()
value defines the payload sent when the action is triggered. This data is included in the callback sent to your application.
-
setValue
public void setValue(String value)
value defines the payload sent when the action is triggered. This data is included in the callback sent to your application.
-
edit
public SlackActionBuilder edit()
- Specified by:
editin interfaceEditable<SlackActionBuilder>
-
toBuilder
public SlackActionBuilder toBuilder()
-
-