org.jclouds.googlecomputeengine.domain
Class Deprecated

java.lang.Object
  extended by org.jclouds.googlecomputeengine.domain.Deprecated

public class Deprecated
extends Object

Deprecation information for an image or kernel

Author:
Andrew Bayer

Nested Class Summary
static class Deprecated.Builder
           
 
Constructor Summary
Deprecated(String state, URI replacement, String deprecated, String obsolete, String deleted)
           
 
Method Summary
static Deprecated.Builder builder()
           
 boolean equals(Object obj)
          
 com.google.common.base.Optional<String> getDeleted()
           
 com.google.common.base.Optional<String> getDeprecated()
           
 com.google.common.base.Optional<String> getObsolete()
           
 com.google.common.base.Optional<URI> getReplacement()
           
 com.google.common.base.Optional<String> getState()
           
 int hashCode()
          
protected  com.google.common.base.Objects.ToStringHelper string()
          
 Deprecated.Builder toBuilder()
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Deprecated

@ConstructorProperties(value={"state","replacement","deprecated","obsolete","deleted"})
public Deprecated(String state,
                                             URI replacement,
                                             String deprecated,
                                             String obsolete,
                                             String deleted)
Method Detail

getState

public com.google.common.base.Optional<String> getState()
Returns:
The deprecation state of this image.

getReplacement

public com.google.common.base.Optional<URI> getReplacement()
Returns:
A fully-qualified URL of the suggested replacement for the deprecated image.

getDeprecated

public com.google.common.base.Optional<String> getDeprecated()
Returns:
An optional RFC3339 timestamp for when the deprecation state of this resource will be changed to DEPRECATED.

getObsolete

public com.google.common.base.Optional<String> getObsolete()
Returns:
An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed toOBSOLETE.

getDeleted

public com.google.common.base.Optional<String> getDeleted()
Returns:
An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DELETED.

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

string

protected com.google.common.base.Objects.ToStringHelper string()


toString

public String toString()

Overrides:
toString in class Object

builder

public static Deprecated.Builder builder()

toBuilder

public Deprecated.Builder toBuilder()


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.