@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","SlackTeamIF"}) @Immutable public final class SlackTeam extends Object implements SlackTeamIF
SlackTeamIF.
Use the builder to create immutable instances:
SlackTeam.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
SlackTeam.Builder
Builds instances of type
SlackTeam. |
| Modifier and Type | Method and Description |
|---|---|
static SlackTeam.Builder |
builder()
Creates a builder for
SlackTeam. |
static SlackTeam |
copyOf(SlackTeamIF instance)
Creates an immutable copy of a
SlackTeamIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SlackTeam that have equal attribute values. |
String |
getDomain() |
Optional<String> |
getEnterpriseId() |
Optional<String> |
getEnterpriseName() |
String |
getId() |
int |
hashCode()
Computes a hash code from attributes:
id, domain, enterpriseId, enterpriseName. |
String |
toString()
Prints the immutable value
SlackTeam with attribute values. |
SlackTeam |
withDomain(String domain)
Copy the current immutable object by setting a value for the
domain attribute. |
SlackTeam |
withEnterpriseId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
enterpriseId attribute. |
SlackTeam |
withEnterpriseId(String value)
Copy the current immutable object by setting a present value for the optional
enterpriseId attribute. |
SlackTeam |
withEnterpriseName(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
enterpriseName attribute. |
SlackTeam |
withEnterpriseName(String value)
Copy the current immutable object by setting a present value for the optional
enterpriseName attribute. |
SlackTeam |
withId(String id)
Copy the current immutable object by setting a value for the
id attribute. |
public String getId()
getId in interface SlackTeamIFid attributepublic String getDomain()
getDomain in interface SlackTeamIFdomain attributepublic Optional<String> getEnterpriseId()
getEnterpriseId in interface SlackTeamIFenterpriseId attributepublic Optional<String> getEnterpriseName()
getEnterpriseName in interface SlackTeamIFenterpriseName attributepublic final SlackTeam withId(String id)
id attribute.
An equals check used to prevent copying of the same value by returning this.id - A new value for idthis objectpublic final SlackTeam withDomain(String domain)
domain attribute.
An equals check used to prevent copying of the same value by returning this.domain - A new value for domainthis objectpublic final SlackTeam withEnterpriseId(@Nullable String value)
enterpriseId attribute.value - The value for enterpriseId, null is accepted as java.util.Optional.empty()this objectpublic final SlackTeam withEnterpriseId(Optional<String> optional)
enterpriseId attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for enterpriseIdthis objectpublic final SlackTeam withEnterpriseName(@Nullable String value)
enterpriseName attribute.value - The value for enterpriseName, null is accepted as java.util.Optional.empty()this objectpublic final SlackTeam withEnterpriseName(Optional<String> optional)
enterpriseName attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for enterpriseNamethis objectpublic boolean equals(@Nullable Object another)
SlackTeam that have equal attribute values.public int hashCode()
id, domain, enterpriseId, enterpriseName.public String toString()
SlackTeam with attribute values.public static SlackTeam copyOf(SlackTeamIF instance)
SlackTeamIF 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 SlackTeam.Builder builder()
SlackTeam.Copyright © 2019. All rights reserved.