@Generated(value="software.amazon.awssdk:codegen") public class InventoryItem extends Object implements StructuredPojo, ToCopyableBuilder<InventoryItem.Builder,InventoryItem>
Information collected from managed instances based on your inventory policy document
Modifier and Type | Class and Description |
---|---|
static interface |
InventoryItem.Builder |
Modifier and Type | Method and Description |
---|---|
static InventoryItem.Builder |
builder() |
String |
captureTime()
The time the inventory information was collected.
|
List<Map<String,String>> |
content()
The inventory data of the inventory type.
|
String |
contentHash()
MD5 hash of the inventory item type contents.
|
Map<String,String> |
context()
A map of associated properties for a specified inventory type.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
schemaVersion()
The schema version for the inventory item.
|
static Class<? extends InventoryItem.Builder> |
serializableBuilderClass() |
InventoryItem.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
typeName()
The name of the inventory type.
|
copy
public 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.
public String schemaVersion()
The schema version for the inventory item.
public String captureTime()
The time the inventory information was collected.
public 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.
public List<Map<String,String>> content()
The inventory data of the inventory type.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public 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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
ExecutionId
, ExecutionType
, ComplianceType
properties
of the AWS:ComplianceItem
type.public InventoryItem.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<InventoryItem.Builder,InventoryItem>
public static InventoryItem.Builder builder()
public static Class<? extends InventoryItem.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.