SingleLabelClassifyOptions Class

  • java.lang.Object
    • com.azure.ai.textanalytics.models.SingleLabelClassifyOptions

public final class SingleLabelClassifyOptions

The SingleLabelClassifyOptions model.

Constructor Summary

Constructor Description
SingleLabelClassifyOptions()

Constructs a SingleLabelClassifyOptions model.

Method Summary

Modifier and Type Method and Description
String getDisplayName()

Gets display name of the operation.

boolean isIncludeStatistics()

Get the value of includeStatistics.

boolean isServiceLogsDisabled()

Gets the value of disableServiceLogs.

SingleLabelClassifyOptions setDisplayName(String displayName)

Sets display name of the operation.

SingleLabelClassifyOptions setIncludeStatistics(boolean includeStatistics)

Set the value of includeStatistics.

SingleLabelClassifyOptions setServiceLogsDisabled(boolean disableServiceLogs)

Sets the value of disableServiceLogs.

Methods inherited from java.lang.Object

Constructor Details

SingleLabelClassifyOptions

public SingleLabelClassifyOptions()

Constructs a SingleLabelClassifyOptions model.

Method Details

getDisplayName

public String getDisplayName()

Gets display name of the operation.

Returns:

Display name of the operation.

isIncludeStatistics

public boolean isIncludeStatistics()

Get the value of includeStatistics.

Returns:

The value of includeStatistics.

isServiceLogsDisabled

public boolean isServiceLogsDisabled()

Gets the value of disableServiceLogs.

Returns:

The value of disableServiceLogs. The default value of this property is 'false'. This means, Text Analytics service logs your input text for 48 hours, solely to allow for troubleshooting issues. Setting this property to true, disables input logging and may limit our ability to investigate issues that occur.

setDisplayName

public SingleLabelClassifyOptions setDisplayName(String displayName)

Sets display name of the operation.

Parameters:

displayName - Display name of the operation.

Returns:

The SingleLabelClassifyOptions object itself.

setIncludeStatistics

public SingleLabelClassifyOptions setIncludeStatistics(boolean includeStatistics)

Set the value of includeStatistics. The default value is false by default. If set to true, indicates that the service should return document and document batch statistics with the results of the operation.

Parameters:

includeStatistics - If a boolean value was specified in the request this field will contain information about the document payload.

Returns:

the SingleLabelClassifyOptions object itself.

setServiceLogsDisabled

public SingleLabelClassifyOptions setServiceLogsDisabled(boolean disableServiceLogs)

Sets the value of disableServiceLogs.

Parameters:

disableServiceLogs - The default value of this property is 'false'. This means, Text Analytics service logs your input text for 48 hours, solely to allow for troubleshooting issues. Setting this property to true, disables input logging and may limit our ability to investigate issues that occur.

Returns:

The MultiLabelClassifyAction object itself.

Applies to