public class InventoryItemSchema extends Object implements Serializable, Cloneable
The inventory item schema definition. Users can use this to compose inventory query filters.
Constructor and Description |
---|
InventoryItemSchema() |
Modifier and Type | Method and Description |
---|---|
InventoryItemSchema |
clone() |
boolean |
equals(Object obj) |
List<InventoryItemAttribute> |
getAttributes()
The schema attributes for inventory.
|
String |
getTypeName()
The name of the inventory type.
|
String |
getVersion()
The schema version for the inventory item.
|
int |
hashCode() |
void |
setAttributes(Collection<InventoryItemAttribute> attributes)
The schema attributes for inventory.
|
void |
setTypeName(String typeName)
The name of the inventory type.
|
void |
setVersion(String version)
The schema version for the inventory item.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
InventoryItemSchema |
withAttributes(Collection<InventoryItemAttribute> attributes)
The schema attributes for inventory.
|
InventoryItemSchema |
withAttributes(InventoryItemAttribute... attributes)
The schema attributes for inventory.
|
InventoryItemSchema |
withTypeName(String typeName)
The name of the inventory type.
|
InventoryItemSchema |
withVersion(String version)
The schema version for the inventory item.
|
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 InventoryItemSchema 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 setVersion(String version)
The schema version for the inventory item.
version
- The schema version for the inventory item.public String getVersion()
The schema version for the inventory item.
public InventoryItemSchema withVersion(String version)
The schema version for the inventory item.
version
- The schema version for the inventory item.public List<InventoryItemAttribute> getAttributes()
The schema attributes for inventory. This contains data type and attribute name.
public void setAttributes(Collection<InventoryItemAttribute> attributes)
The schema attributes for inventory. This contains data type and attribute name.
attributes
- The schema attributes for inventory. This contains data type and attribute name.public InventoryItemSchema withAttributes(InventoryItemAttribute... attributes)
The schema attributes for inventory. This contains data type and attribute name.
NOTE: This method appends the values to the existing list (if any). Use
setAttributes(java.util.Collection)
or withAttributes(java.util.Collection)
if you want to
override the existing values.
attributes
- The schema attributes for inventory. This contains data type and attribute name.public InventoryItemSchema withAttributes(Collection<InventoryItemAttribute> attributes)
The schema attributes for inventory. This contains data type and attribute name.
attributes
- The schema attributes for inventory. This contains data type and attribute name.public String toString()
toString
in class Object
Object.toString()
public InventoryItemSchema clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.