public interface EC2Api extends Closeable
Optional
type allows you to check to see if the underlying
implementation supports a particular feature before attempting to use it.
This is useful in clones like OpenStack, CloudStack, or Eucalyptus, which
track the api, but are always behind Amazon's service. In the case of Amazon
(aws-ec2
), you can expect all features to be present.
Example
Optional<? extends WindowsApi> windowsOption = ec2Api.getWindowsApi(); checkState(windowsOption.isPresent(), "windows feature required, but not present");
Modifier and Type | Method and Description |
---|---|
com.google.common.base.Optional<? extends AMIApi> |
getAMIApi()
Provides synchronous access to AMI services.
|
com.google.common.base.Optional<? extends AMIApi> |
getAMIApiForRegion(String region) |
com.google.common.base.Optional<? extends AvailabilityZoneAndRegionApi> |
getAvailabilityZoneAndRegionApi()
Provides synchronous access to Availability Zones and Regions services.
|
com.google.common.base.Optional<? extends AvailabilityZoneAndRegionApi> |
getAvailabilityZoneAndRegionApiForRegion(String region) |
Set<String> |
getConfiguredRegions() |
com.google.common.base.Optional<? extends ElasticBlockStoreApi> |
getElasticBlockStoreApi()
Provides synchronous access to Elastic Block Store services.
|
com.google.common.base.Optional<? extends ElasticBlockStoreApi> |
getElasticBlockStoreApiForRegion(String region) |
com.google.common.base.Optional<? extends ElasticIPAddressApi> |
getElasticIPAddressApi()
Provides synchronous access to Elastic IP Address services.
|
com.google.common.base.Optional<? extends ElasticIPAddressApi> |
getElasticIPAddressApiForRegion(String region) |
com.google.common.base.Optional<? extends InstanceApi> |
getInstanceApi()
Provides synchronous access to Instance services.
|
com.google.common.base.Optional<? extends InstanceApi> |
getInstanceApiForRegion(String region) |
com.google.common.base.Optional<? extends KeyPairApi> |
getKeyPairApi()
Provides synchronous access to KeyPair services.
|
com.google.common.base.Optional<? extends KeyPairApi> |
getKeyPairApiForRegion(String region) |
com.google.common.base.Optional<? extends SecurityGroupApi> |
getSecurityGroupApi()
Provides synchronous access to SecurityGroup services.
|
com.google.common.base.Optional<? extends SecurityGroupApi> |
getSecurityGroupApiForRegion(String region) |
com.google.common.base.Optional<? extends SubnetApi> |
getSubnetApi()
Provides synchronous access to Subnet features.
|
com.google.common.base.Optional<? extends SubnetApi> |
getSubnetApiForRegion(String region) |
com.google.common.base.Optional<? extends TagApi> |
getTagApi()
Provides synchronous access to Tag features.
|
com.google.common.base.Optional<? extends TagApi> |
getTagApiForRegion(String region) |
com.google.common.base.Optional<? extends WindowsApi> |
getWindowsApi()
Provides synchronous access to Windows features.
|
com.google.common.base.Optional<? extends WindowsApi> |
getWindowsApiForRegion(String region) |
@Provides Set<String> getConfiguredRegions()
com.google.common.base.Optional<? extends WindowsApi> getWindowsApi()
com.google.common.base.Optional<? extends WindowsApi> getWindowsApiForRegion(@Nullable String region)
com.google.common.base.Optional<? extends TagApi> getTagApi()
com.google.common.base.Optional<? extends TagApi> getTagApiForRegion(@Nullable String region)
com.google.common.base.Optional<? extends SubnetApi> getSubnetApi()
com.google.common.base.Optional<? extends SubnetApi> getSubnetApiForRegion(@Nullable String region)
com.google.common.base.Optional<? extends AMIApi> getAMIApi()
com.google.common.base.Optional<? extends AMIApi> getAMIApiForRegion(@Nullable String region)
com.google.common.base.Optional<? extends ElasticIPAddressApi> getElasticIPAddressApi()
com.google.common.base.Optional<? extends ElasticIPAddressApi> getElasticIPAddressApiForRegion(@Nullable String region)
com.google.common.base.Optional<? extends InstanceApi> getInstanceApi()
com.google.common.base.Optional<? extends InstanceApi> getInstanceApiForRegion(@Nullable String region)
com.google.common.base.Optional<? extends KeyPairApi> getKeyPairApi()
com.google.common.base.Optional<? extends KeyPairApi> getKeyPairApiForRegion(@Nullable String region)
com.google.common.base.Optional<? extends SecurityGroupApi> getSecurityGroupApi()
com.google.common.base.Optional<? extends SecurityGroupApi> getSecurityGroupApiForRegion(@Nullable String region)
com.google.common.base.Optional<? extends AvailabilityZoneAndRegionApi> getAvailabilityZoneAndRegionApi()
com.google.common.base.Optional<? extends AvailabilityZoneAndRegionApi> getAvailabilityZoneAndRegionApiForRegion(@Nullable String region)
com.google.common.base.Optional<? extends ElasticBlockStoreApi> getElasticBlockStoreApi()
com.google.common.base.Optional<? extends ElasticBlockStoreApi> getElasticBlockStoreApiForRegion(@Nullable String region)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.