Class EvaluatePoliciesProperties

java.lang.Object
com.azure.resourcemanager.devtestlabs.models.EvaluatePoliciesProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<EvaluatePoliciesProperties>

public final class EvaluatePoliciesProperties extends Object implements com.azure.json.JsonSerializable<EvaluatePoliciesProperties>
Properties for evaluating a policy set.
  • Constructor Details

    • EvaluatePoliciesProperties

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

    • factName

      public String factName()
      Get the factName property: The fact name.
      Returns:
      the factName value.
    • withFactName

      public EvaluatePoliciesProperties withFactName(String factName)
      Set the factName property: The fact name.
      Parameters:
      factName - the factName value to set.
      Returns:
      the EvaluatePoliciesProperties object itself.
    • factData

      public String factData()
      Get the factData property: The fact data.
      Returns:
      the factData value.
    • withFactData

      public EvaluatePoliciesProperties withFactData(String factData)
      Set the factData property: The fact data.
      Parameters:
      factData - the factData value to set.
      Returns:
      the EvaluatePoliciesProperties object itself.
    • valueOffset

      public String valueOffset()
      Get the valueOffset property: The value offset.
      Returns:
      the valueOffset value.
    • withValueOffset

      public EvaluatePoliciesProperties withValueOffset(String valueOffset)
      Set the valueOffset property: The value offset.
      Parameters:
      valueOffset - the valueOffset value to set.
      Returns:
      the EvaluatePoliciesProperties object itself.
    • userObjectId

      public String userObjectId()
      Get the userObjectId property: The user for which policies will be evaluated.
      Returns:
      the userObjectId value.
    • withUserObjectId

      public EvaluatePoliciesProperties withUserObjectId(String userObjectId)
      Set the userObjectId property: The user for which policies will be evaluated.
      Parameters:
      userObjectId - the userObjectId value to set.
      Returns:
      the EvaluatePoliciesProperties object itself.
    • validate

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<EvaluatePoliciesProperties>
      Throws:
      IOException
    • fromJson

      public static EvaluatePoliciesProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of EvaluatePoliciesProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of EvaluatePoliciesProperties 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 EvaluatePoliciesProperties.