Class CallsUpdateResponse
java.lang.Object
com.hubspot.slack.client.models.response.calls.CallsUpdateResponse
- All Implemented Interfaces:
CallsUpdateResponseIF,SlackResponse
@Generated(from="CallsUpdateResponseIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class CallsUpdateResponse
extends Object
implements CallsUpdateResponseIF
Immutable implementation of
CallsUpdateResponseIF.
Use the builder to create immutable instances:
CallsUpdateResponse.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeCallsUpdateResponse. -
Method Summary
Modifier and TypeMethodDescriptionstatic CallsUpdateResponse.Builderbuilder()Creates a builder forCallsUpdateResponse.static CallsUpdateResponsecopyOf(CallsUpdateResponseIF instance) Creates an immutable copy of aCallsUpdateResponseIFvalue.booleanThis instance is equal to all instances ofCallsUpdateResponsethat have equal attribute values.getCall()inthashCode()Computes a hash code from attributes:ok,responseMetadata,call.booleanisOk()toString()Prints the immutable valueCallsUpdateResponsewith attribute values.final CallsUpdateResponseCopy the current immutable object by setting a value for thecallattribute.final CallsUpdateResponsewithOk(boolean value) Copy the current immutable object by setting a value for theokattribute.final CallsUpdateResponseCopy the current immutable object by setting a present value for the optionalresponseMetadataattribute.final CallsUpdateResponsewithResponseMetadata(Optional<? extends ResponseMetadata> optional) Copy the current immutable object by setting an optional value for theresponseMetadataattribute.
-
Method Details
-
isOk
public boolean isOk()- Specified by:
isOkin interfaceSlackResponse- Returns:
- The value of the
okattribute
-
getResponseMetadata
- Specified by:
getResponseMetadatain interfaceSlackResponse- Returns:
- The value of the
responseMetadataattribute
-
getCall
- Specified by:
getCallin interfaceCallsUpdateResponseIF- Returns:
- The value of the
callattribute
-
withOk
Copy the current immutable object by setting a value for theokattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for ok- Returns:
- A modified copy or the
thisobject
-
withResponseMetadata
Copy the current immutable object by setting a present value for the optionalresponseMetadataattribute.- Parameters:
value- The value for responseMetadata,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withResponseMetadata
public final CallsUpdateResponse withResponseMetadata(Optional<? extends ResponseMetadata> optional) Copy the current immutable object by setting an optional value for theresponseMetadataattribute. 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 responseMetadata- Returns:
- A modified copy or
thisif not changed
-
withCall
Copy the current immutable object by setting a value for thecallattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for call- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofCallsUpdateResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:ok,responseMetadata,call. -
toString
Prints the immutable valueCallsUpdateResponsewith attribute values. -
copyOf
Creates an immutable copy of aCallsUpdateResponseIFvalue. 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 CallsUpdateResponse instance
-
builder
Creates a builder forCallsUpdateResponse.CallsUpdateResponse.builder() .setOk(boolean) // requiredok.setResponseMetadata(Optional<ResponseMetadata>) // optionalresponseMetadata.setCall(com.hubspot.slack.client.models.calls.SlackCall) // requiredcall.build();- Returns:
- A new CallsUpdateResponse builder
-