Class ImmutableO365TeamPostResponse

java.lang.Object
com.iland.core.web.rest.response.vbo.ImmutableO365TeamPostResponse
All Implemented Interfaces:
O365TeamItemResponse, O365TeamPostResponse

@Generated(from="O365TeamPostResponse", generator="Immutables") @ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableO365TeamPostResponse extends Object implements O365TeamPostResponse
Immutable implementation of O365TeamPostResponse.

Use the builder to create immutable instances: ImmutableO365TeamPostResponse.builder().

  • Method Details

    • nativeId

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

      public String author()
      The User name of the author of the post.
      Specified by:
      author in interface O365TeamPostResponse
    • important

      public boolean important()
      Defines whether the post is marked as important.
      Specified by:
      important in interface O365TeamPostResponse
    • subject

      @Nullable public String subject()
      The Subject of the post.
      Specified by:
      subject in interface O365TeamPostResponse
    • createdTime

      public Instant createdTime()
      Date and time when the post was created.
      Specified by:
      createdTime in interface O365TeamPostResponse
    • lastModificationTime

      public Instant lastModificationTime()
      Date and time of the latest modification of the post.
      Specified by:
      lastModificationTime in interface O365TeamPostResponse
    • withNativeId

      public final ImmutableO365TeamPostResponse 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
    • withAuthor

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

      public final ImmutableO365TeamPostResponse withImportant(boolean value)
      Copy the current immutable object by setting a value for the important attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for important
      Returns:
      A modified copy of the this object
    • withSubject

      public final ImmutableO365TeamPostResponse withSubject(@Nullable String value)
      Copy the current immutable object by setting a value for the subject attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for subject (can be null)
      Returns:
      A modified copy of the this object
    • withCreatedTime

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

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

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableO365TeamPostResponse 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, author, important, subject, createdTime, lastModificationTime.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      public static ImmutableO365TeamPostResponse copyOf(O365TeamPostResponse instance)
      Creates an immutable copy of a O365TeamPostResponse 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 O365TeamPostResponse instance
    • builder

      public static ImmutableO365TeamPostResponse.Builder builder()
      Creates a builder for ImmutableO365TeamPostResponse.
       ImmutableO365TeamPostResponse.builder()
          .nativeId(String) // required nativeId
          .author(String) // required author
          .important(boolean) // required important
          .subject(String | null) // nullable subject
          .createdTime(java.time.Instant) // required createdTime
          .lastModificationTime(java.time.Instant) // required lastModificationTime
          .build();
       
      Returns:
      A new ImmutableO365TeamPostResponse builder