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().

  • Method Details

    • nativeId

      public String nativeId()
      The native VBO id for this Team item.
      Specified by:
      nativeId in interface O365TeamItemResponse
    • name

      public String name()
      The file name.
      Specified by:
      name in interface O365TeamFileResponse
    • sizeBytes

      public long sizeBytes()
      The file size.
      Specified by:
      sizeBytes in interface O365TeamFileResponse
    • version

      public String version()
      The Version of the file in the backup.
      Specified by:
      version in interface O365TeamFileResponse
    • modifiedBy

      public String modifiedBy()
      The name of the user who performed the latest modification of the file.
      Specified by:
      modifiedBy in interface O365TeamFileResponse
    • modified

      public Instant modified()
      The Date and time of the last modification of the file.
      Specified by:
      modified in interface O365TeamFileResponse
    • parentId

      public Optional<String> parentId()
      The parent folder ID of the sub file/folder.
      Specified by:
      parentId in interface O365TeamFileResponse
    • type

      public String type()
      The Type of the Microsoft Teams File (File, Folder).
      Specified by:
      type in interface O365TeamFileResponse
    • withNativeId

      public final ImmutableO365TeamFileResponse withNativeId(String value)
      Copy the current immutable object by setting a value for the nativeId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for nativeId
      Returns:
      A modified copy of the this object
    • withName

      public final ImmutableO365TeamFileResponse withName(String value)
      Copy the current immutable object by setting a value for the name attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for name
      Returns:
      A modified copy of the this object
    • withSizeBytes

      public final ImmutableO365TeamFileResponse withSizeBytes(long value)
      Copy the current immutable object by setting a value for the sizeBytes attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for sizeBytes
      Returns:
      A modified copy of the this object
    • withVersion

      public final ImmutableO365TeamFileResponse withVersion(String value)
      Copy the current immutable object by setting a value for the version attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for version
      Returns:
      A modified copy of the this object
    • withModifiedBy

      public final ImmutableO365TeamFileResponse withModifiedBy(String value)
      Copy the current immutable object by setting a value for the modifiedBy attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for modifiedBy
      Returns:
      A modified copy of the this object
    • withModified

      public final ImmutableO365TeamFileResponse withModified(Instant value)
      Copy the current immutable object by setting a value for the modified attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for modified
      Returns:
      A modified copy of the this object
    • withParentId

      public final ImmutableO365TeamFileResponse withParentId(String value)
      Copy the current immutable object by setting a present value for the optional parentId attribute.
      Parameters:
      value - The value for parentId
      Returns:
      A modified copy of this object
    • withParentId

      public final ImmutableO365TeamFileResponse withParentId(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the parentId attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for parentId
      Returns:
      A modified copy of this object
    • withType

      public final ImmutableO365TeamFileResponse withType(String value)
      Copy the current immutable object by setting a value for the type attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for type
      Returns:
      A modified copy of the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableO365TeamFileResponse that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: nativeId, name, sizeBytes, version, modifiedBy, modified, parentId, type.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value O365TeamFileResponse with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static ImmutableO365TeamFileResponse copyOf(O365TeamFileResponse instance)
      Creates an immutable copy of a O365TeamFileResponse value. 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

      public static ImmutableO365TeamFileResponse.Builder builder()
      Creates a builder for ImmutableO365TeamFileResponse.
       ImmutableO365TeamFileResponse.builder()
          .nativeId(String) // required nativeId
          .name(String) // required name
          .sizeBytes(long) // required sizeBytes
          .version(String) // required version
          .modifiedBy(String) // required modifiedBy
          .modified(java.time.Instant) // required modified
          .parentId(String) // optional parentId
          .type(String) // required type
          .build();
       
      Returns:
      A new ImmutableO365TeamFileResponse builder