Class FullSizePreviewError
java.lang.Object
com.hubspot.slack.client.methods.params.chat.workobject.entity.fullsizepreview.FullSizePreviewError
- All Implemented Interfaces:
FullSizePreviewErrorIF
@Generated(from="FullSizePreviewErrorIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class FullSizePreviewError
extends Object
implements FullSizePreviewErrorIF
Immutable implementation of
FullSizePreviewErrorIF.
Use the builder to create immutable instances:
FullSizePreviewError.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeFullSizePreviewError. -
Method Summary
Modifier and TypeMethodDescriptionstatic FullSizePreviewError.Builderbuilder()Creates a builder forFullSizePreviewError.static FullSizePreviewErrorcopyOf(FullSizePreviewErrorIF instance) Creates an immutable copy of aFullSizePreviewErrorIFvalue.booleanThis instance is equal to all instances ofFullSizePreviewErrorthat have equal attribute values.getCode()inthashCode()Computes a hash code from attributes:code,message.toString()Prints the immutable valueFullSizePreviewErrorwith attribute values.final FullSizePreviewErrorwithCode(FullSizePreviewErrorCode value) Copy the current immutable object by setting a value for thecodeattribute.final FullSizePreviewErrorwithMessage(String value) Copy the current immutable object by setting a value for themessageattribute.
-
Method Details
-
getCode
- Specified by:
getCodein interfaceFullSizePreviewErrorIF- Returns:
- The value of the
codeattribute
-
getMessage
- Specified by:
getMessagein interfaceFullSizePreviewErrorIF- Returns:
- The value of the
messageattribute
-
withCode
Copy the current immutable object by setting a value for thecodeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for code- Returns:
- A modified copy or the
thisobject
-
withMessage
Copy the current immutable object by setting a value for themessageattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for message- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofFullSizePreviewErrorthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:code,message. -
toString
Prints the immutable valueFullSizePreviewErrorwith attribute values. -
copyOf
Creates an immutable copy of aFullSizePreviewErrorIFvalue. 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 FullSizePreviewError instance
-
builder
Creates a builder forFullSizePreviewError.FullSizePreviewError.builder() .setCode(com.hubspot.slack.client.methods.params.chat.workobject.entity.fullsizepreview.FullSizePreviewErrorCode) // requiredcode.setMessage(String) // requiredmessage.build();- Returns:
- A new FullSizePreviewError builder
-