Package com.telenordigital.nbiot
Class ImmutableMQTTOutput
- java.lang.Object
-
- com.telenordigital.nbiot.MQTTOutput
-
- com.telenordigital.nbiot.ImmutableMQTTOutput
-
- All Implemented Interfaces:
Output
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableMQTTOutput extends MQTTOutput
Immutable implementation ofMQTTOutput.Use the builder to create immutable instances:
new ImmutableMQTTOutput.Builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableMQTTOutput.BuilderBuilds instances of typeImmutableMQTTOutput.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringclientID()The output's clientID.StringcollectionID()The collection the output belongs to.static ImmutableMQTTOutputcopyOf(MQTTOutput instance)Creates an immutable copy of aMQTTOutputvalue.BooleandisableCertCheck()The output's disableCertCheck.Booleanenabled()Whether the output is enabled.Stringendpoint()The output's endpoint.booleanequals(Object another)This instance is equal to all instances ofImmutableMQTTOutputthat have equal attribute values.inthashCode()Computes a hash code from attributes:id,collectionID,enabled,tags,endpoint,disableCertCheck,username,password,clientID,topicName.Stringid()The output's ID.Stringpassword()The output's password.Map<String,String>tags()Output tags.StringtopicName()The output's topicName.StringtoString()Prints the immutable valueMQTTOutputwith attribute values.Stringusername()The output's username.ImmutableMQTTOutputwithClientID(String value)Copy the current immutable object by setting a value for theclientIDattribute.ImmutableMQTTOutputwithCollectionID(String value)Copy the current immutable object by setting a value for thecollectionIDattribute.ImmutableMQTTOutputwithDisableCertCheck(Boolean value)Copy the current immutable object by setting a value for thedisableCertCheckattribute.ImmutableMQTTOutputwithEnabled(Boolean value)Copy the current immutable object by setting a value for theenabledattribute.ImmutableMQTTOutputwithEndpoint(String value)Copy the current immutable object by setting a value for theendpointattribute.ImmutableMQTTOutputwithId(String value)Copy the current immutable object by setting a value for theidattribute.ImmutableMQTTOutputwithPassword(String value)Copy the current immutable object by setting a value for thepasswordattribute.ImmutableMQTTOutputwithTags(Map<String,? extends String> entries)Copy the current immutable object by replacing thetagsmap with the specified map.ImmutableMQTTOutputwithTopicName(String value)Copy the current immutable object by setting a value for thetopicNameattribute.ImmutableMQTTOutputwithUsername(String value)Copy the current immutable object by setting a value for theusernameattribute.-
Methods inherited from class com.telenordigital.nbiot.MQTTOutput
toInternal
-
-
-
-
Method Detail
-
endpoint
public String endpoint()
The output's endpoint.- Specified by:
endpointin classMQTTOutput
-
disableCertCheck
@Nullable public Boolean disableCertCheck()
The output's disableCertCheck.- Specified by:
disableCertCheckin classMQTTOutput
-
username
@Nullable public String username()
The output's username.- Specified by:
usernamein classMQTTOutput
-
password
@Nullable public String password()
The output's password.- Specified by:
passwordin classMQTTOutput
-
clientID
public String clientID()
The output's clientID.- Specified by:
clientIDin classMQTTOutput
-
topicName
public String topicName()
The output's topicName.- Specified by:
topicNamein classMQTTOutput
-
withId
public final ImmutableMQTTOutput withId(@Nullable String value)
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id (can benull)- Returns:
- A modified copy of the
thisobject
-
withCollectionID
public final ImmutableMQTTOutput withCollectionID(@Nullable String value)
Copy the current immutable object by setting a value for thecollectionIDattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for collectionID (can benull)- Returns:
- A modified copy of the
thisobject
-
withEnabled
public final ImmutableMQTTOutput withEnabled(@Nullable Boolean value)
Copy the current immutable object by setting a value for theenabledattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for enabled (can benull)- Returns:
- A modified copy of the
thisobject
-
withTags
public final ImmutableMQTTOutput withTags(@Nullable Map<String,? extends String> entries)
Copy the current immutable object by replacing thetagsmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the tags map- Returns:
- A modified copy of
thisobject
-
withEndpoint
public final ImmutableMQTTOutput withEndpoint(String value)
Copy the current immutable object by setting a value for theendpointattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for endpoint- Returns:
- A modified copy of the
thisobject
-
withDisableCertCheck
public final ImmutableMQTTOutput withDisableCertCheck(@Nullable Boolean value)
Copy the current immutable object by setting a value for thedisableCertCheckattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for disableCertCheck (can benull)- Returns:
- A modified copy of the
thisobject
-
withUsername
public final ImmutableMQTTOutput withUsername(@Nullable String value)
Copy the current immutable object by setting a value for theusernameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for username (can benull)- Returns:
- A modified copy of the
thisobject
-
withPassword
public final ImmutableMQTTOutput withPassword(@Nullable String value)
Copy the current immutable object by setting a value for thepasswordattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for password (can benull)- Returns:
- A modified copy of the
thisobject
-
withClientID
public final ImmutableMQTTOutput withClientID(String value)
Copy the current immutable object by setting a value for theclientIDattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for clientID- Returns:
- A modified copy of the
thisobject
-
withTopicName
public final ImmutableMQTTOutput withTopicName(String value)
Copy the current immutable object by setting a value for thetopicNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for topicName- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableMQTTOutputthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:id,collectionID,enabled,tags,endpoint,disableCertCheck,username,password,clientID,topicName.
-
toString
public String toString()
Prints the immutable valueMQTTOutputwith attribute values.
-
copyOf
public static ImmutableMQTTOutput copyOf(MQTTOutput instance)
Creates an immutable copy of aMQTTOutputvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable MQTTOutput instance
-
-