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, wait
getComputePlatform
public String getImageId()
getImageId
in interface ComputeInstanceMetadata
public String getAccount()
getAccount
in interface ComputeInstanceMetadata
public Map<String,String> getMetadata()
ComputeInstanceMetadata
getMetadata
in interface ComputeInstanceMetadata
public List<NetworkInterface> getInterfaces()
ComputeInstanceMetadata
getInterfaces
in interface ComputeInstanceMetadata
NetworkInterface
instancespublic Map<String,String> getTags()
ComputeInstanceMetadata
getTags
in interface ComputeInstanceMetadata
public String getName()
ComputeInstanceMetadata
ComputeInstanceMetadata.getInstanceId()
. Some cloud platforms assign unique IDsgetName
in interface ComputeInstanceMetadata
public String getRegion()
getRegion
in interface ComputeInstanceMetadata
public String getInstanceId()
getInstanceId
in interface ComputeInstanceMetadata
public String getMachineType()
getMachineType
in interface ComputeInstanceMetadata
public String getAvailabilityZone()
getAvailabilityZone
in interface ComputeInstanceMetadata
public String getLocalHostname()
getLocalHostname
in interface ComputeInstanceMetadata
public String getPrivateHostname()
getPrivateHostname
in interface ComputeInstanceMetadata
public String getPublicIpV4()
getPublicIpV4
in interface ComputeInstanceMetadata
public String getPublicIpV6()
getPublicIpV6
in interface ComputeInstanceMetadata
public String getPrivateIpV4()
getPrivateIpV4
in interface ComputeInstanceMetadata
public String getPrivateIpV6()
getPrivateIpV6
in interface ComputeInstanceMetadata
public String getDescription()
getDescription
in interface ComputeInstanceMetadata
public String getPublicHostname()
getPublicHostname
in interface ComputeInstanceMetadata
public boolean isCached()
isCached
in interface ComputeInstanceMetadata
public 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