public class InventoryItem extends Object implements Serializable, Cloneable
Information collected from managed instances based on your inventory policy document
Constructor and Description |
---|
InventoryItem() |
Modifier and Type | Method and Description |
---|---|
InventoryItem |
clone() |
boolean |
equals(Object obj) |
String |
getCaptureTime()
The time the inventory information was collected.
|
List<Map<String,String>> |
getContent()
The inventory data of the inventory type.
|
String |
getContentHash()
MD5 hash of the inventory item type contents.
|
String |
getSchemaVersion()
The schema version for the inventory item.
|
String |
getTypeName()
The name of the inventory type.
|
int |
hashCode() |
void |
setCaptureTime(String captureTime)
The time the inventory information was collected.
|
void |
setContent(Collection<Map<String,String>> content)
The inventory data of the inventory type.
|
void |
setContentHash(String contentHash)
MD5 hash of the inventory item type contents.
|
void |
setSchemaVersion(String schemaVersion)
The schema version for the inventory item.
|
void |
setTypeName(String typeName)
The name of the inventory type.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
InventoryItem |
withCaptureTime(String captureTime)
The time the inventory information was collected.
|
InventoryItem |
withContent(Collection<Map<String,String>> content)
The inventory data of the inventory type.
|
InventoryItem |
withContent(Map<String,String>... content)
The inventory data of the inventory type.
|
InventoryItem |
withContentHash(String contentHash)
MD5 hash of the inventory item type contents.
|
InventoryItem |
withSchemaVersion(String schemaVersion)
The schema version for the inventory item.
|
InventoryItem |
withTypeName(String typeName)
The name of the inventory type.
|
public void setTypeName(String typeName)
The name of the inventory type. Default inventory item type names start with AWS
. Custom inventory
type names will start with Custom
. Default inventory item types include the following:
AWS:AWSComponent
, AWS:Application
, AWS:InstanceInformation
,
AWS:Network
, and AWS:WindowsUpdate
.
typeName
- The name of the inventory type. Default inventory item type names start with AWS
. Custom
inventory type names will start with Custom
. Default inventory item types include the
following: AWS:AWSComponent
, AWS:Application
,
AWS:InstanceInformation
, AWS:Network
, and AWS:WindowsUpdate
.public String getTypeName()
The name of the inventory type. Default inventory item type names start with AWS
. Custom inventory
type names will start with Custom
. Default inventory item types include the following:
AWS:AWSComponent
, AWS:Application
, AWS:InstanceInformation
,
AWS:Network
, and AWS:WindowsUpdate
.
AWS
. Custom
inventory type names will start with Custom
. Default inventory item types include the
following: AWS:AWSComponent
, AWS:Application
,
AWS:InstanceInformation
, AWS:Network
, and AWS:WindowsUpdate
.public InventoryItem withTypeName(String typeName)
The name of the inventory type. Default inventory item type names start with AWS
. Custom inventory
type names will start with Custom
. Default inventory item types include the following:
AWS:AWSComponent
, AWS:Application
, AWS:InstanceInformation
,
AWS:Network
, and AWS:WindowsUpdate
.
typeName
- The name of the inventory type. Default inventory item type names start with AWS
. Custom
inventory type names will start with Custom
. Default inventory item types include the
following: AWS:AWSComponent
, AWS:Application
,
AWS:InstanceInformation
, AWS:Network
, and AWS:WindowsUpdate
.public void setSchemaVersion(String schemaVersion)
The schema version for the inventory item.
schemaVersion
- The schema version for the inventory item.public String getSchemaVersion()
The schema version for the inventory item.
public InventoryItem withSchemaVersion(String schemaVersion)
The schema version for the inventory item.
schemaVersion
- The schema version for the inventory item.public void setCaptureTime(String captureTime)
The time the inventory information was collected.
captureTime
- The time the inventory information was collected.public String getCaptureTime()
The time the inventory information was collected.
public InventoryItem withCaptureTime(String captureTime)
The time the inventory information was collected.
captureTime
- The time the inventory information was collected.public void setContentHash(String contentHash)
MD5 hash of the inventory item type contents. The content hash is used to determine whether to update inventory
information. The PutInventory
API does not update the inventory item type contents if the MD5 hash
has not changed since last update.
contentHash
- MD5 hash of the inventory item type contents. The content hash is used to determine whether to update
inventory information. The PutInventory
API does not update the inventory item type contents
if the MD5 hash has not changed since last update.public String getContentHash()
MD5 hash of the inventory item type contents. The content hash is used to determine whether to update inventory
information. The PutInventory
API does not update the inventory item type contents if the MD5 hash
has not changed since last update.
PutInventory
API does not update the inventory item type contents
if the MD5 hash has not changed since last update.public InventoryItem withContentHash(String contentHash)
MD5 hash of the inventory item type contents. The content hash is used to determine whether to update inventory
information. The PutInventory
API does not update the inventory item type contents if the MD5 hash
has not changed since last update.
contentHash
- MD5 hash of the inventory item type contents. The content hash is used to determine whether to update
inventory information. The PutInventory
API does not update the inventory item type contents
if the MD5 hash has not changed since last update.public List<Map<String,String>> getContent()
The inventory data of the inventory type.
public void setContent(Collection<Map<String,String>> content)
The inventory data of the inventory type.
content
- The inventory data of the inventory type.public InventoryItem withContent(Map<String,String>... content)
The inventory data of the inventory type.
NOTE: This method appends the values to the existing list (if any). Use
setContent(java.util.Collection)
or withContent(java.util.Collection)
if you want to override
the existing values.
content
- The inventory data of the inventory type.public InventoryItem withContent(Collection<Map<String,String>> content)
The inventory data of the inventory type.
content
- The inventory data of the inventory type.public String toString()
toString
in class Object
Object.toString()
public InventoryItem clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.