public abstract class AbstractComputeInstanceMetadata extends Object implements ComputeInstanceMetadata
| Modifier and Type | Field and Description |
|---|---|
protected String |
availabilityZone |
protected String |
region |
| Constructor and Description |
|---|
AbstractComputeInstanceMetadata() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComputePlatformpublic String getImageId()
getImageId in interface ComputeInstanceMetadatapublic String getAccount()
getAccount in interface ComputeInstanceMetadatapublic Map<String,String> getMetadata()
ComputeInstanceMetadatagetMetadata in interface ComputeInstanceMetadatapublic List<NetworkInterface> getInterfaces()
ComputeInstanceMetadatagetInterfaces in interface ComputeInstanceMetadataNetworkInterface instancespublic Map<String,String> getTags()
ComputeInstanceMetadatagetTags in interface ComputeInstanceMetadatapublic String getName()
ComputeInstanceMetadataComputeInstanceMetadata.getInstanceId(). Some cloud platforms assign unique IDsgetName in interface ComputeInstanceMetadatapublic String getRegion()
getRegion in interface ComputeInstanceMetadatapublic String getInstanceId()
getInstanceId in interface ComputeInstanceMetadatapublic String getMachineType()
getMachineType in interface ComputeInstanceMetadatapublic String getAvailabilityZone()
getAvailabilityZone in interface ComputeInstanceMetadatapublic String getLocalHostname()
getLocalHostname in interface ComputeInstanceMetadatapublic String getPrivateHostname()
getPrivateHostname in interface ComputeInstanceMetadatapublic String getPublicIpV4()
getPublicIpV4 in interface ComputeInstanceMetadatapublic String getPublicIpV6()
getPublicIpV6 in interface ComputeInstanceMetadatapublic String getPrivateIpV4()
getPrivateIpV4 in interface ComputeInstanceMetadatapublic String getPrivateIpV6()
getPrivateIpV6 in interface ComputeInstanceMetadatapublic String getDescription()
getDescription in interface ComputeInstanceMetadatapublic String getPublicHostname()
getPublicHostname in interface ComputeInstanceMetadatapublic boolean isCached()
isCached in interface ComputeInstanceMetadatapublic void setInterfaces(List<NetworkInterface> interfaces)
interfaces - the list of interfacespublic void setMetadata(Map<String,String> metadata)
metadata - key/value metadatapublic void setName(String name)
name - instance namepublic void setAvailabilityZone(String availabilityZone)
availabilityZone - the availability zonepublic void setLocalHostname(String localHostname)
localHostname - the local host namepublic void setPublicHostname(String publicHostname)
publicHostname - the public host namepublic void setDescription(String description)
description - the descriptionpublic void setMachineType(String machineType)
machineType - the machine typepublic void setInstanceId(String instanceId)
instanceId - the instance IDpublic void setRegion(String region)
region - the regionpublic void setAccount(String account)
account - the accountpublic void setImageId(String imageId)
imageId - the image IDpublic void setPublicIpV4(String publicIpV4)
publicIpV4 - the public IPV4public void setPublicIpV6(String publicIpV6)
publicIpV6 - the public IPV6public void setPrivateIpV4(String privateIpV4)
privateIpV4 - the private IPV4public void setPrivateIpV6(String privateIpV6)
privateIpV6 - the private IPV4public void setCached(boolean cached)
cached - whether this instance is cached