Class WorkObjectFlexpaneError
java.lang.Object
com.hubspot.slack.client.methods.params.chat.workobject.flexpane.WorkObjectFlexpaneError
- All Implemented Interfaces:
WorkObjectFlexpaneErrorIF
@Generated(from="WorkObjectFlexpaneErrorIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class WorkObjectFlexpaneError
extends Object
implements WorkObjectFlexpaneErrorIF
Immutable implementation of
WorkObjectFlexpaneErrorIF.
Use the builder to create immutable instances:
WorkObjectFlexpaneError.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeWorkObjectFlexpaneError. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forWorkObjectFlexpaneError.static WorkObjectFlexpaneErrorcopyOf(WorkObjectFlexpaneErrorIF instance) Creates an immutable copy of aWorkObjectFlexpaneErrorIFvalue.booleanThis instance is equal to all instances ofWorkObjectFlexpaneErrorthat have equal attribute values.inthashCode()Computes a hash code from attributes:status,customTitle,customMessage,messageFormat,actions.toString()Prints the immutable valueWorkObjectFlexpaneErrorwith attribute values.final WorkObjectFlexpaneErrorwithActions(WorkObjectAction... elements) Copy the current immutable object with elements that replace the content ofactions.final WorkObjectFlexpaneErrorwithActions(Iterable<? extends WorkObjectAction> elements) Copy the current immutable object with elements that replace the content ofactions.final WorkObjectFlexpaneErrorwithCustomMessage(String value) Copy the current immutable object by setting a present value for the optionalcustomMessageattribute.final WorkObjectFlexpaneErrorwithCustomMessage(Optional<String> optional) Copy the current immutable object by setting an optional value for thecustomMessageattribute.final WorkObjectFlexpaneErrorwithCustomTitle(String value) Copy the current immutable object by setting a present value for the optionalcustomTitleattribute.final WorkObjectFlexpaneErrorwithCustomTitle(Optional<String> optional) Copy the current immutable object by setting an optional value for thecustomTitleattribute.final WorkObjectFlexpaneErrorwithMessageFormat(MessageFormat value) Copy the current immutable object by setting a value for themessageFormatattribute.final WorkObjectFlexpaneErrorCopy the current immutable object by setting a value for thestatusattribute.
-
Method Details
-
getStatus
- Specified by:
getStatusin interfaceWorkObjectFlexpaneErrorIF- Returns:
- The value of the
statusattribute
-
getCustomTitle
- Specified by:
getCustomTitlein interfaceWorkObjectFlexpaneErrorIF- Returns:
- The value of the
customTitleattribute
-
getCustomMessage
- Specified by:
getCustomMessagein interfaceWorkObjectFlexpaneErrorIF- Returns:
- The value of the
customMessageattribute
-
getMessageFormat
- Specified by:
getMessageFormatin interfaceWorkObjectFlexpaneErrorIF- Returns:
- The value of the
messageFormatattribute
-
getActions
- Specified by:
getActionsin interfaceWorkObjectFlexpaneErrorIF- Returns:
- The value of the
actionsattribute
-
withStatus
Copy the current immutable object by setting a value for thestatusattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for status- Returns:
- A modified copy or the
thisobject
-
withCustomTitle
Copy the current immutable object by setting a present value for the optionalcustomTitleattribute.- Parameters:
value- The value for customTitle,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withCustomTitle
Copy the current immutable object by setting an optional value for thecustomTitleattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for customTitle- Returns:
- A modified copy or
thisif not changed
-
withCustomMessage
Copy the current immutable object by setting a present value for the optionalcustomMessageattribute.- Parameters:
value- The value for customMessage,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withCustomMessage
Copy the current immutable object by setting an optional value for thecustomMessageattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for customMessage- Returns:
- A modified copy or
thisif not changed
-
withMessageFormat
Copy the current immutable object by setting a value for themessageFormatattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for messageFormat- Returns:
- A modified copy or the
thisobject
-
withActions
Copy the current immutable object with elements that replace the content ofactions.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withActions
Copy the current immutable object with elements that replace the content ofactions. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of actions elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofWorkObjectFlexpaneErrorthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:status,customTitle,customMessage,messageFormat,actions. -
toString
Prints the immutable valueWorkObjectFlexpaneErrorwith attribute values. -
copyOf
Creates an immutable copy of aWorkObjectFlexpaneErrorIFvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable WorkObjectFlexpaneError instance
-
builder
Creates a builder forWorkObjectFlexpaneError.WorkObjectFlexpaneError.builder() .setStatus(com.hubspot.slack.client.methods.params.chat.workobject.flexpane.WorkObjectFlexpaneErrorStatus) // requiredstatus.setCustomTitle(Optional<String>) // optionalcustomTitle.setCustomMessage(Optional<String>) // optionalcustomMessage.setMessageFormat(com.hubspot.slack.client.methods.params.chat.workobject.flexpane.MessageFormat) // requiredmessageFormat.addActions|addAllActions(com.hubspot.slack.client.methods.params.chat.workobject.actions.WorkObjectAction) //actionselements .build();- Returns:
- A new WorkObjectFlexpaneError builder
-