Class ImmutableUserBillingPermissionResponse
java.lang.Object
com.iland.core.web.rest.response.iam.ImmutableUserBillingPermissionResponse
- All Implemented Interfaces:
UserBillingPermissionResponse
@Generated(from="UserBillingPermissionResponse",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableUserBillingPermissionResponse
extends Object
implements UserBillingPermissionResponse
Immutable implementation of
UserBillingPermissionResponse.
Use the builder to create immutable instances:
ImmutableUserBillingPermissionResponse.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableUserBillingPermissionResponse. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableUserBillingPermissionResponse.copyOf(UserBillingPermissionResponse instance) Creates an immutable copy of aUserBillingPermissionResponsevalue.com.google.common.collect.ImmutableList<UserInventoryEntityResponse>The list of inventory entities the user can use with the billing permission.booleanThis instance is equal to all instances ofImmutableUserBillingPermissionResponsethat have equal attribute values.inthashCode()Computes a hash code from attributes:permission,entitiesForPermission.The name of the billing permission.toString()Prints the immutable valueUserBillingPermissionResponsewith attribute values.withEntitiesForPermission(UserInventoryEntityResponse... elements) Copy the current immutable object with elements that replace the content ofentitiesForPermission.withEntitiesForPermission(Iterable<? extends UserInventoryEntityResponse> elements) Copy the current immutable object with elements that replace the content ofentitiesForPermission.withPermission(String value) Copy the current immutable object by setting a value for thepermissionattribute.
-
Method Details
-
permission
The name of the billing permission.- Specified by:
permissionin interfaceUserBillingPermissionResponse
-
entitiesForPermission
The list of inventory entities the user can use with the billing permission.- Specified by:
entitiesForPermissionin interfaceUserBillingPermissionResponse
-
withPermission
Copy the current immutable object by setting a value for thepermissionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for permission- Returns:
- A modified copy of the
thisobject
-
withEntitiesForPermission
public final ImmutableUserBillingPermissionResponse withEntitiesForPermission(UserInventoryEntityResponse... elements) Copy the current immutable object with elements that replace the content ofentitiesForPermission.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withEntitiesForPermission
public final ImmutableUserBillingPermissionResponse withEntitiesForPermission(Iterable<? extends UserInventoryEntityResponse> elements) Copy the current immutable object with elements that replace the content ofentitiesForPermission. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of entitiesForPermission elements to set- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableUserBillingPermissionResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:permission,entitiesForPermission. -
toString
Prints the immutable valueUserBillingPermissionResponsewith attribute values. -
copyOf
Creates an immutable copy of aUserBillingPermissionResponsevalue. 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 UserBillingPermissionResponse instance
-
builder
Creates a builder forImmutableUserBillingPermissionResponse.ImmutableUserBillingPermissionResponse.builder() .permission(String) // requiredpermission.addEntitiesForPermission|addAllEntitiesForPermission(com.iland.core.web.rest.response.iam.UserInventoryEntityResponse) //entitiesForPermissionelements .build();- Returns:
- A new ImmutableUserBillingPermissionResponse builder
-