@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutablePolicyLink extends Token.PolicyLink
Token.PolicyLink.
Use the builder to create immutable instances:
ImmutablePolicyLink.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutablePolicyLink.Builder
Builds instances of type
ImmutablePolicyLink. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutablePolicyLink.Builder |
builder()
Creates a builder for
ImmutablePolicyLink. |
static ImmutablePolicyLink |
copyOf(Token.PolicyLink instance)
Creates an immutable copy of a
Token.PolicyLink value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutablePolicyLink that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
id, name. |
Optional<String> |
id() |
Optional<String> |
name() |
String |
toString()
Prints the immutable value
PolicyLink with attribute values. |
ImmutablePolicyLink |
withId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
id attribute. |
ImmutablePolicyLink |
withId(String value)
Copy the current immutable object by setting a present value for the optional
id attribute. |
ImmutablePolicyLink |
withName(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
name attribute. |
ImmutablePolicyLink |
withName(String value)
Copy the current immutable object by setting a present value for the optional
name attribute. |
public Optional<String> id()
id in class Token.PolicyLinkid attributepublic Optional<String> name()
name in class Token.PolicyLinkname attributepublic final ImmutablePolicyLink withId(String value)
id attribute.value - The value for idthis objectpublic final ImmutablePolicyLink withId(Optional<String> optional)
id attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for idthis objectpublic final ImmutablePolicyLink withName(String value)
name attribute.value - The value for namethis objectpublic final ImmutablePolicyLink withName(Optional<String> optional)
name attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for namethis objectpublic boolean equals(@Nullable Object another)
ImmutablePolicyLink that have equal attribute values.public int hashCode()
id, name.public String toString()
PolicyLink with attribute values.public static ImmutablePolicyLink copyOf(Token.PolicyLink instance)
Token.PolicyLink 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 ImmutablePolicyLink.Builder builder()
ImmutablePolicyLink.
ImmutablePolicyLink.builder()
.id(String) // optional id
.name(String) // optional name
.build();
Copyright © 2019. All rights reserved.