Class ImmutableMQTTOutput.Builder

  • Enclosing class:
    ImmutableMQTTOutput

    @NotThreadSafe
    public static final class ImmutableMQTTOutput.Builder
    extends Object
    Builds instances of type ImmutableMQTTOutput. 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 ImmutableMQTTOutput instances.
         new ImmutableMQTTOutput.Builder()
            .id(String | null) // nullable id
            .collectionID(String | null) // nullable collectionID
            .enabled(Boolean | null) // nullable enabled
            .tags(Map<String, String> | null) // nullable tags
            .endpoint(String) // required endpoint
            .disableCertCheck(Boolean | null) // nullable disableCertCheck
            .username(String | null) // nullable username
            .password(String | null) // nullable password
            .clientID(String) // required clientID
            .topicName(String) // required topicName
            .build();
         
    • Method Detail

      • from

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

        public final ImmutableMQTTOutput.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 ImmutableMQTTOutput.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 ImmutableMQTTOutput.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 ImmutableMQTTOutput.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 ImmutableMQTTOutput.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 ImmutableMQTTOutput.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 ImmutableMQTTOutput.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 ImmutableMQTTOutput.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
      • endpoint

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

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

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

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

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

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