Class ImmutableO365TeamResponse

java.lang.Object
com.iland.core.web.rest.response.vbo.ImmutableO365TeamResponse
All Implemented Interfaces:
O365TeamResponse

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

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

  • Method Details

    • description

      public Optional<String> description()
      Get the team description.
      Specified by:
      description in interface O365TeamResponse
    • displayName

      public String displayName()
      Get the team display name.
      Specified by:
      displayName in interface O365TeamResponse
    • mail

      public Optional<String> mail()
      Get the email associated with this Team.
      Specified by:
      mail in interface O365TeamResponse
    • organizationUuid

      public Optional<String> organizationUuid()
      Get the org platform uuid associated with this Team.
      Specified by:
      organizationUuid in interface O365TeamResponse
    • backedUp

      public boolean backedUp()
      Whether this Team is backed up.
      Specified by:
      backedUp in interface O365TeamResponse
    • nativeId

      public String nativeId()
      Get the native VBO id for this Team.
      Specified by:
      nativeId in interface O365TeamResponse
    • withDescription

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

      public final ImmutableO365TeamResponse withDescription(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the description 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 description
      Returns:
      A modified copy of this object
    • withDisplayName

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

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

      public final ImmutableO365TeamResponse withMail(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the mail 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 mail
      Returns:
      A modified copy of this object
    • withOrganizationUuid

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

      public final ImmutableO365TeamResponse withOrganizationUuid(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the organizationUuid 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 organizationUuid
      Returns:
      A modified copy of this object
    • withBackedUp

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

      public final ImmutableO365TeamResponse 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
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableO365TeamResponse 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: description, displayName, mail, organizationUuid, backedUp, nativeId.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

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

      public static ImmutableO365TeamResponse.Builder builder()
      Creates a builder for ImmutableO365TeamResponse.
       ImmutableO365TeamResponse.builder()
          .description(String) // optional description
          .displayName(String) // required displayName
          .mail(String) // optional mail
          .organizationUuid(String) // optional organizationUuid
          .backedUp(boolean) // required backedUp
          .nativeId(String) // required nativeId
          .build();
       
      Returns:
      A new ImmutableO365TeamResponse builder