Class WorkObjectFlexpaneParams.Builder

java.lang.Object
com.hubspot.slack.client.methods.params.chat.workobject.flexpane.WorkObjectFlexpaneParams.Builder
Enclosing class:
WorkObjectFlexpaneParams

@Generated(from="WorkObjectFlexpaneParamsIF", generator="Immutables") @NotThreadSafe public static final class WorkObjectFlexpaneParams.Builder extends Object
Builds instances of type WorkObjectFlexpaneParams. 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

      Fill a builder with attribute values from the provided WorkObjectFlexpaneParamsIF 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
    • setTriggerId

      public final WorkObjectFlexpaneParams.Builder setTriggerId(String triggerId)
      Initializes the value for the triggerId attribute.
      Parameters:
      triggerId - The value for triggerId
      Returns:
      this builder for use in a chained invocation
    • setMetadata

      public final WorkObjectFlexpaneParams.Builder setMetadata(FlexPaneMetadata metadata)
      Initializes the value for the metadata attribute.
      Parameters:
      metadata - The value for metadata
      Returns:
      this builder for use in a chained invocation
    • setIsUserAuthRequired

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

      public final WorkObjectFlexpaneParams.Builder setIsUserAuthRequired(Optional<Boolean> isUserAuthRequired)
      Initializes the optional value isUserAuthRequired to isUserAuthRequired.
      Parameters:
      isUserAuthRequired - The value for isUserAuthRequired
      Returns:
      this builder for use in a chained invocation
    • setUserAuthUrl

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

      public final WorkObjectFlexpaneParams.Builder setUserAuthUrl(Optional<String> userAuthUrl)
      Initializes the optional value userAuthUrl to userAuthUrl.
      Parameters:
      userAuthUrl - The value for userAuthUrl
      Returns:
      this builder for use in a chained invocation
    • setError

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

      public final WorkObjectFlexpaneParams.Builder setError(Optional<? extends WorkObjectFlexpaneError> error)
      Initializes the optional value error to error.
      Parameters:
      error - The value for error
      Returns:
      this builder for use in a chained invocation
    • build

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