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 Details

    • PolicyLogInfo

      public PolicyLogInfo()
      Creates an instance of PolicyLogInfo class.
  • Method Details

    • policyDefinitionId

      public String policyDefinitionId()
      Get the policyDefinitionId property: The policy definition Id.
      Returns:
      the policyDefinitionId value.
    • withPolicyDefinitionId

      public PolicyLogInfo withPolicyDefinitionId(String policyDefinitionId)
      Set the policyDefinitionId property: The policy definition Id.
      Parameters:
      policyDefinitionId - the policyDefinitionId value to set.
      Returns:
      the PolicyLogInfo object itself.
    • policySetDefinitionId

      public String policySetDefinitionId()
      Get the policySetDefinitionId property: The policy set definition Id.
      Returns:
      the policySetDefinitionId value.
    • withPolicySetDefinitionId

      public PolicyLogInfo withPolicySetDefinitionId(String policySetDefinitionId)
      Set the policySetDefinitionId property: The policy set definition Id.
      Parameters:
      policySetDefinitionId - the policySetDefinitionId value to set.
      Returns:
      the PolicyLogInfo object itself.
    • policyDefinitionReferenceId

      public String policyDefinitionReferenceId()
      Get the policyDefinitionReferenceId property: The policy definition instance Id inside a policy set.
      Returns:
      the policyDefinitionReferenceId value.
    • withPolicyDefinitionReferenceId

      public PolicyLogInfo withPolicyDefinitionReferenceId(String policyDefinitionReferenceId)
      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

      public String policySetDefinitionName()
      Get the policySetDefinitionName property: The policy set definition name.
      Returns:
      the policySetDefinitionName value.
    • withPolicySetDefinitionName

      public PolicyLogInfo withPolicySetDefinitionName(String policySetDefinitionName)
      Set the policySetDefinitionName property: The policy set definition name.
      Parameters:
      policySetDefinitionName - the policySetDefinitionName value to set.
      Returns:
      the PolicyLogInfo object itself.
    • policySetDefinitionDisplayName

      public String policySetDefinitionDisplayName()
      Get the policySetDefinitionDisplayName property: The policy set definition display name.
      Returns:
      the policySetDefinitionDisplayName value.
    • withPolicySetDefinitionDisplayName

      public PolicyLogInfo withPolicySetDefinitionDisplayName(String policySetDefinitionDisplayName)
      Set the policySetDefinitionDisplayName property: The policy set definition display name.
      Parameters:
      policySetDefinitionDisplayName - the policySetDefinitionDisplayName value to set.
      Returns:
      the PolicyLogInfo object itself.
    • policySetDefinitionVersion

      public String policySetDefinitionVersion()
      Get the policySetDefinitionVersion property: The policy set definition version.
      Returns:
      the policySetDefinitionVersion value.
    • withPolicySetDefinitionVersion

      public PolicyLogInfo withPolicySetDefinitionVersion(String policySetDefinitionVersion)
      Set the policySetDefinitionVersion property: The policy set definition version.
      Parameters:
      policySetDefinitionVersion - the policySetDefinitionVersion value to set.
      Returns:
      the PolicyLogInfo object itself.
    • policySetDefinitionCategory

      public String policySetDefinitionCategory()
      Get the policySetDefinitionCategory property: The policy set definition category.
      Returns:
      the policySetDefinitionCategory value.
    • withPolicySetDefinitionCategory

      public PolicyLogInfo withPolicySetDefinitionCategory(String policySetDefinitionCategory)
      Set the policySetDefinitionCategory property: The policy set definition category.
      Parameters:
      policySetDefinitionCategory - the policySetDefinitionCategory value to set.
      Returns:
      the PolicyLogInfo object itself.
    • policyDefinitionName

      public String policyDefinitionName()
      Get the policyDefinitionName property: The policy definition name.
      Returns:
      the policyDefinitionName value.
    • withPolicyDefinitionName

      public PolicyLogInfo withPolicyDefinitionName(String policyDefinitionName)
      Set the policyDefinitionName property: The policy definition name.
      Parameters:
      policyDefinitionName - the policyDefinitionName value to set.
      Returns:
      the PolicyLogInfo object itself.
    • policyDefinitionDisplayName

      public String policyDefinitionDisplayName()
      Get the policyDefinitionDisplayName property: The policy definition display name.
      Returns:
      the policyDefinitionDisplayName value.
    • withPolicyDefinitionDisplayName

      public PolicyLogInfo withPolicyDefinitionDisplayName(String policyDefinitionDisplayName)
      Set the policyDefinitionDisplayName property: The policy definition display name.
      Parameters:
      policyDefinitionDisplayName - the policyDefinitionDisplayName value to set.
      Returns:
      the PolicyLogInfo object itself.
    • policyDefinitionVersion

      public String policyDefinitionVersion()
      Get the policyDefinitionVersion property: The policy definition version.
      Returns:
      the policyDefinitionVersion value.
    • withPolicyDefinitionVersion

      public PolicyLogInfo withPolicyDefinitionVersion(String policyDefinitionVersion)
      Set the policyDefinitionVersion property: The policy definition version.
      Parameters:
      policyDefinitionVersion - the policyDefinitionVersion value to set.
      Returns:
      the PolicyLogInfo object itself.
    • policyDefinitionEffect

      public String policyDefinitionEffect()
      Get the policyDefinitionEffect property: The policy definition action.
      Returns:
      the policyDefinitionEffect value.
    • withPolicyDefinitionEffect

      public PolicyLogInfo withPolicyDefinitionEffect(String policyDefinitionEffect)
      Set the policyDefinitionEffect property: The policy definition action.
      Parameters:
      policyDefinitionEffect - the policyDefinitionEffect value to set.
      Returns:
      the PolicyLogInfo object itself.
    • policyDefinitionGroupNames

      public List<String> policyDefinitionGroupNames()
      Get the policyDefinitionGroupNames property: An array of policy definition group names.
      Returns:
      the policyDefinitionGroupNames value.
    • withPolicyDefinitionGroupNames

      public PolicyLogInfo withPolicyDefinitionGroupNames(List<String> policyDefinitionGroupNames)
      Set the policyDefinitionGroupNames property: An array of policy definition group names.
      Parameters:
      policyDefinitionGroupNames - the policyDefinitionGroupNames value to set.
      Returns:
      the PolicyLogInfo object itself.
    • policyAssignmentId

      public String policyAssignmentId()
      Get the policyAssignmentId property: The policy assignment Id.
      Returns:
      the policyAssignmentId value.
    • withPolicyAssignmentId

      public PolicyLogInfo withPolicyAssignmentId(String policyAssignmentId)
      Set the policyAssignmentId property: The policy assignment Id.
      Parameters:
      policyAssignmentId - the policyAssignmentId value to set.
      Returns:
      the PolicyLogInfo object itself.
    • policyAssignmentName

      public String policyAssignmentName()
      Get the policyAssignmentName property: The policy assignment name.
      Returns:
      the policyAssignmentName value.
    • withPolicyAssignmentName

      public PolicyLogInfo withPolicyAssignmentName(String policyAssignmentName)
      Set the policyAssignmentName property: The policy assignment name.
      Parameters:
      policyAssignmentName - the policyAssignmentName value to set.
      Returns:
      the PolicyLogInfo object itself.
    • policyAssignmentDisplayName

      public String policyAssignmentDisplayName()
      Get the policyAssignmentDisplayName property: The policy assignment display name.
      Returns:
      the policyAssignmentDisplayName value.
    • withPolicyAssignmentDisplayName

      public PolicyLogInfo withPolicyAssignmentDisplayName(String policyAssignmentDisplayName)
      Set the policyAssignmentDisplayName property: The policy assignment display name.
      Parameters:
      policyAssignmentDisplayName - the policyAssignmentDisplayName value to set.
      Returns:
      the PolicyLogInfo object itself.
    • policyAssignmentVersion

      public String policyAssignmentVersion()
      Get the policyAssignmentVersion property: The policy assignment version.
      Returns:
      the policyAssignmentVersion value.
    • withPolicyAssignmentVersion

      public PolicyLogInfo withPolicyAssignmentVersion(String policyAssignmentVersion)
      Set the policyAssignmentVersion property: The policy assignment version.
      Parameters:
      policyAssignmentVersion - the policyAssignmentVersion value to set.
      Returns:
      the PolicyLogInfo object itself.
    • policyAssignmentScope

      public String policyAssignmentScope()
      Get the policyAssignmentScope property: The policy assignment scope.
      Returns:
      the policyAssignmentScope value.
    • withPolicyAssignmentScope

      public PolicyLogInfo withPolicyAssignmentScope(String policyAssignmentScope)
      Set the policyAssignmentScope property: The policy assignment scope.
      Parameters:
      policyAssignmentScope - the policyAssignmentScope value to set.
      Returns:
      the PolicyLogInfo object itself.
    • resourceLocation

      public String resourceLocation()
      Get the resourceLocation property: The resource location.
      Returns:
      the resourceLocation value.
    • withResourceLocation

      public PolicyLogInfo withResourceLocation(String resourceLocation)
      Set the resourceLocation property: The resource location.
      Parameters:
      resourceLocation - the resourceLocation value to set.
      Returns:
      the PolicyLogInfo object itself.
    • ancestors

      public String ancestors()
      Get the ancestors property: The management group ancestors.
      Returns:
      the ancestors value.
    • withAncestors

      public PolicyLogInfo withAncestors(String ancestors)
      Set the ancestors property: The management group ancestors.
      Parameters:
      ancestors - the ancestors value to set.
      Returns:
      the PolicyLogInfo object itself.
    • complianceReasonCode

      public String complianceReasonCode()
      Get the complianceReasonCode property: The policy compliance reason code.
      Returns:
      the complianceReasonCode value.
    • withComplianceReasonCode

      public PolicyLogInfo withComplianceReasonCode(String complianceReasonCode)
      Set the complianceReasonCode property: The policy compliance reason code.
      Parameters:
      complianceReasonCode - the complianceReasonCode value to set.
      Returns:
      the PolicyLogInfo object itself.
    • policyExemptionIds

      public List<String> policyExemptionIds()
      Get the policyExemptionIds property: An array of policy exemption Ids.
      Returns:
      the policyExemptionIds value.
    • withPolicyExemptionIds

      public PolicyLogInfo withPolicyExemptionIds(List<String> policyExemptionIds)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<PolicyLogInfo>
      Throws:
      IOException
    • fromJson

      public static PolicyLogInfo fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.