Class FlexPaneMetadata
java.lang.Object
com.hubspot.slack.client.methods.params.chat.workobject.flexpane.FlexPaneMetadata
- All Implemented Interfaces:
FlexPaneMetadataIF,WorkObjectBase
@Generated(from="FlexPaneMetadataIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class FlexPaneMetadata
extends Object
implements FlexPaneMetadataIF
Immutable implementation of
FlexPaneMetadataIF.
Use the builder to create immutable instances:
FlexPaneMetadata.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic FlexPaneMetadata.Builderbuilder()Creates a builder forFlexPaneMetadata.static FlexPaneMetadatacopyOf(FlexPaneMetadataIF instance) Creates an immutable copy of aFlexPaneMetadataIFvalue.booleanThis instance is equal to all instances ofFlexPaneMetadatathat have equal attribute values.getUrl()inthashCode()Computes a hash code from attributes:entityType,entityPayload,url,externalRef.toString()Prints the immutable valueFlexPaneMetadatawith attribute values.final FlexPaneMetadatawithEntityPayload(EntityPayload value) Copy the current immutable object by setting a value for theentityPayloadattribute.final FlexPaneMetadatawithEntityType(EntityType value) Copy the current immutable object by setting a value for theentityTypeattribute.final FlexPaneMetadatawithExternalRef(ExternalRef value) Copy the current immutable object by setting a value for theexternalRefattribute.final FlexPaneMetadataCopy the current immutable object by setting a value for theurlattribute.
-
Method Details
-
getEntityType
- Specified by:
getEntityTypein interfaceWorkObjectBase- Returns:
- The value of the
entityTypeattribute
-
getEntityPayload
- Specified by:
getEntityPayloadin interfaceWorkObjectBase- Returns:
- The value of the
entityPayloadattribute
-
getUrl
- Specified by:
getUrlin interfaceWorkObjectBase- Returns:
- The value of the
urlattribute
-
getExternalRef
- Specified by:
getExternalRefin interfaceWorkObjectBase- Returns:
- The value of the
externalRefattribute
-
withEntityType
Copy the current immutable object by setting a value for theentityTypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for entityType- Returns:
- A modified copy or the
thisobject
-
withEntityPayload
Copy the current immutable object by setting a value for theentityPayloadattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for entityPayload- Returns:
- A modified copy or the
thisobject
-
withUrl
Copy the current immutable object by setting a value for theurlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for url- Returns:
- A modified copy or the
thisobject
-
withExternalRef
Copy the current immutable object by setting a value for theexternalRefattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for externalRef- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofFlexPaneMetadatathat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:entityType,entityPayload,url,externalRef. -
toString
Prints the immutable valueFlexPaneMetadatawith attribute values. -
copyOf
Creates an immutable copy of aFlexPaneMetadataIFvalue. 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 FlexPaneMetadata instance
-
builder
Creates a builder forFlexPaneMetadata.FlexPaneMetadata.builder() .setEntityType(com.hubspot.slack.client.methods.params.chat.workobject.EntityType) // requiredentityType.setEntityPayload(com.hubspot.slack.client.methods.params.chat.workobject.entity.EntityPayload) // requiredentityPayload.setUrl(String) // requiredurl.setExternalRef(com.hubspot.slack.client.methods.params.chat.workobject.ExternalRef) // requiredexternalRef.build();- Returns:
- A new FlexPaneMetadata builder
-