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 Summary
ConstructorsConstructorDescriptionCreates an instance of EvaluatePoliciesProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfactData()
Get the factData property: The fact data.factName()
Get the factName property: The fact name.static EvaluatePoliciesProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of EvaluatePoliciesProperties from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Get the userObjectId property: The user for which policies will be evaluated.void
validate()
Validates the instance.Get the valueOffset property: The value offset.withFactData
(String factData) Set the factData property: The fact data.withFactName
(String factName) Set the factName property: The fact name.withUserObjectId
(String userObjectId) Set the userObjectId property: The user for which policies will be evaluated.withValueOffset
(String valueOffset) Set the valueOffset property: The value offset.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
EvaluatePoliciesProperties
public EvaluatePoliciesProperties()Creates an instance of EvaluatePoliciesProperties class.
-
-
Method Details
-
factName
Get the factName property: The fact name.- Returns:
- the factName value.
-
withFactName
Set the factName property: The fact name.- Parameters:
factName
- the factName value to set.- Returns:
- the EvaluatePoliciesProperties object itself.
-
factData
Get the factData property: The fact data.- Returns:
- the factData value.
-
withFactData
Set the factData property: The fact data.- Parameters:
factData
- the factData value to set.- Returns:
- the EvaluatePoliciesProperties object itself.
-
valueOffset
Get the valueOffset property: The value offset.- Returns:
- the valueOffset value.
-
withValueOffset
Set the valueOffset property: The value offset.- Parameters:
valueOffset
- the valueOffset value to set.- Returns:
- the EvaluatePoliciesProperties object itself.
-
userObjectId
Get the userObjectId property: The user for which policies will be evaluated.- Returns:
- the userObjectId value.
-
withUserObjectId
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
- Specified by:
toJson
in interfacecom.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.
-