AssignedComponentItem Class

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

Implements

public final class AssignedComponentItem
implements JsonSerializable<AssignedComponentItem>

describe the properties of a security assessment object reference (by key).

Constructor Summary

Constructor Description
AssignedComponentItem()

Creates an instance of AssignedComponentItem class.

Method Summary

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

Reads an instance of AssignedComponentItem from the JsonReader.

String key()

Get the key property: unique key to a security assessment object.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AssignedComponentItem withKey(String key)

Set the key property: unique key to a security assessment object.

Methods inherited from java.lang.Object

Constructor Details

AssignedComponentItem

public AssignedComponentItem()

Creates an instance of AssignedComponentItem class.

Method Details

fromJson

public static AssignedComponentItem fromJson(JsonReader jsonReader)

Reads an instance of AssignedComponentItem from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AssignedComponentItem 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 AssignedComponentItem.

key

public String key()

Get the key property: unique key to a security assessment object.

Returns:

the key value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withKey

public AssignedComponentItem withKey(String key)

Set the key property: unique key to a security assessment object.

Parameters:

key - the key value to set.

Returns:

the AssignedComponentItem object itself.

Applies to