Class ViewEmailInput
java.lang.Object
com.hubspot.slack.client.models.interaction.views.ViewEmailInput
- All Implemented Interfaces:
ViewEmailInputIF,ViewInput
@Generated(from="ViewEmailInputIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ViewEmailInput
extends Object
implements ViewEmailInputIF
Immutable implementation of
ViewEmailInputIF.
Use the builder to create immutable instances:
ViewEmailInput.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ViewEmailInput.Builderbuilder()Creates a builder forViewEmailInput.static ViewEmailInputcopyOf(ViewEmailInputIF instance) Creates an immutable copy of aViewEmailInputIFvalue.booleanThis instance is equal to all instances ofViewEmailInputthat have equal attribute values.getType()getValue()inthashCode()Computes a hash code from attributes:type,value.toString()Prints the immutable valueViewEmailInputwith attribute values.final ViewEmailInputwithType(ViewInputType value) Copy the current immutable object by setting a value for thetypeattribute.final ViewEmailInputCopy the current immutable object by setting a present value for the optionalvalueattribute.final ViewEmailInputCopy the current immutable object by setting an optional value for thevalueattribute.Methods inherited from interface com.hubspot.slack.client.models.interaction.views.ViewEmailInputIF
getStringValue
-
Method Details
-
getType
-
getValue
- Specified by:
getValuein interfaceViewEmailInputIF- Returns:
- The value of the
valueattribute
-
withType
Copy the current immutable object by setting a value for thetypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy or the
thisobject
-
withValue
Copy the current immutable object by setting a present value for the optionalvalueattribute.- Parameters:
value- The value for value,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withValue
Copy the current immutable object by setting an optional value for thevalueattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for value- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofViewEmailInputthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,value. -
toString
Prints the immutable valueViewEmailInputwith attribute values. -
copyOf
Creates an immutable copy of aViewEmailInputIFvalue. 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 ViewEmailInput instance
-
builder
Creates a builder forViewEmailInput.ViewEmailInput.builder() .setType(com.hubspot.slack.client.models.interaction.views.ViewInputType) // requiredtype.setValue(Optional<String>) // optionalvalue.build();- Returns:
- A new ViewEmailInput builder
-