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

com.hubspot.slack.client.models.actions.Action Maven / Gradle / Ivy

package com.hubspot.slack.client.models.actions;

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.hubspot.immutables.validation.InvalidImmutableStateException;
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 ActionIF}.
 * 

* Use the builder to create immutable instances: * {@code Action.builder()}. */ @Generated(from = "ActionIF", generator = "Immutables") @SuppressWarnings({"all"}) @SuppressFBWarnings @ParametersAreNonnullByDefault @javax.annotation.processing.Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class Action implements ActionIF { private final @Nullable String name; private final ActionType type; private final @Nullable String text; private final @Nullable String value; private final @Nullable Confirm confirm; private final @Nullable String url; private final @Nullable String rawStyle; private transient final Optional buttonStyle; private final List

   * Action.builder()
   *    .setName(String) // optional {@link ActionIF#getName() name}
   *    .setType(com.hubspot.slack.client.models.actions.ActionType) // required {@link ActionIF#getType() type}
   *    .setText(String) // optional {@link ActionIF#getText() text}
   *    .setValue(String) // optional {@link ActionIF#getValue() value}
   *    .setConfirm(Confirm) // optional {@link ActionIF#getConfirm() confirm}
   *    .setUrl(String) // optional {@link ActionIF#getUrl() url}
   *    .setRawStyle(String) // optional {@link ActionIF#getRawStyle() rawStyle}
   *    .addOptions|addAllOptions(Option) // {@link ActionIF#getOptions() options} elements
   *    .addSelectedOptions|addAllSelectedOptions(Option) // {@link ActionIF#getSelectedOptions() selectedOptions} elements
   *    .setDataSource(com.hubspot.slack.client.models.actions.SlackDataSource) // optional {@link ActionIF#getDataSource() dataSource}
   *    .setMinQueryLength(Integer) // optional {@link ActionIF#getMinQueryLength() minQueryLength}
   *    .build();
   * 
* @return A new Action builder */ public static Action.Builder builder() { return new Action.Builder(); } /** * Builds instances of type {@link Action Action}. * 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 = "ActionIF", generator = "Immutables") @NotThreadSafe public static final class Builder { private static final long INIT_BIT_TYPE = 0x1L; private long initBits = 0x1L; private @Nullable String name; private @Nullable ActionType type; private @Nullable String text; private @Nullable String value; private @Nullable Confirm confirm; private @Nullable String url; private @Nullable String rawStyle; private List





© 2015 - 2025 Weber Informatics LLC | Privacy Policy