org.jclouds.googlecomputeengine.options
Class DeprecateOptions

java.lang.Object
  extended by org.jclouds.googlecomputeengine.options.DeprecateOptions

public class DeprecateOptions
extends Object

Options to set the deprecation status of a resource. Currently only for images.

Author:
Andrew Bayer
See Also:

Nested Class Summary
static class DeprecateOptions.State
           
 
Constructor Summary
DeprecateOptions()
           
 
Method Summary
 DeprecateOptions deleted(Date deleted)
           
 DeprecateOptions deprecated(Date deprecated)
           
 Date getDeleted()
          Optional RFC3339 timestamp for when the deprecation state was changed to DELETED.
 Date getDeprecated()
          Optional RFC3339 timestamp for when the deprecation state was changed to DEPRECATED.
 Date getObsolete()
          Optional RFC3339 timestamp for when the deprecation state was changed to OBSOLETE.
 URI getReplacement()
          Optional URL for replacement of deprecated resource.
 DeprecateOptions.State getState()
          The new deprecation state.
 DeprecateOptions obsolete(Date obsolete)
           
 DeprecateOptions replacement(URI replacement)
           
 DeprecateOptions state(DeprecateOptions.State state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeprecateOptions

public DeprecateOptions()
Method Detail

getState

public DeprecateOptions.State getState()
The new deprecation state.

Returns:
the new deprecation state.

getReplacement

public URI getReplacement()
Optional URL for replacement of deprecated resource.

Returns:
the URL

getDeprecated

public Date getDeprecated()
Optional RFC3339 timestamp for when the deprecation state was changed to DEPRECATED.

Returns:
the timestamp

getObsolete

public Date getObsolete()
Optional RFC3339 timestamp for when the deprecation state was changed to OBSOLETE.

Returns:
the timestamp

getDeleted

public Date getDeleted()
Optional RFC3339 timestamp for when the deprecation state was changed to DELETED.

Returns:
the timestamp

state

public DeprecateOptions state(DeprecateOptions.State state)
See Also:
getState()

replacement

public DeprecateOptions replacement(URI replacement)
See Also:
getReplacement()

deprecated

public DeprecateOptions deprecated(Date deprecated)
See Also:
getDeprecated()

obsolete

public DeprecateOptions obsolete(Date obsolete)
See Also:
getObsolete()

deleted

public DeprecateOptions deleted(Date deleted)
See Also:
getDeleted()


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