InventoryList Class

  • java.lang.Object
    • com.azure.resourcemanager.security.models.InventoryList

Implements

public final class InventoryList
implements JsonSerializable<InventoryList>

Model for inventory to be included or excluded from Agentless.

Constructor Summary

Constructor Description
InventoryList()

Creates an instance of InventoryList class.

Method Summary

Modifier and Type Method and Description
static InventoryList fromJson(JsonReader jsonReader)

Reads an instance of InventoryList from the JsonReader.

InventoryKind inventoryKind()

Get the inventoryKind property: Types for inventory kind.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String value()

Get the value property: Gets or sets the value for inventory type.

InventoryList withInventoryKind(InventoryKind inventoryKind)

Set the inventoryKind property: Types for inventory kind.

InventoryList withValue(String value)

Set the value property: Gets or sets the value for inventory type.

Methods inherited from java.lang.Object

Constructor Details

InventoryList

public InventoryList()

Creates an instance of InventoryList class.

Method Details

fromJson

public static InventoryList fromJson(JsonReader jsonReader)

Reads an instance of InventoryList from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of InventoryList if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the InventoryList.

inventoryKind

public InventoryKind inventoryKind()

Get the inventoryKind property: Types for inventory kind.

Returns:

the inventoryKind value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public String value()

Get the value property: Gets or sets the value for inventory type.

Returns:

the value value.

withInventoryKind

public InventoryList withInventoryKind(InventoryKind inventoryKind)

Set the inventoryKind property: Types for inventory kind.

Parameters:

inventoryKind - the inventoryKind value to set.

Returns:

the InventoryList object itself.

withValue

public InventoryList withValue(String value)

Set the value property: Gets or sets the value for inventory type.

Parameters:

value - the value value to set.

Returns:

the InventoryList object itself.

Applies to