Class PolicyLogInfo
java.lang.Object
com.azure.resourcemanager.resources.models.PolicyLogInfo
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PolicyLogInfo>
public final class PolicyLogInfo
extends Object
implements com.azure.json.JsonSerializable<PolicyLogInfo>
The policy log info.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the ancestors property: The management group ancestors.Get the complianceReasonCode property: The policy compliance reason code.static PolicyLogInfofromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PolicyLogInfo from the JsonReader.Get the policyAssignmentDisplayName property: The policy assignment display name.Get the policyAssignmentId property: The policy assignment Id.Get the policyAssignmentName property: The policy assignment name.Get the policyAssignmentScope property: The policy assignment scope.Get the policyAssignmentVersion property: The policy assignment version.Get the policyDefinitionDisplayName property: The policy definition display name.Get the policyDefinitionEffect property: The policy definition action.Get the policyDefinitionGroupNames property: An array of policy definition group names.Get the policyDefinitionId property: The policy definition Id.Get the policyDefinitionName property: The policy definition name.Get the policyDefinitionReferenceId property: The policy definition instance Id inside a policy set.Get the policyDefinitionVersion property: The policy definition version.Get the policyExemptionIds property: An array of policy exemption Ids.Get the policySetDefinitionCategory property: The policy set definition category.Get the policySetDefinitionDisplayName property: The policy set definition display name.Get the policySetDefinitionId property: The policy set definition Id.Get the policySetDefinitionName property: The policy set definition name.Get the policySetDefinitionVersion property: The policy set definition version.Get the resourceLocation property: The resource location.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAncestors(String ancestors) Set the ancestors property: The management group ancestors.withComplianceReasonCode(String complianceReasonCode) Set the complianceReasonCode property: The policy compliance reason code.withPolicyAssignmentDisplayName(String policyAssignmentDisplayName) Set the policyAssignmentDisplayName property: The policy assignment display name.withPolicyAssignmentId(String policyAssignmentId) Set the policyAssignmentId property: The policy assignment Id.withPolicyAssignmentName(String policyAssignmentName) Set the policyAssignmentName property: The policy assignment name.withPolicyAssignmentScope(String policyAssignmentScope) Set the policyAssignmentScope property: The policy assignment scope.withPolicyAssignmentVersion(String policyAssignmentVersion) Set the policyAssignmentVersion property: The policy assignment version.withPolicyDefinitionDisplayName(String policyDefinitionDisplayName) Set the policyDefinitionDisplayName property: The policy definition display name.withPolicyDefinitionEffect(String policyDefinitionEffect) Set the policyDefinitionEffect property: The policy definition action.withPolicyDefinitionGroupNames(List<String> policyDefinitionGroupNames) Set the policyDefinitionGroupNames property: An array of policy definition group names.withPolicyDefinitionId(String policyDefinitionId) Set the policyDefinitionId property: The policy definition Id.withPolicyDefinitionName(String policyDefinitionName) Set the policyDefinitionName property: The policy definition name.withPolicyDefinitionReferenceId(String policyDefinitionReferenceId) Set the policyDefinitionReferenceId property: The policy definition instance Id inside a policy set.withPolicyDefinitionVersion(String policyDefinitionVersion) Set the policyDefinitionVersion property: The policy definition version.withPolicyExemptionIds(List<String> policyExemptionIds) Set the policyExemptionIds property: An array of policy exemption Ids.withPolicySetDefinitionCategory(String policySetDefinitionCategory) Set the policySetDefinitionCategory property: The policy set definition category.withPolicySetDefinitionDisplayName(String policySetDefinitionDisplayName) Set the policySetDefinitionDisplayName property: The policy set definition display name.withPolicySetDefinitionId(String policySetDefinitionId) Set the policySetDefinitionId property: The policy set definition Id.withPolicySetDefinitionName(String policySetDefinitionName) Set the policySetDefinitionName property: The policy set definition name.withPolicySetDefinitionVersion(String policySetDefinitionVersion) Set the policySetDefinitionVersion property: The policy set definition version.withResourceLocation(String resourceLocation) Set the resourceLocation property: The resource location.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
PolicyLogInfo
public PolicyLogInfo()Creates an instance of PolicyLogInfo class.
-
-
Method Details
-
policyDefinitionId
Get the policyDefinitionId property: The policy definition Id.- Returns:
- the policyDefinitionId value.
-
withPolicyDefinitionId
Set the policyDefinitionId property: The policy definition Id.- Parameters:
policyDefinitionId- the policyDefinitionId value to set.- Returns:
- the PolicyLogInfo object itself.
-
policySetDefinitionId
Get the policySetDefinitionId property: The policy set definition Id.- Returns:
- the policySetDefinitionId value.
-
withPolicySetDefinitionId
Set the policySetDefinitionId property: The policy set definition Id.- Parameters:
policySetDefinitionId- the policySetDefinitionId value to set.- Returns:
- the PolicyLogInfo object itself.
-
policyDefinitionReferenceId
Get the policyDefinitionReferenceId property: The policy definition instance Id inside a policy set.- Returns:
- the policyDefinitionReferenceId value.
-
withPolicyDefinitionReferenceId
Set the policyDefinitionReferenceId property: The policy definition instance Id inside a policy set.- Parameters:
policyDefinitionReferenceId- the policyDefinitionReferenceId value to set.- Returns:
- the PolicyLogInfo object itself.
-
policySetDefinitionName
Get the policySetDefinitionName property: The policy set definition name.- Returns:
- the policySetDefinitionName value.
-
withPolicySetDefinitionName
Set the policySetDefinitionName property: The policy set definition name.- Parameters:
policySetDefinitionName- the policySetDefinitionName value to set.- Returns:
- the PolicyLogInfo object itself.
-
policySetDefinitionDisplayName
Get the policySetDefinitionDisplayName property: The policy set definition display name.- Returns:
- the policySetDefinitionDisplayName value.
-
withPolicySetDefinitionDisplayName
Set the policySetDefinitionDisplayName property: The policy set definition display name.- Parameters:
policySetDefinitionDisplayName- the policySetDefinitionDisplayName value to set.- Returns:
- the PolicyLogInfo object itself.
-
policySetDefinitionVersion
Get the policySetDefinitionVersion property: The policy set definition version.- Returns:
- the policySetDefinitionVersion value.
-
withPolicySetDefinitionVersion
Set the policySetDefinitionVersion property: The policy set definition version.- Parameters:
policySetDefinitionVersion- the policySetDefinitionVersion value to set.- Returns:
- the PolicyLogInfo object itself.
-
policySetDefinitionCategory
Get the policySetDefinitionCategory property: The policy set definition category.- Returns:
- the policySetDefinitionCategory value.
-
withPolicySetDefinitionCategory
Set the policySetDefinitionCategory property: The policy set definition category.- Parameters:
policySetDefinitionCategory- the policySetDefinitionCategory value to set.- Returns:
- the PolicyLogInfo object itself.
-
policyDefinitionName
Get the policyDefinitionName property: The policy definition name.- Returns:
- the policyDefinitionName value.
-
withPolicyDefinitionName
Set the policyDefinitionName property: The policy definition name.- Parameters:
policyDefinitionName- the policyDefinitionName value to set.- Returns:
- the PolicyLogInfo object itself.
-
policyDefinitionDisplayName
Get the policyDefinitionDisplayName property: The policy definition display name.- Returns:
- the policyDefinitionDisplayName value.
-
withPolicyDefinitionDisplayName
Set the policyDefinitionDisplayName property: The policy definition display name.- Parameters:
policyDefinitionDisplayName- the policyDefinitionDisplayName value to set.- Returns:
- the PolicyLogInfo object itself.
-
policyDefinitionVersion
Get the policyDefinitionVersion property: The policy definition version.- Returns:
- the policyDefinitionVersion value.
-
withPolicyDefinitionVersion
Set the policyDefinitionVersion property: The policy definition version.- Parameters:
policyDefinitionVersion- the policyDefinitionVersion value to set.- Returns:
- the PolicyLogInfo object itself.
-
policyDefinitionEffect
Get the policyDefinitionEffect property: The policy definition action.- Returns:
- the policyDefinitionEffect value.
-
withPolicyDefinitionEffect
Set the policyDefinitionEffect property: The policy definition action.- Parameters:
policyDefinitionEffect- the policyDefinitionEffect value to set.- Returns:
- the PolicyLogInfo object itself.
-
policyDefinitionGroupNames
-
withPolicyDefinitionGroupNames
Set the policyDefinitionGroupNames property: An array of policy definition group names.- Parameters:
policyDefinitionGroupNames- the policyDefinitionGroupNames value to set.- Returns:
- the PolicyLogInfo object itself.
-
policyAssignmentId
Get the policyAssignmentId property: The policy assignment Id.- Returns:
- the policyAssignmentId value.
-
withPolicyAssignmentId
Set the policyAssignmentId property: The policy assignment Id.- Parameters:
policyAssignmentId- the policyAssignmentId value to set.- Returns:
- the PolicyLogInfo object itself.
-
policyAssignmentName
Get the policyAssignmentName property: The policy assignment name.- Returns:
- the policyAssignmentName value.
-
withPolicyAssignmentName
Set the policyAssignmentName property: The policy assignment name.- Parameters:
policyAssignmentName- the policyAssignmentName value to set.- Returns:
- the PolicyLogInfo object itself.
-
policyAssignmentDisplayName
Get the policyAssignmentDisplayName property: The policy assignment display name.- Returns:
- the policyAssignmentDisplayName value.
-
withPolicyAssignmentDisplayName
Set the policyAssignmentDisplayName property: The policy assignment display name.- Parameters:
policyAssignmentDisplayName- the policyAssignmentDisplayName value to set.- Returns:
- the PolicyLogInfo object itself.
-
policyAssignmentVersion
Get the policyAssignmentVersion property: The policy assignment version.- Returns:
- the policyAssignmentVersion value.
-
withPolicyAssignmentVersion
Set the policyAssignmentVersion property: The policy assignment version.- Parameters:
policyAssignmentVersion- the policyAssignmentVersion value to set.- Returns:
- the PolicyLogInfo object itself.
-
policyAssignmentScope
Get the policyAssignmentScope property: The policy assignment scope.- Returns:
- the policyAssignmentScope value.
-
withPolicyAssignmentScope
Set the policyAssignmentScope property: The policy assignment scope.- Parameters:
policyAssignmentScope- the policyAssignmentScope value to set.- Returns:
- the PolicyLogInfo object itself.
-
resourceLocation
Get the resourceLocation property: The resource location.- Returns:
- the resourceLocation value.
-
withResourceLocation
Set the resourceLocation property: The resource location.- Parameters:
resourceLocation- the resourceLocation value to set.- Returns:
- the PolicyLogInfo object itself.
-
ancestors
Get the ancestors property: The management group ancestors.- Returns:
- the ancestors value.
-
withAncestors
Set the ancestors property: The management group ancestors.- Parameters:
ancestors- the ancestors value to set.- Returns:
- the PolicyLogInfo object itself.
-
complianceReasonCode
Get the complianceReasonCode property: The policy compliance reason code.- Returns:
- the complianceReasonCode value.
-
withComplianceReasonCode
Set the complianceReasonCode property: The policy compliance reason code.- Parameters:
complianceReasonCode- the complianceReasonCode value to set.- Returns:
- the PolicyLogInfo object itself.
-
policyExemptionIds
-
withPolicyExemptionIds
Set the policyExemptionIds property: An array of policy exemption Ids.- Parameters:
policyExemptionIds- the policyExemptionIds value to set.- Returns:
- the PolicyLogInfo object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<PolicyLogInfo>- Throws:
IOException
-
fromJson
Reads an instance of PolicyLogInfo from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PolicyLogInfo 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 PolicyLogInfo.
-