Package com.telenordigital.nbiot
Class ImmutableIFTTTOutput
- java.lang.Object
-
- com.telenordigital.nbiot.IFTTTOutput
-
- com.telenordigital.nbiot.ImmutableIFTTTOutput
-
- All Implemented Interfaces:
Output
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableIFTTTOutput extends IFTTTOutput
Immutable implementation ofIFTTTOutput.Use the builder to create immutable instances:
new ImmutableIFTTTOutput.Builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableIFTTTOutput.BuilderBuilds instances of typeImmutableIFTTTOutput.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanasIsPayload()The output's asIsPayload.StringcollectionID()The collection the output belongs to.static ImmutableIFTTTOutputcopyOf(IFTTTOutput instance)Creates an immutable copy of aIFTTTOutputvalue.Booleanenabled()Whether the output is enabled.booleanequals(Object another)This instance is equal to all instances ofImmutableIFTTTOutputthat have equal attribute values.StringeventName()The output's eventName.inthashCode()Computes a hash code from attributes:id,collectionID,enabled,tags,key,eventName,asIsPayload.Stringid()The output's ID.Stringkey()The output's key.Map<String,String>tags()Output tags.StringtoString()Prints the immutable valueIFTTTOutputwith attribute values.ImmutableIFTTTOutputwithAsIsPayload(Boolean value)Copy the current immutable object by setting a value for theasIsPayloadattribute.ImmutableIFTTTOutputwithCollectionID(String value)Copy the current immutable object by setting a value for thecollectionIDattribute.ImmutableIFTTTOutputwithEnabled(Boolean value)Copy the current immutable object by setting a value for theenabledattribute.ImmutableIFTTTOutputwithEventName(String value)Copy the current immutable object by setting a value for theeventNameattribute.ImmutableIFTTTOutputwithId(String value)Copy the current immutable object by setting a value for theidattribute.ImmutableIFTTTOutputwithKey(String value)Copy the current immutable object by setting a value for thekeyattribute.ImmutableIFTTTOutputwithTags(Map<String,? extends String> entries)Copy the current immutable object by replacing thetagsmap with the specified map.-
Methods inherited from class com.telenordigital.nbiot.IFTTTOutput
toInternal
-
-
-
-
Method Detail
-
key
public String key()
The output's key.- Specified by:
keyin classIFTTTOutput
-
eventName
public String eventName()
The output's eventName.- Specified by:
eventNamein classIFTTTOutput
-
asIsPayload
@Nullable public Boolean asIsPayload()
The output's asIsPayload.- Specified by:
asIsPayloadin classIFTTTOutput
-
withId
public final ImmutableIFTTTOutput 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 ImmutableIFTTTOutput 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 ImmutableIFTTTOutput 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 ImmutableIFTTTOutput 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
-
withKey
public final ImmutableIFTTTOutput withKey(String value)
Copy the current immutable object by setting a value for thekeyattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for key- Returns:
- A modified copy of the
thisobject
-
withEventName
public final ImmutableIFTTTOutput withEventName(String value)
Copy the current immutable object by setting a value for theeventNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for eventName- Returns:
- A modified copy of the
thisobject
-
withAsIsPayload
public final ImmutableIFTTTOutput withAsIsPayload(@Nullable Boolean value)
Copy the current immutable object by setting a value for theasIsPayloadattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for asIsPayload (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableIFTTTOutputthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:id,collectionID,enabled,tags,key,eventName,asIsPayload.
-
toString
public String toString()
Prints the immutable valueIFTTTOutputwith attribute values.
-
copyOf
public static ImmutableIFTTTOutput copyOf(IFTTTOutput instance)
Creates an immutable copy of aIFTTTOutputvalue. 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 IFTTTOutput instance
-
-