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