Package com.telenordigital.nbiot
Class ImmutableWebHookOutput
- java.lang.Object
-
- com.telenordigital.nbiot.WebHookOutput
-
- com.telenordigital.nbiot.ImmutableWebHookOutput
-
- All Implemented Interfaces:
Output
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableWebHookOutput extends WebHookOutput
Immutable implementation ofWebHookOutput.Use the builder to create immutable instances:
new ImmutableWebHookOutput.Builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableWebHookOutput.BuilderBuilds instances of typeImmutableWebHookOutput.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringbasicAuthPass()The output's basicAuthPass.StringbasicAuthUser()The output's basicAuthUser.StringcollectionID()The collection the output belongs to.static ImmutableWebHookOutputcopyOf(WebHookOutput instance)Creates an immutable copy of aWebHookOutputvalue.StringcustomHeaderName()The output's customHeaderName.StringcustomHeaderValue()The output's customHeaderValue.Booleanenabled()Whether the output is enabled.booleanequals(Object another)This instance is equal to all instances ofImmutableWebHookOutputthat have equal attribute values.inthashCode()Computes a hash code from attributes:id,collectionID,enabled,tags,url,basicAuthUser,basicAuthPass,customHeaderName,customHeaderValue.Stringid()The output's ID.Map<String,String>tags()Output tags.StringtoString()Prints the immutable valueWebHookOutputwith attribute values.Stringurl()The output's URL.ImmutableWebHookOutputwithBasicAuthPass(String value)Copy the current immutable object by setting a value for thebasicAuthPassattribute.ImmutableWebHookOutputwithBasicAuthUser(String value)Copy the current immutable object by setting a value for thebasicAuthUserattribute.ImmutableWebHookOutputwithCollectionID(String value)Copy the current immutable object by setting a value for thecollectionIDattribute.ImmutableWebHookOutputwithCustomHeaderName(String value)Copy the current immutable object by setting a value for thecustomHeaderNameattribute.ImmutableWebHookOutputwithCustomHeaderValue(String value)Copy the current immutable object by setting a value for thecustomHeaderValueattribute.ImmutableWebHookOutputwithEnabled(Boolean value)Copy the current immutable object by setting a value for theenabledattribute.ImmutableWebHookOutputwithId(String value)Copy the current immutable object by setting a value for theidattribute.ImmutableWebHookOutputwithTags(Map<String,? extends String> entries)Copy the current immutable object by replacing thetagsmap with the specified map.ImmutableWebHookOutputwithUrl(String value)Copy the current immutable object by setting a value for theurlattribute.-
Methods inherited from class com.telenordigital.nbiot.WebHookOutput
toInternal
-
-
-
-
Method Detail
-
url
public String url()
The output's URL.- Specified by:
urlin classWebHookOutput
-
basicAuthUser
@Nullable public String basicAuthUser()
The output's basicAuthUser.- Specified by:
basicAuthUserin classWebHookOutput
-
basicAuthPass
@Nullable public String basicAuthPass()
The output's basicAuthPass.- Specified by:
basicAuthPassin classWebHookOutput
-
customHeaderName
@Nullable public String customHeaderName()
The output's customHeaderName.- Specified by:
customHeaderNamein classWebHookOutput
-
customHeaderValue
@Nullable public String customHeaderValue()
The output's customHeaderValue.- Specified by:
customHeaderValuein classWebHookOutput
-
withId
public final ImmutableWebHookOutput 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 ImmutableWebHookOutput 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 ImmutableWebHookOutput 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 ImmutableWebHookOutput 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
-
withUrl
public final ImmutableWebHookOutput withUrl(String value)
Copy the current immutable object by setting a value for theurlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for url- Returns:
- A modified copy of the
thisobject
-
withBasicAuthUser
public final ImmutableWebHookOutput withBasicAuthUser(@Nullable String value)
Copy the current immutable object by setting a value for thebasicAuthUserattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for basicAuthUser (can benull)- Returns:
- A modified copy of the
thisobject
-
withBasicAuthPass
public final ImmutableWebHookOutput withBasicAuthPass(@Nullable String value)
Copy the current immutable object by setting a value for thebasicAuthPassattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for basicAuthPass (can benull)- Returns:
- A modified copy of the
thisobject
-
withCustomHeaderName
public final ImmutableWebHookOutput withCustomHeaderName(@Nullable String value)
Copy the current immutable object by setting a value for thecustomHeaderNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for customHeaderName (can benull)- Returns:
- A modified copy of the
thisobject
-
withCustomHeaderValue
public final ImmutableWebHookOutput withCustomHeaderValue(@Nullable String value)
Copy the current immutable object by setting a value for thecustomHeaderValueattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for customHeaderValue (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableWebHookOutputthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:id,collectionID,enabled,tags,url,basicAuthUser,basicAuthPass,customHeaderName,customHeaderValue.
-
toString
public String toString()
Prints the immutable valueWebHookOutputwith attribute values.
-
copyOf
public static ImmutableWebHookOutput copyOf(WebHookOutput instance)
Creates an immutable copy of aWebHookOutputvalue. 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 WebHookOutput instance
-
-