@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InventoryItem extends Object implements Serializable, Cloneable, StructuredPojo
Information collected from managed nodes based on your inventory policy document
Constructor and Description |
---|
InventoryItem() |
Modifier and Type | Method and Description |
---|---|
InventoryItem |
addContextEntry(String key,
String value)
Add a single Context entry
|
InventoryItem |
clearContextEntries()
Removes all the entries added into Context.
|
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.
|
Map<String,String> |
getContext()
A map of associated properties for a specified inventory type.
|
String |
getSchemaVersion()
The schema version for the inventory item.
|
String |
getTypeName()
The name of the inventory type.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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 |
setContext(Map<String,String> context)
A map of associated properties for a specified inventory type.
|
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.
|
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 |
withContext(Map<String,String> context)
A map of associated properties for a specified inventory type.
|
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 doesn't update the inventory item type contents if the MD5 hash hasn't 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 doesn't update the inventory item type contents if the MD5
hash hasn't 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 doesn't update the inventory item type contents if the MD5 hash hasn't 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 doesn't update the inventory item type contents if the MD5 hash hasn't 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 doesn't update the inventory item type contents if the MD5
hash hasn't 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 Map<String,String> getContext()
A map of associated properties for a specified inventory type. For example, with this attribute, you can specify
the ExecutionId
, ExecutionType
, ComplianceType
properties of the
AWS:ComplianceItem
type.
ExecutionId
, ExecutionType
, ComplianceType
properties
of the AWS:ComplianceItem
type.public void setContext(Map<String,String> context)
A map of associated properties for a specified inventory type. For example, with this attribute, you can specify
the ExecutionId
, ExecutionType
, ComplianceType
properties of the
AWS:ComplianceItem
type.
context
- A map of associated properties for a specified inventory type. For example, with this attribute, you can
specify the ExecutionId
, ExecutionType
, ComplianceType
properties
of the AWS:ComplianceItem
type.public InventoryItem withContext(Map<String,String> context)
A map of associated properties for a specified inventory type. For example, with this attribute, you can specify
the ExecutionId
, ExecutionType
, ComplianceType
properties of the
AWS:ComplianceItem
type.
context
- A map of associated properties for a specified inventory type. For example, with this attribute, you can
specify the ExecutionId
, ExecutionType
, ComplianceType
properties
of the AWS:ComplianceItem
type.public InventoryItem addContextEntry(String key, String value)
public InventoryItem clearContextEntries()
public String toString()
toString
in class Object
Object.toString()
public InventoryItem clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.