SensitivityLabel Class

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

public final class SensitivityLabel

The sensitivity label.

Constructor Summary

Constructor Description
SensitivityLabel()

Creates an instance of SensitivityLabel class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: The description of the sensitivity label.

String displayName()

Get the displayName property: The name of the sensitivity label.

Boolean enabled()

Get the enabled property: Indicates whether the label is enabled or not.

Integer order()

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

Rank rank()

Get the rank property: The rank of the sensitivity label.

void validate()

Validates the instance.

SensitivityLabel withDescription(String description)

Set the description property: The description of the sensitivity label.

SensitivityLabel withDisplayName(String displayName)

Set the displayName property: The name of the sensitivity label.

SensitivityLabel withEnabled(Boolean enabled)

Set the enabled property: Indicates whether the label is enabled or not.

SensitivityLabel withOrder(Integer order)

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

SensitivityLabel withRank(Rank rank)

Set the rank property: The rank of the sensitivity label.

Methods inherited from java.lang.Object

Constructor Details

SensitivityLabel

public SensitivityLabel()

Creates an instance of SensitivityLabel class.

Method Details

description

public String description()

Get the description property: The description of the sensitivity label.

Returns:

the description value.

displayName

public String displayName()

Get the displayName property: The name of the sensitivity label.

Returns:

the displayName value.

enabled

public Boolean enabled()

Get the enabled property: Indicates whether the label is enabled or not.

Returns:

the enabled value.

order

public Integer order()

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

Returns:

the order value.

rank

public Rank rank()

Get the rank property: The rank of the sensitivity label.

Returns:

the rank value.

validate

public void validate()

Validates the instance.

withDescription

public SensitivityLabel withDescription(String description)

Set the description property: The description of the sensitivity label.

Parameters:

description - the description value to set.

Returns:

the SensitivityLabel object itself.

withDisplayName

public SensitivityLabel withDisplayName(String displayName)

Set the displayName property: The name of the sensitivity label.

Parameters:

displayName - the displayName value to set.

Returns:

the SensitivityLabel object itself.

withEnabled

public SensitivityLabel withEnabled(Boolean enabled)

Set the enabled property: Indicates whether the label is enabled or not.

Parameters:

enabled - the enabled value to set.

Returns:

the SensitivityLabel object itself.

withOrder

public SensitivityLabel withOrder(Integer order)

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

Parameters:

order - the order value to set.

Returns:

the SensitivityLabel object itself.

withRank

public SensitivityLabel withRank(Rank rank)

Set the rank property: The rank of the sensitivity label.

Parameters:

rank - the rank value to set.

Returns:

the SensitivityLabel object itself.

Applies to