All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hubspot.slack.client.models.blocks.elements.OverflowMenu Maven / Gradle / Ivy

package com.hubspot.slack.client.models.blocks.elements;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.hubspot.immutables.validation.InvalidImmutableStateException;
import com.hubspot.slack.client.models.blocks.objects.ConfirmationDialog;
import com.hubspot.slack.client.models.blocks.objects.Option;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
import javax.annotation.ParametersAreNonnullByDefault;
import javax.annotation.concurrent.Immutable;
import javax.annotation.concurrent.NotThreadSafe;
import org.immutables.value.Generated;

/**
 * Immutable implementation of {@link OverflowMenuIF}.
 * 

* Use the builder to create immutable instances: * {@code OverflowMenu.builder()}. * Use the static factory method to create immutable instances: * {@code OverflowMenu.of()}. */ @Generated(from = "OverflowMenuIF", generator = "Immutables") @SuppressWarnings({"all"}) @SuppressFBWarnings @ParametersAreNonnullByDefault @javax.annotation.processing.Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class OverflowMenu implements OverflowMenuIF { private transient final String type; private final String actionId; private final List

   * OverflowMenu.builder()
   *    .setActionId(String) // required {@link OverflowMenuIF#getActionId() actionId}
   *    .addOptions|addAllOptions(com.hubspot.slack.client.models.blocks.objects.Option) // {@link OverflowMenuIF#getOptions() options} elements
   *    .setConfirmationDialog(com.hubspot.slack.client.models.blocks.objects.ConfirmationDialog) // optional {@link OverflowMenuIF#getConfirmationDialog() confirmationDialog}
   *    .build();
   * 
* @return A new OverflowMenu builder */ public static OverflowMenu.Builder builder() { return new OverflowMenu.Builder(); } /** * Builds instances of type {@link OverflowMenu OverflowMenu}. * Initialize attributes and then invoke the {@link #build()} method to create an * immutable instance. *

{@code Builder} is not thread-safe and generally should not be stored in a field or collection, * but instead used immediately to create instances. */ @Generated(from = "OverflowMenuIF", generator = "Immutables") @NotThreadSafe public static final class Builder { private static final long INIT_BIT_ACTION_ID = 0x1L; private long initBits = 0x1L; private @Nullable String actionId; private List





© 2015 - 2025 Weber Informatics LLC | Privacy Policy