Class PolicyStateInner


  • public final class PolicyStateInner
    extends Object
    Policy state record.
    • Constructor Detail

      • PolicyStateInner

        public PolicyStateInner()
    • Method Detail

      • odataId

        public String odataId()
        Get the odataId property: OData entity ID; always set to null since policy state records do not have an entity ID.
        Returns:
        the odataId value.
      • withOdataId

        public PolicyStateInner withOdataId​(String odataId)
        Set the odataId property: OData entity ID; always set to null since policy state records do not have an entity ID.
        Parameters:
        odataId - the odataId value to set.
        Returns:
        the PolicyStateInner object itself.
      • odataContext

        public String odataContext()
        Get the odataContext property: OData context string; used by OData clients to resolve type information based on metadata.
        Returns:
        the odataContext value.
      • withOdataContext

        public PolicyStateInner withOdataContext​(String odataContext)
        Set the odataContext property: OData context string; used by OData clients to resolve type information based on metadata.
        Parameters:
        odataContext - the odataContext value to set.
        Returns:
        the PolicyStateInner object itself.
      • timestamp

        public OffsetDateTime timestamp()
        Get the timestamp property: Timestamp for the policy state record.
        Returns:
        the timestamp value.
      • withTimestamp

        public PolicyStateInner withTimestamp​(OffsetDateTime timestamp)
        Set the timestamp property: Timestamp for the policy state record.
        Parameters:
        timestamp - the timestamp value to set.
        Returns:
        the PolicyStateInner object itself.
      • resourceId

        public String resourceId()
        Get the resourceId property: Resource ID.
        Returns:
        the resourceId value.
      • withResourceId

        public PolicyStateInner withResourceId​(String resourceId)
        Set the resourceId property: Resource ID.
        Parameters:
        resourceId - the resourceId value to set.
        Returns:
        the PolicyStateInner object itself.
      • policyAssignmentId

        public String policyAssignmentId()
        Get the policyAssignmentId property: Policy assignment ID.
        Returns:
        the policyAssignmentId value.
      • withPolicyAssignmentId

        public PolicyStateInner withPolicyAssignmentId​(String policyAssignmentId)
        Set the policyAssignmentId property: Policy assignment ID.
        Parameters:
        policyAssignmentId - the policyAssignmentId value to set.
        Returns:
        the PolicyStateInner object itself.
      • policyDefinitionId

        public String policyDefinitionId()
        Get the policyDefinitionId property: Policy definition ID.
        Returns:
        the policyDefinitionId value.
      • withPolicyDefinitionId

        public PolicyStateInner withPolicyDefinitionId​(String policyDefinitionId)
        Set the policyDefinitionId property: Policy definition ID.
        Parameters:
        policyDefinitionId - the policyDefinitionId value to set.
        Returns:
        the PolicyStateInner object itself.
      • effectiveParameters

        public String effectiveParameters()
        Get the effectiveParameters property: Effective parameters for the policy assignment.
        Returns:
        the effectiveParameters value.
      • withEffectiveParameters

        public PolicyStateInner withEffectiveParameters​(String effectiveParameters)
        Set the effectiveParameters property: Effective parameters for the policy assignment.
        Parameters:
        effectiveParameters - the effectiveParameters value to set.
        Returns:
        the PolicyStateInner object itself.
      • isCompliant

        public Boolean isCompliant()
        Get the isCompliant property: Flag which states whether the resource is compliant against the policy assignment it was evaluated against. This property is deprecated; please use ComplianceState instead.
        Returns:
        the isCompliant value.
      • withIsCompliant

        public PolicyStateInner withIsCompliant​(Boolean isCompliant)
        Set the isCompliant property: Flag which states whether the resource is compliant against the policy assignment it was evaluated against. This property is deprecated; please use ComplianceState instead.
        Parameters:
        isCompliant - the isCompliant value to set.
        Returns:
        the PolicyStateInner object itself.
      • subscriptionId

        public String subscriptionId()
        Get the subscriptionId property: Subscription ID.
        Returns:
        the subscriptionId value.
      • withSubscriptionId

        public PolicyStateInner withSubscriptionId​(String subscriptionId)
        Set the subscriptionId property: Subscription ID.
        Parameters:
        subscriptionId - the subscriptionId value to set.
        Returns:
        the PolicyStateInner object itself.
      • resourceType

        public String resourceType()
        Get the resourceType property: Resource type.
        Returns:
        the resourceType value.
      • withResourceType

        public PolicyStateInner withResourceType​(String resourceType)
        Set the resourceType property: Resource type.
        Parameters:
        resourceType - the resourceType value to set.
        Returns:
        the PolicyStateInner object itself.
      • resourceLocation

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

        public PolicyStateInner withResourceLocation​(String resourceLocation)
        Set the resourceLocation property: Resource location.
        Parameters:
        resourceLocation - the resourceLocation value to set.
        Returns:
        the PolicyStateInner object itself.
      • resourceGroup

        public String resourceGroup()
        Get the resourceGroup property: Resource group name.
        Returns:
        the resourceGroup value.
      • withResourceGroup

        public PolicyStateInner withResourceGroup​(String resourceGroup)
        Set the resourceGroup property: Resource group name.
        Parameters:
        resourceGroup - the resourceGroup value to set.
        Returns:
        the PolicyStateInner object itself.
      • resourceTags

        public String resourceTags()
        Get the resourceTags property: List of resource tags.
        Returns:
        the resourceTags value.
      • withResourceTags

        public PolicyStateInner withResourceTags​(String resourceTags)
        Set the resourceTags property: List of resource tags.
        Parameters:
        resourceTags - the resourceTags value to set.
        Returns:
        the PolicyStateInner object itself.
      • policyAssignmentName

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

        public PolicyStateInner withPolicyAssignmentName​(String policyAssignmentName)
        Set the policyAssignmentName property: Policy assignment name.
        Parameters:
        policyAssignmentName - the policyAssignmentName value to set.
        Returns:
        the PolicyStateInner object itself.
      • policyAssignmentOwner

        public String policyAssignmentOwner()
        Get the policyAssignmentOwner property: Policy assignment owner.
        Returns:
        the policyAssignmentOwner value.
      • withPolicyAssignmentOwner

        public PolicyStateInner withPolicyAssignmentOwner​(String policyAssignmentOwner)
        Set the policyAssignmentOwner property: Policy assignment owner.
        Parameters:
        policyAssignmentOwner - the policyAssignmentOwner value to set.
        Returns:
        the PolicyStateInner object itself.
      • policyAssignmentParameters

        public String policyAssignmentParameters()
        Get the policyAssignmentParameters property: Policy assignment parameters.
        Returns:
        the policyAssignmentParameters value.
      • withPolicyAssignmentParameters

        public PolicyStateInner withPolicyAssignmentParameters​(String policyAssignmentParameters)
        Set the policyAssignmentParameters property: Policy assignment parameters.
        Parameters:
        policyAssignmentParameters - the policyAssignmentParameters value to set.
        Returns:
        the PolicyStateInner object itself.
      • policyAssignmentScope

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

        public PolicyStateInner withPolicyAssignmentScope​(String policyAssignmentScope)
        Set the policyAssignmentScope property: Policy assignment scope.
        Parameters:
        policyAssignmentScope - the policyAssignmentScope value to set.
        Returns:
        the PolicyStateInner object itself.
      • policyDefinitionName

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

        public PolicyStateInner withPolicyDefinitionName​(String policyDefinitionName)
        Set the policyDefinitionName property: Policy definition name.
        Parameters:
        policyDefinitionName - the policyDefinitionName value to set.
        Returns:
        the PolicyStateInner object itself.
      • policyDefinitionAction

        public String policyDefinitionAction()
        Get the policyDefinitionAction property: Policy definition action, i.e. effect.
        Returns:
        the policyDefinitionAction value.
      • withPolicyDefinitionAction

        public PolicyStateInner withPolicyDefinitionAction​(String policyDefinitionAction)
        Set the policyDefinitionAction property: Policy definition action, i.e. effect.
        Parameters:
        policyDefinitionAction - the policyDefinitionAction value to set.
        Returns:
        the PolicyStateInner object itself.
      • policyDefinitionCategory

        public String policyDefinitionCategory()
        Get the policyDefinitionCategory property: Policy definition category.
        Returns:
        the policyDefinitionCategory value.
      • withPolicyDefinitionCategory

        public PolicyStateInner withPolicyDefinitionCategory​(String policyDefinitionCategory)
        Set the policyDefinitionCategory property: Policy definition category.
        Parameters:
        policyDefinitionCategory - the policyDefinitionCategory value to set.
        Returns:
        the PolicyStateInner object itself.
      • policySetDefinitionId

        public String policySetDefinitionId()
        Get the policySetDefinitionId property: Policy set definition ID, if the policy assignment is for a policy set.
        Returns:
        the policySetDefinitionId value.
      • withPolicySetDefinitionId

        public PolicyStateInner withPolicySetDefinitionId​(String policySetDefinitionId)
        Set the policySetDefinitionId property: Policy set definition ID, if the policy assignment is for a policy set.
        Parameters:
        policySetDefinitionId - the policySetDefinitionId value to set.
        Returns:
        the PolicyStateInner object itself.
      • policySetDefinitionName

        public String policySetDefinitionName()
        Get the policySetDefinitionName property: Policy set definition name, if the policy assignment is for a policy set.
        Returns:
        the policySetDefinitionName value.
      • withPolicySetDefinitionName

        public PolicyStateInner withPolicySetDefinitionName​(String policySetDefinitionName)
        Set the policySetDefinitionName property: Policy set definition name, if the policy assignment is for a policy set.
        Parameters:
        policySetDefinitionName - the policySetDefinitionName value to set.
        Returns:
        the PolicyStateInner object itself.
      • policySetDefinitionOwner

        public String policySetDefinitionOwner()
        Get the policySetDefinitionOwner property: Policy set definition owner, if the policy assignment is for a policy set.
        Returns:
        the policySetDefinitionOwner value.
      • withPolicySetDefinitionOwner

        public PolicyStateInner withPolicySetDefinitionOwner​(String policySetDefinitionOwner)
        Set the policySetDefinitionOwner property: Policy set definition owner, if the policy assignment is for a policy set.
        Parameters:
        policySetDefinitionOwner - the policySetDefinitionOwner value to set.
        Returns:
        the PolicyStateInner object itself.
      • policySetDefinitionCategory

        public String policySetDefinitionCategory()
        Get the policySetDefinitionCategory property: Policy set definition category, if the policy assignment is for a policy set.
        Returns:
        the policySetDefinitionCategory value.
      • withPolicySetDefinitionCategory

        public PolicyStateInner withPolicySetDefinitionCategory​(String policySetDefinitionCategory)
        Set the policySetDefinitionCategory property: Policy set definition category, if the policy assignment is for a policy set.
        Parameters:
        policySetDefinitionCategory - the policySetDefinitionCategory value to set.
        Returns:
        the PolicyStateInner object itself.
      • policySetDefinitionParameters

        public String policySetDefinitionParameters()
        Get the policySetDefinitionParameters property: Policy set definition parameters, if the policy assignment is for a policy set.
        Returns:
        the policySetDefinitionParameters value.
      • withPolicySetDefinitionParameters

        public PolicyStateInner withPolicySetDefinitionParameters​(String policySetDefinitionParameters)
        Set the policySetDefinitionParameters property: Policy set definition parameters, if the policy assignment is for a policy set.
        Parameters:
        policySetDefinitionParameters - the policySetDefinitionParameters value to set.
        Returns:
        the PolicyStateInner object itself.
      • managementGroupIds

        public String managementGroupIds()
        Get the managementGroupIds property: Comma separated list of management group IDs, which represent the hierarchy of the management groups the resource is under.
        Returns:
        the managementGroupIds value.
      • withManagementGroupIds

        public PolicyStateInner withManagementGroupIds​(String managementGroupIds)
        Set the managementGroupIds property: Comma separated list of management group IDs, which represent the hierarchy of the management groups the resource is under.
        Parameters:
        managementGroupIds - the managementGroupIds value to set.
        Returns:
        the PolicyStateInner object itself.
      • policyDefinitionReferenceId

        public String policyDefinitionReferenceId()
        Get the policyDefinitionReferenceId property: Reference ID for the policy definition inside the policy set, if the policy assignment is for a policy set.
        Returns:
        the policyDefinitionReferenceId value.
      • withPolicyDefinitionReferenceId

        public PolicyStateInner withPolicyDefinitionReferenceId​(String policyDefinitionReferenceId)
        Set the policyDefinitionReferenceId property: Reference ID for the policy definition inside the policy set, if the policy assignment is for a policy set.
        Parameters:
        policyDefinitionReferenceId - the policyDefinitionReferenceId value to set.
        Returns:
        the PolicyStateInner object itself.
      • complianceState

        public String complianceState()
        Get the complianceState property: Compliance state of the resource.
        Returns:
        the complianceState value.
      • withComplianceState

        public PolicyStateInner withComplianceState​(String complianceState)
        Set the complianceState property: Compliance state of the resource.
        Parameters:
        complianceState - the complianceState value to set.
        Returns:
        the PolicyStateInner object itself.
      • policyEvaluationDetails

        public PolicyEvaluationDetails policyEvaluationDetails()
        Get the policyEvaluationDetails property: Policy evaluation details.
        Returns:
        the policyEvaluationDetails value.
      • withPolicyEvaluationDetails

        public PolicyStateInner withPolicyEvaluationDetails​(PolicyEvaluationDetails policyEvaluationDetails)
        Set the policyEvaluationDetails property: Policy evaluation details.
        Parameters:
        policyEvaluationDetails - the policyEvaluationDetails value to set.
        Returns:
        the PolicyStateInner object itself.
      • policyDefinitionGroupNames

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

        public PolicyStateInner withPolicyDefinitionGroupNames​(List<String> policyDefinitionGroupNames)
        Set the policyDefinitionGroupNames property: Policy definition group names.
        Parameters:
        policyDefinitionGroupNames - the policyDefinitionGroupNames value to set.
        Returns:
        the PolicyStateInner object itself.
      • components

        public List<ComponentStateDetails> components()
        Get the components property: Components state compliance records populated only when URL contains $expand=components clause.
        Returns:
        the components value.
      • withComponents

        public PolicyStateInner withComponents​(List<ComponentStateDetails> components)
        Set the components property: Components state compliance records populated only when URL contains $expand=components clause.
        Parameters:
        components - the components value to set.
        Returns:
        the PolicyStateInner object itself.
      • policyDefinitionVersion

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

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

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

        public Map<String,​Object> additionalProperties()
        Get the additionalProperties property: Policy state record.
        Returns:
        the additionalProperties value.
      • withAdditionalProperties

        public PolicyStateInner withAdditionalProperties​(Map<String,​Object> additionalProperties)
        Set the additionalProperties property: Policy state record.
        Parameters:
        additionalProperties - the additionalProperties value to set.
        Returns:
        the PolicyStateInner object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.