| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableDsAlert.Builder
Builds instances of type
ImmutableDsAlert. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableDsAlert.Builder |
builder()
Creates a builder for
ImmutableDsAlert. |
static ImmutableDsAlert |
copyOf(DsAlert instance)
Creates an immutable copy of a
DsAlert value. |
String |
description()
A detailed description of the alert.
|
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableDsAlert that have equal attribute values. |
long |
expires()
The UNIX time (that is, seconds since midnight GMT on 1 Jan 1970) at which the
alert will expire.
|
int |
hashCode()
Computes a hash code from attributes:
title, expires, uri, description. |
String |
title()
A brief description of the alert.
|
String |
toString()
Prints the immutable value
DsAlert with attribute values. |
String |
uri()
An HTTP(S) URI that one may refer to for detailed information about the alert.
|
ImmutableDsAlert |
withDescription(String value)
Copy the current immutable object by setting a value for the
description attribute. |
ImmutableDsAlert |
withExpires(long value)
Copy the current immutable object by setting a value for the
expires attribute. |
ImmutableDsAlert |
withTitle(String value)
Copy the current immutable object by setting a value for the
title attribute. |
ImmutableDsAlert |
withUri(String value)
Copy the current immutable object by setting a value for the
uri attribute. |
public String title()
public long expires()
public String uri()
public String description()
description in interface DsAlertpublic final ImmutableDsAlert withTitle(String value)
title attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for titlethis objectpublic final ImmutableDsAlert withExpires(long value)
expires attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for expiresthis objectpublic final ImmutableDsAlert withUri(String value)
uri attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for urithis objectpublic final ImmutableDsAlert withDescription(String value)
description attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for descriptionthis objectpublic boolean equals(Object another)
ImmutableDsAlert that have equal attribute values.public int hashCode()
title, expires, uri, description.public String toString()
DsAlert with attribute values.public static ImmutableDsAlert copyOf(DsAlert instance)
DsAlert value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableDsAlert.Builder builder()
ImmutableDsAlert.Copyright © 2016. All rights reserved.