Class ImmutableApiKeyResponse
java.lang.Object
com.iland.core.web.rest.response.iam.ImmutableApiKeyResponse
- All Implemented Interfaces:
ApiKeyResponse
@Generated(from="ApiKeyResponse",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableApiKeyResponse
extends Object
implements ApiKeyResponse
Immutable implementation of
ApiKeyResponse.
Use the builder to create immutable instances:
ImmutableApiKeyResponse.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableApiKeyResponse. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableApiKeyResponse.clientId()The clientId represents the client keyThe clientSecret represents secret generated in keycloakThe crmId of the company requesting the api keysstatic ImmutableApiKeyResponsecopyOf(ApiKeyResponse instance) Creates an immutable copy of aApiKeyResponsevalue.The description of the client set by the company adminbooleanThis instance is equal to all instances ofImmutableApiKeyResponsethat have equal attribute values.inthashCode()Computes a hash code from attributes:companyId,clientId,id,clientSecret,description.id()The id represents client in keycloaktoString()Prints the immutable valueApiKeyResponsewith attribute values.final ImmutableApiKeyResponsewithClientId(String value) Copy the current immutable object by setting a value for theclientIdattribute.final ImmutableApiKeyResponsewithClientSecret(String value) Copy the current immutable object by setting a value for theclientSecretattribute.final ImmutableApiKeyResponsewithCompanyId(String value) Copy the current immutable object by setting a value for thecompanyIdattribute.final ImmutableApiKeyResponsewithDescription(String value) Copy the current immutable object by setting a present value for the optionaldescriptionattribute.final ImmutableApiKeyResponsewithDescription(Optional<String> optional) Copy the current immutable object by setting an optional value for thedescriptionattribute.final ImmutableApiKeyResponseCopy the current immutable object by setting a value for theidattribute.
-
Method Details
-
companyId
The crmId of the company requesting the api keys- Specified by:
companyIdin interfaceApiKeyResponse
-
clientId
The clientId represents the client key- Specified by:
clientIdin interfaceApiKeyResponse
-
id
The id represents client in keycloak- Specified by:
idin interfaceApiKeyResponse
-
clientSecret
The clientSecret represents secret generated in keycloak- Specified by:
clientSecretin interfaceApiKeyResponse
-
description
The description of the client set by the company admin- Specified by:
descriptionin interfaceApiKeyResponse
-
withCompanyId
Copy the current immutable object by setting a value for thecompanyIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for companyId- Returns:
- A modified copy of the
thisobject
-
withClientId
Copy the current immutable object by setting a value for theclientIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for clientId- Returns:
- A modified copy of the
thisobject
-
withId
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- Returns:
- A modified copy of the
thisobject
-
withClientSecret
Copy the current immutable object by setting a value for theclientSecretattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for clientSecret- Returns:
- A modified copy of the
thisobject
-
withDescription
Copy the current immutable object by setting a present value for the optionaldescriptionattribute.- Parameters:
value- The value for description- Returns:
- A modified copy of
thisobject
-
withDescription
Copy the current immutable object by setting an optional value for thedescriptionattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for description- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableApiKeyResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:companyId,clientId,id,clientSecret,description. -
toString
Prints the immutable valueApiKeyResponsewith attribute values. -
copyOf
Creates an immutable copy of aApiKeyResponsevalue. 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 ApiKeyResponse instance
-
builder
Creates a builder forImmutableApiKeyResponse.ImmutableApiKeyResponse.builder() .companyId(String) // requiredcompanyId.clientId(String) // requiredclientId.id(String) // requiredid.clientSecret(String) // requiredclientSecret.description(String) // optionaldescription.build();- Returns:
- A new ImmutableApiKeyResponse builder
-