UpdateSensitivitySettingsRequest Class

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

Implements

public final class UpdateSensitivitySettingsRequest
implements JsonSerializable<UpdateSensitivitySettingsRequest>

Request to update data sensitivity settings for sensitive data discovery.

Constructor Summary

Constructor Description
UpdateSensitivitySettingsRequest()

Creates an instance of UpdateSensitivitySettingsRequest class.

Method Summary

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

Reads an instance of UpdateSensitivitySettingsRequest from the JsonReader.

List<String> sensitiveInfoTypesIds()

Get the sensitiveInfoTypesIds property: List of selected sensitive info types' IDs.

String sensitivityThresholdLabelId()

Get the sensitivityThresholdLabelId property: The id of the sensitivity threshold label.

Float sensitivityThresholdLabelOrder()

Get the sensitivityThresholdLabelOrder property: The order of the sensitivity threshold label.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

UpdateSensitivitySettingsRequest withSensitiveInfoTypesIds(List<String> sensitiveInfoTypesIds)

Set the sensitiveInfoTypesIds property: List of selected sensitive info types' IDs.

UpdateSensitivitySettingsRequest withSensitivityThresholdLabelId(String sensitivityThresholdLabelId)

Set the sensitivityThresholdLabelId property: The id of the sensitivity threshold label.

UpdateSensitivitySettingsRequest withSensitivityThresholdLabelOrder(Float sensitivityThresholdLabelOrder)

Set the sensitivityThresholdLabelOrder property: The order of the sensitivity threshold label.

Methods inherited from java.lang.Object

Constructor Details

UpdateSensitivitySettingsRequest

public UpdateSensitivitySettingsRequest()

Creates an instance of UpdateSensitivitySettingsRequest class.

Method Details

fromJson

public static UpdateSensitivitySettingsRequest fromJson(JsonReader jsonReader)

Reads an instance of UpdateSensitivitySettingsRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

sensitiveInfoTypesIds

public List<String> sensitiveInfoTypesIds()

Get the sensitiveInfoTypesIds property: List of selected sensitive info types' IDs.

Returns:

the sensitiveInfoTypesIds value.

sensitivityThresholdLabelId

public String sensitivityThresholdLabelId()

Get the sensitivityThresholdLabelId property: The id of the sensitivity threshold label. Any label at or above this rank will be considered sensitive.

Returns:

the sensitivityThresholdLabelId value.

sensitivityThresholdLabelOrder

public Float sensitivityThresholdLabelOrder()

Get the sensitivityThresholdLabelOrder property: The order of the sensitivity threshold label. Any label at or above this order will be considered sensitive. If set to -1, sensitivity by labels is turned off.

Returns:

the sensitivityThresholdLabelOrder value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withSensitiveInfoTypesIds

public UpdateSensitivitySettingsRequest withSensitiveInfoTypesIds(List<String> sensitiveInfoTypesIds)

Set the sensitiveInfoTypesIds property: List of selected sensitive info types' IDs.

Parameters:

sensitiveInfoTypesIds - the sensitiveInfoTypesIds value to set.

Returns:

the UpdateSensitivitySettingsRequest object itself.

withSensitivityThresholdLabelId

public UpdateSensitivitySettingsRequest withSensitivityThresholdLabelId(String sensitivityThresholdLabelId)

Set the sensitivityThresholdLabelId property: The id of the sensitivity threshold label. Any label at or above this rank will be considered sensitive.

Parameters:

sensitivityThresholdLabelId - the sensitivityThresholdLabelId value to set.

Returns:

the UpdateSensitivitySettingsRequest object itself.

withSensitivityThresholdLabelOrder

public UpdateSensitivitySettingsRequest withSensitivityThresholdLabelOrder(Float sensitivityThresholdLabelOrder)

Set the sensitivityThresholdLabelOrder property: The order of the sensitivity threshold label. Any label at or above this order will be considered sensitive. If set to -1, sensitivity by labels is turned off.

Parameters:

sensitivityThresholdLabelOrder - the sensitivityThresholdLabelOrder value to set.

Returns:

the UpdateSensitivitySettingsRequest object itself.

Applies to