Class UpdateViewParams.Builder

java.lang.Object
com.hubspot.slack.client.methods.params.views.UpdateViewParams.Builder
Enclosing class:
UpdateViewParams

@Generated(from="UpdateViewParamsIF", generator="Immutables") @NotThreadSafe public static final class UpdateViewParams.Builder extends Object
Builds instances of type UpdateViewParams. Initialize attributes and then invoke the build() method to create an immutable instance.

Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

  • Method Details

    • from

      public final UpdateViewParams.Builder from(UpdateViewParamsIF instance)
      Fill a builder with attribute values from the provided UpdateViewParamsIF instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setView

      public final UpdateViewParams.Builder setView(ModalViewPayload view)
      Initializes the value for the view attribute.
      Parameters:
      view - The value for view
      Returns:
      this builder for use in a chained invocation
    • setExternalId

      public final UpdateViewParams.Builder setExternalId(@Nullable String externalId)
      Initializes the optional value externalId to externalId.
      Parameters:
      externalId - The value for externalId, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setExternalId

      public final UpdateViewParams.Builder setExternalId(Optional<String> externalId)
      Initializes the optional value externalId to externalId.
      Parameters:
      externalId - The value for externalId
      Returns:
      this builder for use in a chained invocation
    • setHash

      public final UpdateViewParams.Builder setHash(@Nullable String hash)
      Initializes the optional value hash to hash.
      Parameters:
      hash - The value for hash, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setHash

      public final UpdateViewParams.Builder setHash(Optional<String> hash)
      Initializes the optional value hash to hash.
      Parameters:
      hash - The value for hash
      Returns:
      this builder for use in a chained invocation
    • setViewId

      public final UpdateViewParams.Builder setViewId(@Nullable String viewId)
      Initializes the optional value viewId to viewId.
      Parameters:
      viewId - The value for viewId, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setViewId

      public final UpdateViewParams.Builder setViewId(Optional<String> viewId)
      Initializes the optional value viewId to viewId.
      Parameters:
      viewId - The value for viewId
      Returns:
      this builder for use in a chained invocation
    • build

      public UpdateViewParams build()
      Builds a new UpdateViewParams.
      Returns:
      An immutable instance of UpdateViewParams
      Throws:
      com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missing