Class SensitivityLabel

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

public final class SensitivityLabel extends Object
The sensitivity label.
  • Constructor Details

    • SensitivityLabel

      public SensitivityLabel()
      Creates an instance of SensitivityLabel class.
  • Method Details

    • displayName

      public String displayName()
      Get the displayName property: The name of the sensitivity label.
      Returns:
      the displayName value.
    • 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.
    • description

      public String description()
      Get the description property: The description of the sensitivity label.
      Returns:
      the description value.
    • 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.
    • rank

      public Rank rank()
      Get the rank property: The rank of the sensitivity label.
      Returns:
      the rank value.
    • 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.
    • order

      public Integer order()
      Get the order property: The order of the sensitivity label.
      Returns:
      the order value.
    • 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.
    • enabled

      public Boolean enabled()
      Get the enabled property: Indicates whether the label is enabled or not.
      Returns:
      the enabled value.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.