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 |
|---|---|
boolean |
equals(Object obj) |
String |
getDeleted()
Returns the timestamp on or after which the deprecation state of this resource will be changed
to
DeprecationStatus.Status.DELETED. |
Long |
getDeletedMillis()
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 |
getDeprecated()
Returns the timestamp on or after which the deprecation state of this resource will be changed
to
DeprecationStatus.Status.DEPRECATED. |
Long |
getDeprecatedMillis()
Returns the timestamp (in milliseconds since epoch) on or after which the deprecation state of
this resource will be changed to
DeprecationStatus.Status.DEPRECATED. |
String |
getObsolete()
Returns the timestamp on or after which the deprecation state of this resource will be changed
to
DeprecationStatus.Status.OBSOLETE. |
Long |
getObsoleteMillis()
Returns the timestamp (in milliseconds since epoch) on or after which the deprecation state of
this resource will be changed to
DeprecationStatus.Status.OBSOLETE. |
T |
getReplacement()
Returns the identity of the suggested replacement for a deprecated resource.
|
DeprecationStatus.Status |
getStatus()
Returns the deprecation state of this resource.
|
int |
hashCode() |
static <T extends ResourceId> |
newBuilder(DeprecationStatus.Status status)
Returns the builder for a
DeprecationStatus object given the status. |
static <T extends ResourceId> |
newBuilder(DeprecationStatus.Status status,
T replacement)
Returns the builder for a
DeprecationStatus object given the status and replacement's
identity. |
static <T extends ResourceId> |
of(DeprecationStatus.Status status,
T replacement)
Returns a
DeprecationStatus object given the status and replacement's identity. |
DeprecationStatus.Builder<T> |
toBuilder()
Returns a builder for the
DeprecationStatus object. |
String |
toString() |
public String getDeleted()
DeprecationStatus.Status.DELETED. Returns null if not set. This value should be in RFC3339
format.public String getDeprecated()
DeprecationStatus.Status.DEPRECATED. Returns null if not set. This value should be in RFC3339
format.public String getObsolete()
DeprecationStatus.Status.OBSOLETE. Returns null if not set. This value should be in RFC3339
format.public Long getDeletedMillis()
DeprecationStatus.Status.DELETED. Returns null if not set.IllegalStateException - if getDeleted() is not a valid date, time or datetimepublic Long getDeprecatedMillis()
DeprecationStatus.Status.DEPRECATED. Returns null if not set.IllegalStateException - if getDeprecated() is not a valid date, time or datetimepublic Long getObsoleteMillis()
DeprecationStatus.Status.OBSOLETE. Returns null if not set.IllegalStateException - if getObsolete() is not a valid date, time or datetimepublic T getReplacement()
public DeprecationStatus.Status getStatus()
public DeprecationStatus.Builder<T> toBuilder()
DeprecationStatus object.public static <T extends ResourceId> DeprecationStatus.Builder<T> newBuilder(DeprecationStatus.Status status)
DeprecationStatus object given the status.public static <T extends ResourceId> DeprecationStatus.Builder<T> newBuilder(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 © 2019 Google LLC. All rights reserved.