T - The Google Compute Engine resource identity to which the deprecation status referspublic final class DeprecationStatus<T extends ResourceId> extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
DeprecationStatus.Builder<T extends ResourceId>
A builder for
DeprecationStatus objects. |
static class |
DeprecationStatus.Status
The deprecation status of a Google Compute Engine resource.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends ResourceId> |
builder(DeprecationStatus.Status status)
Returns the builder for a
DeprecationStatus object given the status. |
static <T extends ResourceId> |
builder(DeprecationStatus.Status status,
T replacement)
Returns the builder for a
DeprecationStatus object given the status and replacement's
identity. |
String |
deleted()
Returns the timestamp on or after which the deprecation state of this resource will be changed
to
DeprecationStatus.Status.DELETED. |
Long |
deletedMillis()
Returns the timestamp (in milliseconds since epoch) on or after which the deprecation state of
this resource will be changed to
DeprecationStatus.Status.DELETED. |
String |
deprecated()
Returns the timestamp on or after which the deprecation state of this resource will be changed
to
DeprecationStatus.Status.DEPRECATED. |
Long |
deprecatedMillis()
Returns the timestamp (in milliseconds since epoch) on or after which the deprecation state of
this resource will be changed to
DeprecationStatus.Status.DEPRECATED. |
boolean |
equals(Object obj) |
int |
hashCode() |
String |
obsolete()
Returns the timestamp on or after which the deprecation state of this resource will be changed
to
DeprecationStatus.Status.OBSOLETE. |
Long |
obsoleteMillis()
Returns the timestamp (in milliseconds since epoch) on or after which the deprecation state of
this resource will be changed to
DeprecationStatus.Status.OBSOLETE. |
static <T extends ResourceId> |
of(DeprecationStatus.Status status,
T replacement)
Returns a
DeprecationStatus object given the status and replacement's identity. |
T |
replacement()
Returns the identity of the suggested replacement for a deprecated resource.
|
DeprecationStatus.Status |
status()
Returns the deprecation state of this resource.
|
DeprecationStatus.Builder<T> |
toBuilder()
Returns a builder for the
DeprecationStatus object. |
String |
toString() |
public String deleted()
DeprecationStatus.Status.DELETED. Returns null if not set. This value should be in RFC3339
format.public String deprecated()
DeprecationStatus.Status.DEPRECATED. Returns null if not set. This value should be in RFC3339
format.public String obsolete()
DeprecationStatus.Status.OBSOLETE. Returns null if not set. This value should be in RFC3339
format.public Long deletedMillis()
DeprecationStatus.Status.DELETED. Returns null if not set.IllegalStateException - if deleted() is not a valid date, time or datetimepublic Long deprecatedMillis()
DeprecationStatus.Status.DEPRECATED. Returns null if not set.IllegalStateException - if deprecated() is not a valid date, time or datetimepublic Long obsoleteMillis()
DeprecationStatus.Status.OBSOLETE. Returns null if not set.IllegalStateException - if obsolete() is not a valid date, time or datetimepublic T replacement()
public DeprecationStatus.Status status()
public DeprecationStatus.Builder<T> toBuilder()
DeprecationStatus object.public static <T extends ResourceId> DeprecationStatus.Builder<T> builder(DeprecationStatus.Status status)
DeprecationStatus object given the status.public static <T extends ResourceId> DeprecationStatus.Builder<T> builder(DeprecationStatus.Status status, T replacement)
DeprecationStatus object given the status and replacement's
identity.public static <T extends ResourceId> DeprecationStatus<T> of(DeprecationStatus.Status status, T replacement)
DeprecationStatus object given the status and replacement's identity.Copyright © 2016 Google. All rights reserved.