Class ImmutableUDPOutput.Builder

  • Enclosing class:
    ImmutableUDPOutput

    @NotThreadSafe
    public static final class ImmutableUDPOutput.Builder
    extends Object
    Builds instances of type ImmutableUDPOutput. 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 ImmutableUDPOutput instances.
         new ImmutableUDPOutput.Builder()
            .id(String | null) // nullable id
            .collectionID(String | null) // nullable collectionID
            .enabled(Boolean | null) // nullable enabled
            .tags(Map<String, String> | null) // nullable tags
            .host(String) // required host
            .port(Integer) // required port
            .build();
         
    • Method Detail

      • from

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

        public final ImmutableUDPOutput.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
      • id

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

        public final ImmutableUDPOutput.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
      • enabled

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

        public final ImmutableUDPOutput.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
      • putTags

        public final ImmutableUDPOutput.Builder putTags​(Map.Entry<String,​? extends String> entry)
        Put one entry to the tags map. Nulls are not permitted
        Parameters:
        entry - The key and value entry
        Returns:
        this builder for use in a chained invocation
      • tags

        public final ImmutableUDPOutput.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 ImmutableUDPOutput.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
      • host

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

        public final ImmutableUDPOutput.Builder port​(Integer port)
        Initializes the value for the port attribute.
        Parameters:
        port - The value for port
        Returns:
        this builder for use in a chained invocation