Class ImmutableO365TeamFileResponse
java.lang.Object
com.iland.core.web.rest.response.vbo.ImmutableO365TeamFileResponse
- All Implemented Interfaces:
O365TeamFileResponse,O365TeamItemResponse
@Generated(from="O365TeamFileResponse",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableO365TeamFileResponse
extends Object
implements O365TeamFileResponse
Immutable implementation of
O365TeamFileResponse.
Use the builder to create immutable instances:
ImmutableO365TeamFileResponse.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableO365TeamFileResponse. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableO365TeamFileResponse.copyOf(O365TeamFileResponse instance) Creates an immutable copy of aO365TeamFileResponsevalue.booleanThis instance is equal to all instances ofImmutableO365TeamFileResponsethat have equal attribute values.inthashCode()Computes a hash code from attributes:nativeId,name,sizeBytes,version,modifiedBy,modified,parentId,type.modified()The Date and time of the last modification of the file.The name of the user who performed the latest modification of the file.name()The file name.nativeId()The native VBO id for this Team item.parentId()The parent folder ID of the sub file/folder.longThe file size.toString()Prints the immutable valueO365TeamFileResponsewith attribute values.type()The Type of the Microsoft Teams File (File, Folder).version()The Version of the file in the backup.withModified(Instant value) Copy the current immutable object by setting a value for themodifiedattribute.withModifiedBy(String value) Copy the current immutable object by setting a value for themodifiedByattribute.Copy the current immutable object by setting a value for thenameattribute.withNativeId(String value) Copy the current immutable object by setting a value for thenativeIdattribute.withParentId(String value) Copy the current immutable object by setting a present value for the optionalparentIdattribute.withParentId(Optional<String> optional) Copy the current immutable object by setting an optional value for theparentIdattribute.withSizeBytes(long value) Copy the current immutable object by setting a value for thesizeBytesattribute.Copy the current immutable object by setting a value for thetypeattribute.withVersion(String value) Copy the current immutable object by setting a value for theversionattribute.
-
Method Details
-
nativeId
The native VBO id for this Team item.- Specified by:
nativeIdin interfaceO365TeamItemResponse
-
name
The file name.- Specified by:
namein interfaceO365TeamFileResponse
-
sizeBytes
public long sizeBytes()The file size.- Specified by:
sizeBytesin interfaceO365TeamFileResponse
-
version
The Version of the file in the backup.- Specified by:
versionin interfaceO365TeamFileResponse
-
modifiedBy
The name of the user who performed the latest modification of the file.- Specified by:
modifiedByin interfaceO365TeamFileResponse
-
modified
The Date and time of the last modification of the file.- Specified by:
modifiedin interfaceO365TeamFileResponse
-
parentId
The parent folder ID of the sub file/folder.- Specified by:
parentIdin interfaceO365TeamFileResponse
-
type
The Type of the Microsoft Teams File (File, Folder).- Specified by:
typein interfaceO365TeamFileResponse
-
withNativeId
Copy the current immutable object by setting a value for thenativeIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for nativeId- Returns:
- A modified copy of the
thisobject
-
withName
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name- Returns:
- A modified copy of the
thisobject
-
withSizeBytes
Copy the current immutable object by setting a value for thesizeBytesattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for sizeBytes- Returns:
- A modified copy of the
thisobject
-
withVersion
Copy the current immutable object by setting a value for theversionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for version- Returns:
- A modified copy of the
thisobject
-
withModifiedBy
Copy the current immutable object by setting a value for themodifiedByattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for modifiedBy- Returns:
- A modified copy of the
thisobject
-
withModified
Copy the current immutable object by setting a value for themodifiedattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for modified- Returns:
- A modified copy of the
thisobject
-
withParentId
Copy the current immutable object by setting a present value for the optionalparentIdattribute.- Parameters:
value- The value for parentId- Returns:
- A modified copy of
thisobject
-
withParentId
Copy the current immutable object by setting an optional value for theparentIdattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for parentId- Returns:
- A modified copy of
thisobject
-
withType
Copy the current immutable object by setting a value for thetypeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableO365TeamFileResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:nativeId,name,sizeBytes,version,modifiedBy,modified,parentId,type. -
toString
Prints the immutable valueO365TeamFileResponsewith attribute values. -
copyOf
Creates an immutable copy of aO365TeamFileResponsevalue. 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 O365TeamFileResponse instance
-
builder
Creates a builder forImmutableO365TeamFileResponse.ImmutableO365TeamFileResponse.builder() .nativeId(String) // requirednativeId.name(String) // requiredname.sizeBytes(long) // requiredsizeBytes.version(String) // requiredversion.modifiedBy(String) // requiredmodifiedBy.modified(java.time.Instant) // requiredmodified.parentId(String) // optionalparentId.type(String) // requiredtype.build();- Returns:
- A new ImmutableO365TeamFileResponse builder
-