Class WorkObjectFlexpaneParams
java.lang.Object
com.hubspot.slack.client.methods.params.chat.workobject.flexpane.WorkObjectFlexpaneParams
- All Implemented Interfaces:
WorkObjectFlexpaneParamsIF
@Generated(from="WorkObjectFlexpaneParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class WorkObjectFlexpaneParams
extends Object
implements WorkObjectFlexpaneParamsIF
Immutable implementation of
WorkObjectFlexpaneParamsIF.
Use the builder to create immutable instances:
WorkObjectFlexpaneParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeWorkObjectFlexpaneParams. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forWorkObjectFlexpaneParams.static WorkObjectFlexpaneParamscopyOf(WorkObjectFlexpaneParamsIF instance) Creates an immutable copy of aWorkObjectFlexpaneParamsIFvalue.booleanThis instance is equal to all instances ofWorkObjectFlexpaneParamsthat have equal attribute values.getError()inthashCode()Computes a hash code from attributes:triggerId,metadata,isUserAuthRequired,userAuthUrl,error.toString()Prints the immutable valueWorkObjectFlexpaneParamswith attribute values.final WorkObjectFlexpaneParamswithError(WorkObjectFlexpaneError value) Copy the current immutable object by setting a present value for the optionalerrorattribute.final WorkObjectFlexpaneParamswithError(Optional<? extends WorkObjectFlexpaneError> optional) Copy the current immutable object by setting an optional value for theerrorattribute.final WorkObjectFlexpaneParamswithIsUserAuthRequired(Boolean value) Copy the current immutable object by setting a present value for the optionalisUserAuthRequiredattribute.final WorkObjectFlexpaneParamswithIsUserAuthRequired(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for theisUserAuthRequiredattribute.final WorkObjectFlexpaneParamswithMetadata(FlexPaneMetadata value) Copy the current immutable object by setting a value for themetadataattribute.final WorkObjectFlexpaneParamswithTriggerId(String value) Copy the current immutable object by setting a value for thetriggerIdattribute.final WorkObjectFlexpaneParamswithUserAuthUrl(String value) Copy the current immutable object by setting a present value for the optionaluserAuthUrlattribute.final WorkObjectFlexpaneParamswithUserAuthUrl(Optional<String> optional) Copy the current immutable object by setting an optional value for theuserAuthUrlattribute.
-
Method Details
-
getTriggerId
- Specified by:
getTriggerIdin interfaceWorkObjectFlexpaneParamsIF- Returns:
- The value of the
triggerIdattribute
-
getMetadata
- Specified by:
getMetadatain interfaceWorkObjectFlexpaneParamsIF- Returns:
- The value of the
metadataattribute
-
getIsUserAuthRequired
- Specified by:
getIsUserAuthRequiredin interfaceWorkObjectFlexpaneParamsIF- Returns:
- The value of the
isUserAuthRequiredattribute
-
getUserAuthUrl
- Specified by:
getUserAuthUrlin interfaceWorkObjectFlexpaneParamsIF- Returns:
- The value of the
userAuthUrlattribute
-
getError
- Specified by:
getErrorin interfaceWorkObjectFlexpaneParamsIF- Returns:
- The value of the
errorattribute
-
withTriggerId
Copy the current immutable object by setting a value for thetriggerIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for triggerId- Returns:
- A modified copy or the
thisobject
-
withMetadata
Copy the current immutable object by setting a value for themetadataattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for metadata- Returns:
- A modified copy or the
thisobject
-
withIsUserAuthRequired
Copy the current immutable object by setting a present value for the optionalisUserAuthRequiredattribute.- Parameters:
value- The value for isUserAuthRequired,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withIsUserAuthRequired
Copy the current immutable object by setting an optional value for theisUserAuthRequiredattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for isUserAuthRequired- Returns:
- A modified copy or
thisif not changed
-
withUserAuthUrl
Copy the current immutable object by setting a present value for the optionaluserAuthUrlattribute.- Parameters:
value- The value for userAuthUrl,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withUserAuthUrl
Copy the current immutable object by setting an optional value for theuserAuthUrlattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for userAuthUrl- Returns:
- A modified copy or
thisif not changed
-
withError
Copy the current immutable object by setting a present value for the optionalerrorattribute.- Parameters:
value- The value for error,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withError
public final WorkObjectFlexpaneParams withError(Optional<? extends WorkObjectFlexpaneError> optional) Copy the current immutable object by setting an optional value for theerrorattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for error- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofWorkObjectFlexpaneParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:triggerId,metadata,isUserAuthRequired,userAuthUrl,error. -
toString
Prints the immutable valueWorkObjectFlexpaneParamswith attribute values. -
copyOf
Creates an immutable copy of aWorkObjectFlexpaneParamsIFvalue. 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 WorkObjectFlexpaneParams instance
-
builder
Creates a builder forWorkObjectFlexpaneParams.WorkObjectFlexpaneParams.builder() .setTriggerId(String) // requiredtriggerId.setMetadata(com.hubspot.slack.client.methods.params.chat.workobject.flexpane.FlexPaneMetadata) // requiredmetadata.setIsUserAuthRequired(Optional<Boolean>) // optionalisUserAuthRequired.setUserAuthUrl(Optional<String>) // optionaluserAuthUrl.setError(Optional<WorkObjectFlexpaneError>) // optionalerror.build();- Returns:
- A new WorkObjectFlexpaneParams builder
-