Class PolicyInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.devtestlabs.fluent.models.PolicyInner
public final class PolicyInner
extends com.azure.core.management.Resource
A Policy.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the createdDate property: The creation date of the policy.Get the description property: The description of the policy.Get the evaluatorType property: The evaluator type of the policy (i.e.factData()
Get the factData property: The fact data of the policy.factName()
Get the factName property: The fact name of the policy (e.g.Get the provisioningState property: The provisioning status of the resource.status()
Get the status property: The status of the policy.Get the threshold property: The threshold of the policy (i.e.Get the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).void
validate()
Validates the instance.withDescription
(String description) Set the description property: The description of the policy.withEvaluatorType
(PolicyEvaluatorType evaluatorType) Set the evaluatorType property: The evaluator type of the policy (i.e.withFactData
(String factData) Set the factData property: The fact data of the policy.withFactName
(PolicyFactName factName) Set the factName property: The fact name of the policy (e.g.withLocation
(String location) withStatus
(PolicyStatus status) Set the status property: The status of the policy.withThreshold
(String threshold) Set the threshold property: The threshold of the policy (i.e.Methods inherited from class com.azure.core.management.Resource
location, tags
Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
PolicyInner
public PolicyInner()Creates an instance of PolicyInner class.
-
-
Method Details
-
withLocation
- Overrides:
withLocation
in classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTags
in classcom.azure.core.management.Resource
-
description
Get the description property: The description of the policy.- Returns:
- the description value.
-
withDescription
Set the description property: The description of the policy.- Parameters:
description
- the description value to set.- Returns:
- the PolicyInner object itself.
-
status
Get the status property: The status of the policy.- Returns:
- the status value.
-
withStatus
Set the status property: The status of the policy.- Parameters:
status
- the status value to set.- Returns:
- the PolicyInner object itself.
-
factName
Get the factName property: The fact name of the policy (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc.- Returns:
- the factName value.
-
withFactName
Set the factName property: The fact name of the policy (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc.- Parameters:
factName
- the factName value to set.- Returns:
- the PolicyInner object itself.
-
factData
Get the factData property: The fact data of the policy.- Returns:
- the factData value.
-
withFactData
Set the factData property: The fact data of the policy.- Parameters:
factData
- the factData value to set.- Returns:
- the PolicyInner object itself.
-
threshold
Get the threshold property: The threshold of the policy (i.e. a number for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy).- Returns:
- the threshold value.
-
withThreshold
Set the threshold property: The threshold of the policy (i.e. a number for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy).- Parameters:
threshold
- the threshold value to set.- Returns:
- the PolicyInner object itself.
-
evaluatorType
Get the evaluatorType property: The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy).- Returns:
- the evaluatorType value.
-
withEvaluatorType
Set the evaluatorType property: The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy).- Parameters:
evaluatorType
- the evaluatorType value to set.- Returns:
- the PolicyInner object itself.
-
createdDate
Get the createdDate property: The creation date of the policy.- Returns:
- the createdDate value.
-
provisioningState
Get the provisioningState property: The provisioning status of the resource.- Returns:
- the provisioningState value.
-
uniqueIdentifier
Get the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).- Returns:
- the uniqueIdentifier value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-