PolicyProperties Class
- java.
lang. Object - com.
azure. resourcemanager. devtestlabs. fluent. models. PolicyProperties
- com.
public final class PolicyProperties
Properties of a Policy.
Constructor | Description |
---|---|
Policy |
Creates an instance of Policy |
Modifier and Type | Method and Description |
---|---|
Offset |
created Get the created |
String |
description()
Get the description property: The description of the policy. |
Policy |
evaluator Get the evaluator |
String |
fact Get the fact |
Policy |
fact Get the fact |
String |
provisioning Get the provisioning |
Policy |
status()
Get the status property: The status of the policy. |
String |
threshold()
Get the threshold property: The threshold of the policy (i. |
String |
unique Get the unique |
void |
validate()
Validates the instance. |
Policy |
with Set the description property: The description of the policy. |
Policy |
with Set the evaluator |
Policy |
with Set the fact |
Policy |
with Set the fact |
Policy |
with Set the status property: The status of the policy. |
Policy |
with Set the threshold property: The threshold of the policy (i. |
Methods inherited from java.lang.Object
PolicyProperties
public PolicyProperties()
Creates an instance of PolicyProperties class.
createdDate
public OffsetDateTime createdDate()
Get the createdDate property: The creation date of the policy.
Returns:
description
public String description()
Get the description property: The description of the policy.
Returns:
evaluatorType
public PolicyEvaluatorType evaluatorType()
Get the evaluatorType property: The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy).
Returns:
factData
public String factData()
Get the factData property: The fact data of the policy.
Returns:
factName
public PolicyFactName factName()
Get the factName property: The fact name of the policy (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc.
Returns:
provisioningState
public String provisioningState()
Get the provisioningState property: The provisioning status of the resource.
Returns:
status
public PolicyStatus status()
Get the status property: The status of the policy.
Returns:
threshold
public String 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:
uniqueIdentifier
public String uniqueIdentifier()
Get the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).
Returns:
validate
public void validate()
Validates the instance.
withDescription
public PolicyProperties withDescription(String description)
Set the description property: The description of the policy.
Parameters:
Returns:
withEvaluatorType
public PolicyProperties withEvaluatorType(PolicyEvaluatorType evaluatorType)
Set the evaluatorType property: The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy).
Parameters:
Returns:
withFactData
public PolicyProperties withFactData(String factData)
Set the factData property: The fact data of the policy.
Parameters:
Returns:
withFactName
public PolicyProperties withFactName(PolicyFactName factName)
Set the factName property: The fact name of the policy (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc.
Parameters:
Returns:
withStatus
public PolicyProperties withStatus(PolicyStatus status)
Set the status property: The status of the policy.
Parameters:
Returns:
withThreshold
public PolicyProperties withThreshold(String threshold)
Set the threshold property: The threshold of the policy (i.e. a number for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy).
Parameters:
Returns:
Azure SDK for Java geri bildirimi
Azure SDK for Java, açık kaynak bir projedir. Geri bildirim sağlamak için bir bağlantı seçin: