Class ImmutableIFTTTOutput.Builder

  • Enclosing class:
    ImmutableIFTTTOutput

    @NotThreadSafe
    public static final class ImmutableIFTTTOutput.Builder
    extends Object
    Builds instances of type ImmutableIFTTTOutput. 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.

    • Constructor Detail

      • Builder

        public Builder()
        Creates a builder for ImmutableIFTTTOutput instances.
         new ImmutableIFTTTOutput.Builder()
            .id(String | null) // nullable id
            .collectionID(String | null) // nullable collectionID
            .enabled(Boolean | null) // nullable enabled
            .tags(Map<String, String> | null) // nullable tags
            .key(String) // required key
            .eventName(String) // required eventName
            .asIsPayload(Boolean | null) // nullable asIsPayload
            .build();
         
    • Method Detail

      • from

        public final ImmutableIFTTTOutput.Builder from​(Output instance)
        Fill a builder with attribute values from the provided com.telenordigital.nbiot.Output instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • from

        public final ImmutableIFTTTOutput.Builder from​(IFTTTOutput instance)
        Fill a builder with attribute values from the provided com.telenordigital.nbiot.IFTTTOutput instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • collectionID

        public final ImmutableIFTTTOutput.Builder collectionID​(@Nullable
                                                               String collectionID)
        Initializes the value for the collectionID attribute.
        Parameters:
        collectionID - The value for collectionID (can be null)
        Returns:
        this builder for use in a chained invocation
      • putTags

        public final ImmutableIFTTTOutput.Builder putTags​(String key,
                                                          String value)
        Put one entry to the tags map.
        Parameters:
        key - The key in the tags map
        value - The associated value in the tags map
        Returns:
        this builder for use in a chained invocation
      • tags

        public final ImmutableIFTTTOutput.Builder tags​(@Nullable
                                                       Map<String,​? extends String> entries)
        Sets or replaces all mappings from the specified map as entries for the tags map. Nulls are not permitted as keys or values, but parameter itself can be null
        Parameters:
        entries - The entries that will be added to the tags map
        Returns:
        this builder for use in a chained invocation
      • putAllTags

        public final ImmutableIFTTTOutput.Builder putAllTags​(Map<String,​? extends String> entries)
        Put all mappings from the specified map as entries to tags map. Nulls are not permitted
        Parameters:
        entries - The entries that will be added to the tags map
        Returns:
        this builder for use in a chained invocation
      • key

        public final ImmutableIFTTTOutput.Builder key​(String key)
        Initializes the value for the key attribute.
        Parameters:
        key - The value for key
        Returns:
        this builder for use in a chained invocation
      • eventName

        public final ImmutableIFTTTOutput.Builder eventName​(String eventName)
        Initializes the value for the eventName attribute.
        Parameters:
        eventName - The value for eventName
        Returns:
        this builder for use in a chained invocation
      • asIsPayload

        public final ImmutableIFTTTOutput.Builder asIsPayload​(@Nullable
                                                              Boolean asIsPayload)
        Initializes the value for the asIsPayload attribute.
        Parameters:
        asIsPayload - The value for asIsPayload (can be null)
        Returns:
        this builder for use in a chained invocation