org.dasein.cloud.aws.admin
Class ReservedInstance
java.lang.Object
org.dasein.cloud.aws.admin.ReservedInstance
- All Implemented Interfaces:
- org.dasein.cloud.AccessControlledService, org.dasein.cloud.admin.PrepaymentSupport
public class ReservedInstance
- extends Object
- implements org.dasein.cloud.admin.PrepaymentSupport
| Fields inherited from interface org.dasein.cloud.admin.PrepaymentSupport |
ANY, GET_OFFERING, GET_PREPAYMENT, LIST_OFFERING, LIST_PREPAYMENT, PREPAY |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getOffering
@Nullable
public org.dasein.cloud.admin.Offering getOffering(@Nonnull
String offeringId)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
getOffering in interface org.dasein.cloud.admin.PrepaymentSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
getPrepayment
@Nullable
public org.dasein.cloud.admin.Prepayment getPrepayment(@Nonnull
String prepaymentId)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
getPrepayment in interface org.dasein.cloud.admin.PrepaymentSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
getProviderTermForOffering
@Nonnull
public String getProviderTermForOffering(@Nonnull
Locale locale)
- Specified by:
getProviderTermForOffering in interface org.dasein.cloud.admin.PrepaymentSupport
getProviderTermForPrepayment
@Nonnull
public String getProviderTermForPrepayment(@Nonnull
Locale locale)
- Specified by:
getProviderTermForPrepayment in interface org.dasein.cloud.admin.PrepaymentSupport
isSubscribed
public boolean isSubscribed()
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
isSubscribed in interface org.dasein.cloud.admin.PrepaymentSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
listOfferings
@Nonnull
public Collection<org.dasein.cloud.admin.Offering> listOfferings()
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
listOfferings in interface org.dasein.cloud.admin.PrepaymentSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
listPrepayments
@Nonnull
public Collection<org.dasein.cloud.admin.Prepayment> listPrepayments()
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
listPrepayments in interface org.dasein.cloud.admin.PrepaymentSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
mapServiceAction
@Nonnull
public String[] mapServiceAction(@Nonnull
org.dasein.cloud.identity.ServiceAction action)
- Specified by:
mapServiceAction in interface org.dasein.cloud.AccessControlledService
prepay
@Nonnull
public String prepay(@Nonnull
String offeringId,
@Nonnegative
int count)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
prepay in interface org.dasein.cloud.admin.PrepaymentSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
Copyright © 2012 enStratus Networks LLC. All Rights Reserved.