PolicyInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. devtestlabs. fluent. models. PolicyInner
- com.
- com.
- com.
public final class PolicyInner
extends Resource
A Policy.
Constructor Summary
Constructor | Description |
---|---|
PolicyInner() |
Creates an instance of Policy |
Method Summary
Modifier and Type | Method and Description |
---|---|
Offset |
createdDate()
Get the created |
String |
description()
Get the description property: The description of the policy. |
Policy |
evaluatorType()
Get the evaluator |
String |
factData()
Get the fact |
Policy |
factName()
Get the fact |
String |
provisioningState()
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 |
uniqueIdentifier()
Get the unique |
void |
validate()
Validates the instance. |
Policy |
withDescription(String description)
Set the description property: The description of the policy. |
Policy |
withEvaluatorType(PolicyEvaluatorType evaluatorType)
Set the evaluator |
Policy |
withFactData(String factData)
Set the fact |
Policy |
withFactName(PolicyFactName factName)
Set the fact |
Policy |
withLocation(String location) |
Policy |
withStatus(PolicyStatus status)
Set the status property: The status of the policy. |
Policy |
withTags(Map<String,String> tags) |
Policy |
withThreshold(String threshold)
Set the threshold property: The threshold of the policy (i. |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
PolicyInner
public PolicyInner()
Creates an instance of PolicyInner class.
Method Details
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 PolicyInner withDescription(String description)
Set the description property: The description of the policy.
Parameters:
Returns:
withEvaluatorType
public PolicyInner withEvaluatorType(PolicyEvaluatorType evaluatorType)
Set the evaluatorType property: The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy).
Parameters:
Returns:
withFactData
public PolicyInner withFactData(String factData)
Set the factData property: The fact data of the policy.
Parameters:
Returns:
withFactName
public PolicyInner withFactName(PolicyFactName factName)
Set the factName property: The fact name of the policy (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc.
Parameters:
Returns:
withLocation
public PolicyInner withLocation(String location)
Overrides:
PolicyInner.withLocation(String location)Parameters:
withStatus
public PolicyInner withStatus(PolicyStatus status)
Set the status property: The status of the policy.
Parameters:
Returns:
withTags
public PolicyInner withTags(Map
Overrides:
PolicyInner.withTags(Map<String,String> tags)Parameters:
withThreshold
public PolicyInner 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:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for