@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableTicketType extends TicketType
TicketType
.
Use the builder to create immutable instances:
ImmutableTicketType.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableTicketType.Builder
Builds instances of type
ImmutableTicketType . |
Modifier and Type | Method and Description |
---|---|
static ImmutableTicketType.Builder |
builder()
Creates a builder for
ImmutableTicketType . |
static ImmutableTicketType |
copyOf(TicketType instance)
Creates an immutable copy of a
TicketType value. |
Optional<String> |
description() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableTicketType that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
id , name , description , iconUrl . |
Optional<String> |
iconUrl() |
String |
id() |
String |
name() |
String |
toString()
Prints the immutable value
TicketType with attribute values. |
ImmutableTicketType |
withDescription(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
description attribute. |
ImmutableTicketType |
withDescription(String value)
Copy the current immutable object by setting a present value for the optional
description attribute. |
ImmutableTicketType |
withIconUrl(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
iconUrl attribute. |
ImmutableTicketType |
withIconUrl(String value)
Copy the current immutable object by setting a present value for the optional
iconUrl attribute. |
ImmutableTicketType |
withId(String value)
Copy the current immutable object by setting a value for the
id attribute. |
ImmutableTicketType |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
public String id()
id
in class TicketType
id
attributepublic String name()
name
in class TicketType
name
attributepublic Optional<String> description()
description
in class TicketType
description
attributepublic Optional<String> iconUrl()
iconUrl
in class TicketType
iconUrl
attributepublic final ImmutableTicketType withId(String value)
id
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for idthis
objectpublic final ImmutableTicketType withName(String value)
name
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for namethis
objectpublic final ImmutableTicketType withDescription(String value)
description
attribute.value
- The value for descriptionthis
objectpublic final ImmutableTicketType withDescription(Optional<String> optional)
description
attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this
.optional
- A value for descriptionthis
objectpublic final ImmutableTicketType withIconUrl(String value)
iconUrl
attribute.value
- The value for iconUrlthis
objectpublic final ImmutableTicketType withIconUrl(Optional<String> optional)
iconUrl
attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this
.optional
- A value for iconUrlthis
objectpublic boolean equals(@Nullable Object another)
ImmutableTicketType
that have equal attribute values.public int hashCode()
id
, name
, description
, iconUrl
.public String toString()
TicketType
with attribute values.public static ImmutableTicketType copyOf(TicketType instance)
TicketType
value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance
- The instance to copypublic static ImmutableTicketType.Builder builder()
ImmutableTicketType
.
ImmutableTicketType.builder() .setId(String) // requiredid
.setName(String) // requiredname
.setDescription(String) // optionaldescription
.setIconUrl(String) // optionaliconUrl
.build();
Copyright © 2023 Atlassian. All rights reserved.