Class AttachmentPatch.Builder

java.lang.Object
io.skipcheck.tm1.client.model.AttachmentPatch.Builder
Enclosing class:
AttachmentPatch

public static final class AttachmentPatch.Builder extends Object
Builds a AttachmentPatch; each setter replaces what an earlier call set.
  • Method Details

    • name

      public AttachmentPatch.Builder name(@Nullable String name)
      Sets Name: The name of the attachment.
      Parameters:
      name - the value; null sends an explicit null
      Returns:
      this builder
    • description

      public AttachmentPatch.Builder description(@Nullable String description)
      Sets Description: A description of the attachment.
      Parameters:
      description - the value; null sends an explicit null
      Returns:
      this builder
    • contentType

      public AttachmentPatch.Builder contentType(@Nullable String contentType)
      Sets ContentType: The type of content in the attachment.
      Parameters:
      contentType - the value; null sends an explicit null
      Returns:
      this builder
    • size

      public AttachmentPatch.Builder size(@Nullable Long size)
      Sets Size: The size of the attachment.
      Parameters:
      size - the value; null sends an explicit null
      Returns:
      this builder
    • build

      public AttachmentPatch build()
      The patch, with what's been set so far.
      Returns:
      the patch