PolicyStateInner Class
- java.
lang. Object - com.
azure. resourcemanager. policyinsights. fluent. models. PolicyStateInner
- com.
public final class PolicyStateInner
Policy state record.
Constructor Summary
Constructor | Description |
---|---|
PolicyStateInner() |
Creates an instance of Policy |
Method Summary
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
additionalProperties()
Get the additional |
String |
complianceState()
Get the compliance |
List<Component |
components()
Get the components property: Components state compliance records populated only when URL contains $expand=components clause. |
String |
effectiveParameters()
Get the effective |
Boolean |
isCompliant()
Get the is |
String |
managementGroupIds()
Get the management |
String |
odataContext()
Get the odata |
String |
odataId()
Get the odata |
String |
policyAssignmentId()
Get the policy |
String |
policyAssignmentName()
Get the policy |
String |
policyAssignmentOwner()
Get the policy |
String |
policyAssignmentParameters()
Get the policy |
String |
policyAssignmentScope()
Get the policy |
String |
policyAssignmentVersion()
Get the policy |
String |
policyDefinitionAction()
Get the policy |
String |
policyDefinitionCategory()
Get the policy |
List<String> |
policyDefinitionGroupNames()
Get the policy |
String |
policyDefinitionId()
Get the policy |
String |
policyDefinitionName()
Get the policy |
String |
policyDefinitionReferenceId()
Get the policy |
String |
policyDefinitionVersion()
Get the policy |
Policy |
policyEvaluationDetails()
Get the policy |
String |
policySetDefinitionCategory()
Get the policy |
String |
policySetDefinitionId()
Get the policy |
String |
policySetDefinitionName()
Get the policy |
String |
policySetDefinitionOwner()
Get the policy |
String |
policySetDefinitionParameters()
Get the policy |
String |
policySetDefinitionVersion()
Get the policy |
String |
resourceGroup()
Get the resource |
String |
resourceId()
Get the resource |
String |
resourceLocation()
Get the resource |
String |
resourceTags()
Get the resource |
String |
resourceType()
Get the resource |
String |
subscriptionId()
Get the subscription |
Offset |
timestamp()
Get the timestamp property: Timestamp for the policy state record. |
void |
validate()
Validates the instance. |
Policy |
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additional |
Policy |
withComplianceState(String complianceState)
Set the compliance |
Policy |
withComponents(List<ComponentStateDetails> components)
Set the components property: Components state compliance records populated only when URL contains $expand=components clause. |
Policy |
withEffectiveParameters(String effectiveParameters)
Set the effective |
Policy |
withIsCompliant(Boolean isCompliant)
Set the is |
Policy |
withManagementGroupIds(String managementGroupIds)
Set the management |
Policy |
withOdataContext(String odataContext)
Set the odata |
Policy |
withOdataId(String odataId)
Set the odata |
Policy |
withPolicyAssignmentId(String policyAssignmentId)
Set the policy |
Policy |
withPolicyAssignmentName(String policyAssignmentName)
Set the policy |
Policy |
withPolicyAssignmentOwner(String policyAssignmentOwner)
Set the policy |
Policy |
withPolicyAssignmentParameters(String policyAssignmentParameters)
Set the policy |
Policy |
withPolicyAssignmentScope(String policyAssignmentScope)
Set the policy |
Policy |
withPolicyDefinitionAction(String policyDefinitionAction)
Set the policy |
Policy |
withPolicyDefinitionCategory(String policyDefinitionCategory)
Set the policy |
Policy |
withPolicyDefinitionGroupNames(List<String> policyDefinitionGroupNames)
Set the policy |
Policy |
withPolicyDefinitionId(String policyDefinitionId)
Set the policy |
Policy |
withPolicyDefinitionName(String policyDefinitionName)
Set the policy |
Policy |
withPolicyDefinitionReferenceId(String policyDefinitionReferenceId)
Set the policy |
Policy |
withPolicyEvaluationDetails(PolicyEvaluationDetails policyEvaluationDetails)
Set the policy |
Policy |
withPolicySetDefinitionCategory(String policySetDefinitionCategory)
Set the policy |
Policy |
withPolicySetDefinitionId(String policySetDefinitionId)
Set the policy |
Policy |
withPolicySetDefinitionName(String policySetDefinitionName)
Set the policy |
Policy |
withPolicySetDefinitionOwner(String policySetDefinitionOwner)
Set the policy |
Policy |
withPolicySetDefinitionParameters(String policySetDefinitionParameters)
Set the policy |
Policy |
withResourceGroup(String resourceGroup)
Set the resource |
Policy |
withResourceId(String resourceId)
Set the resource |
Policy |
withResourceLocation(String resourceLocation)
Set the resource |
Policy |
withResourceTags(String resourceTags)
Set the resource |
Policy |
withResourceType(String resourceType)
Set the resource |
Policy |
withSubscriptionId(String subscriptionId)
Set the subscription |
Policy |
withTimestamp(OffsetDateTime timestamp)
Set the timestamp property: Timestamp for the policy state record. |
Methods inherited from java.lang.Object
Constructor Details
PolicyStateInner
public PolicyStateInner()
Creates an instance of PolicyStateInner class.
Method Details
additionalProperties
public Map
Get the additionalProperties property: Policy state record.
Returns:
complianceState
public String complianceState()
Get the complianceState property: Compliance state of the resource.
Returns:
components
public List
Get the components property: Components state compliance records populated only when URL contains $expand=components clause.
Returns:
effectiveParameters
public String effectiveParameters()
Get the effectiveParameters property: Effective parameters for the policy assignment.
Returns:
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:
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:
odataContext
public String odataContext()
Get the odataContext property: OData context string; used by OData clients to resolve type information based on metadata.
Returns:
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:
policyAssignmentId
public String policyAssignmentId()
Get the policyAssignmentId property: Policy assignment ID.
Returns:
policyAssignmentName
public String policyAssignmentName()
Get the policyAssignmentName property: Policy assignment name.
Returns:
policyAssignmentOwner
public String policyAssignmentOwner()
Get the policyAssignmentOwner property: Policy assignment owner.
Returns:
policyAssignmentParameters
public String policyAssignmentParameters()
Get the policyAssignmentParameters property: Policy assignment parameters.
Returns:
policyAssignmentScope
public String policyAssignmentScope()
Get the policyAssignmentScope property: Policy assignment scope.
Returns:
policyAssignmentVersion
public String policyAssignmentVersion()
Get the policyAssignmentVersion property: Evaluated policy assignment version.
Returns:
policyDefinitionAction
public String policyDefinitionAction()
Get the policyDefinitionAction property: Policy definition action, i.e. effect.
Returns:
policyDefinitionCategory
public String policyDefinitionCategory()
Get the policyDefinitionCategory property: Policy definition category.
Returns:
policyDefinitionGroupNames
public List
Get the policyDefinitionGroupNames property: Policy definition group names.
Returns:
policyDefinitionId
public String policyDefinitionId()
Get the policyDefinitionId property: Policy definition ID.
Returns:
policyDefinitionName
public String policyDefinitionName()
Get the policyDefinitionName property: Policy definition name.
Returns:
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:
policyDefinitionVersion
public String policyDefinitionVersion()
Get the policyDefinitionVersion property: Evaluated policy definition version.
Returns:
policyEvaluationDetails
public PolicyEvaluationDetails policyEvaluationDetails()
Get the policyEvaluationDetails property: Policy evaluation details.
Returns:
policySetDefinitionCategory
public String policySetDefinitionCategory()
Get the policySetDefinitionCategory property: Policy set definition category, if the policy assignment is for a policy set.
Returns:
policySetDefinitionId
public String policySetDefinitionId()
Get the policySetDefinitionId property: Policy set definition ID, if the policy assignment is for a policy set.
Returns:
policySetDefinitionName
public String policySetDefinitionName()
Get the policySetDefinitionName property: Policy set definition name, if the policy assignment is for a policy set.
Returns:
policySetDefinitionOwner
public String policySetDefinitionOwner()
Get the policySetDefinitionOwner property: Policy set definition owner, if the policy assignment is for a policy set.
Returns:
policySetDefinitionParameters
public String policySetDefinitionParameters()
Get the policySetDefinitionParameters property: Policy set definition parameters, if the policy assignment is for a policy set.
Returns:
policySetDefinitionVersion
public String policySetDefinitionVersion()
Get the policySetDefinitionVersion property: Evaluated policy set definition version.
Returns:
resourceGroup
public String resourceGroup()
Get the resourceGroup property: Resource group name.
Returns:
resourceId
public String resourceId()
Get the resourceId property: Resource ID.
Returns:
resourceLocation
public String resourceLocation()
Get the resourceLocation property: Resource location.
Returns:
resourceTags
public String resourceTags()
Get the resourceTags property: List of resource tags.
Returns:
resourceType
public String resourceType()
Get the resourceType property: Resource type.
Returns:
subscriptionId
public String subscriptionId()
Get the subscriptionId property: Subscription ID.
Returns:
timestamp
public OffsetDateTime timestamp()
Get the timestamp property: Timestamp for the policy state record.
Returns:
validate
public void validate()
Validates the instance.
withAdditionalProperties
public PolicyStateInner withAdditionalProperties(Map
Set the additionalProperties property: Policy state record.
Parameters:
Returns:
withComplianceState
public PolicyStateInner withComplianceState(String complianceState)
Set the complianceState property: Compliance state of the resource.
Parameters:
Returns:
withComponents
public PolicyStateInner withComponents(List
Set the components property: Components state compliance records populated only when URL contains $expand=components clause.
Parameters:
Returns:
withEffectiveParameters
public PolicyStateInner withEffectiveParameters(String effectiveParameters)
Set the effectiveParameters property: Effective parameters for the policy assignment.
Parameters:
Returns:
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:
Returns:
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:
Returns:
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:
Returns:
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:
Returns:
withPolicyAssignmentId
public PolicyStateInner withPolicyAssignmentId(String policyAssignmentId)
Set the policyAssignmentId property: Policy assignment ID.
Parameters:
Returns:
withPolicyAssignmentName
public PolicyStateInner withPolicyAssignmentName(String policyAssignmentName)
Set the policyAssignmentName property: Policy assignment name.
Parameters:
Returns:
withPolicyAssignmentOwner
public PolicyStateInner withPolicyAssignmentOwner(String policyAssignmentOwner)
Set the policyAssignmentOwner property: Policy assignment owner.
Parameters:
Returns:
withPolicyAssignmentParameters
public PolicyStateInner withPolicyAssignmentParameters(String policyAssignmentParameters)
Set the policyAssignmentParameters property: Policy assignment parameters.
Parameters:
Returns:
withPolicyAssignmentScope
public PolicyStateInner withPolicyAssignmentScope(String policyAssignmentScope)
Set the policyAssignmentScope property: Policy assignment scope.
Parameters:
Returns:
withPolicyDefinitionAction
public PolicyStateInner withPolicyDefinitionAction(String policyDefinitionAction)
Set the policyDefinitionAction property: Policy definition action, i.e. effect.
Parameters:
Returns:
withPolicyDefinitionCategory
public PolicyStateInner withPolicyDefinitionCategory(String policyDefinitionCategory)
Set the policyDefinitionCategory property: Policy definition category.
Parameters:
Returns:
withPolicyDefinitionGroupNames
public PolicyStateInner withPolicyDefinitionGroupNames(List
Set the policyDefinitionGroupNames property: Policy definition group names.
Parameters:
Returns:
withPolicyDefinitionId
public PolicyStateInner withPolicyDefinitionId(String policyDefinitionId)
Set the policyDefinitionId property: Policy definition ID.
Parameters:
Returns:
withPolicyDefinitionName
public PolicyStateInner withPolicyDefinitionName(String policyDefinitionName)
Set the policyDefinitionName property: Policy definition name.
Parameters:
Returns:
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:
Returns:
withPolicyEvaluationDetails
public PolicyStateInner withPolicyEvaluationDetails(PolicyEvaluationDetails policyEvaluationDetails)
Set the policyEvaluationDetails property: Policy evaluation details.
Parameters:
Returns:
withPolicySetDefinitionCategory
public PolicyStateInner withPolicySetDefinitionCategory(String policySetDefinitionCategory)
Set the policySetDefinitionCategory property: Policy set definition category, if the policy assignment is for a policy set.
Parameters:
Returns:
withPolicySetDefinitionId
public PolicyStateInner withPolicySetDefinitionId(String policySetDefinitionId)
Set the policySetDefinitionId property: Policy set definition ID, if the policy assignment is for a policy set.
Parameters:
Returns:
withPolicySetDefinitionName
public PolicyStateInner withPolicySetDefinitionName(String policySetDefinitionName)
Set the policySetDefinitionName property: Policy set definition name, if the policy assignment is for a policy set.
Parameters:
Returns:
withPolicySetDefinitionOwner
public PolicyStateInner withPolicySetDefinitionOwner(String policySetDefinitionOwner)
Set the policySetDefinitionOwner property: Policy set definition owner, if the policy assignment is for a policy set.
Parameters:
Returns:
withPolicySetDefinitionParameters
public PolicyStateInner withPolicySetDefinitionParameters(String policySetDefinitionParameters)
Set the policySetDefinitionParameters property: Policy set definition parameters, if the policy assignment is for a policy set.
Parameters:
Returns:
withResourceGroup
public PolicyStateInner withResourceGroup(String resourceGroup)
Set the resourceGroup property: Resource group name.
Parameters:
Returns:
withResourceId
public PolicyStateInner withResourceId(String resourceId)
Set the resourceId property: Resource ID.
Parameters:
Returns:
withResourceLocation
public PolicyStateInner withResourceLocation(String resourceLocation)
Set the resourceLocation property: Resource location.
Parameters:
Returns:
withResourceTags
public PolicyStateInner withResourceTags(String resourceTags)
Set the resourceTags property: List of resource tags.
Parameters:
Returns:
withResourceType
public PolicyStateInner withResourceType(String resourceType)
Set the resourceType property: Resource type.
Parameters:
Returns:
withSubscriptionId
public PolicyStateInner withSubscriptionId(String subscriptionId)
Set the subscriptionId property: Subscription ID.
Parameters:
Returns:
withTimestamp
public PolicyStateInner withTimestamp(OffsetDateTime timestamp)
Set the timestamp property: Timestamp for the policy state record.
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