Class PolicyEventInner
java.lang.Object
com.azure.resourcemanager.policyinsights.fluent.models.PolicyEventInner
Policy event record.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: Policy event record.Get the complianceState property: Compliance state of the resource.Get the components property: Components events records populated only when URL contains $expand=components clause.Get the effectiveParameters property: Effective parameters for the policy assignment.Get the isCompliant property: Flag which states whether the resource is compliant against the policy assignment it was evaluated against.Get the managementGroupIds property: Comma separated list of management group IDs, which represent the hierarchy of the management groups the resource is under.Get the odataContext property: OData context string; used by OData clients to resolve type information based on metadata.odataId()
Get the odataId property: OData entity ID; always set to null since policy event records do not have an entity ID.Get the policyAssignmentId property: Policy assignment ID.Get the policyAssignmentName property: Policy assignment name.Get the policyAssignmentOwner property: Policy assignment owner.Get the policyAssignmentParameters property: Policy assignment parameters.Get the policyAssignmentScope property: Policy assignment scope.Get the policyDefinitionAction property: Policy definition action, i.e.Get the policyDefinitionCategory property: Policy definition category.Get the policyDefinitionId property: Policy definition ID.Get the policyDefinitionName property: Policy definition name.Get the policyDefinitionReferenceId property: Reference ID for the policy definition inside the policy set, if the policy assignment is for a policy set.Get the policySetDefinitionCategory property: Policy set definition category, if the policy assignment is for a policy set.Get the policySetDefinitionId property: Policy set definition ID, if the policy assignment is for a policy set.Get the policySetDefinitionName property: Policy set definition name, if the policy assignment is for a policy set.Get the policySetDefinitionOwner property: Policy set definition owner, if the policy assignment is for a policy set.Get the policySetDefinitionParameters property: Policy set definition parameters, if the policy assignment is for a policy set.Get the principalOid property: Principal object ID for the user who initiated the resource operation that triggered the policy event.Get the resourceGroup property: Resource group name.Get the resourceId property: Resource ID.Get the resourceLocation property: Resource location.Get the resourceTags property: List of resource tags.Get the resourceType property: Resource type.Get the subscriptionId property: Subscription ID.tenantId()
Get the tenantId property: Tenant ID for the policy event record.Get the timestamp property: Timestamp for the policy event record.void
validate()
Validates the instance.withAdditionalProperties
(Map<String, Object> additionalProperties) Set the additionalProperties property: Policy event record.withComplianceState
(String complianceState) Set the complianceState property: Compliance state of the resource.withComponents
(List<ComponentEventDetails> components) Set the components property: Components events records populated only when URL contains $expand=components clause.withEffectiveParameters
(String effectiveParameters) Set the effectiveParameters property: Effective parameters for the policy assignment.withIsCompliant
(Boolean isCompliant) Set the isCompliant property: Flag which states whether the resource is compliant against the policy assignment it was evaluated against.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.withOdataContext
(String odataContext) Set the odataContext property: OData context string; used by OData clients to resolve type information based on metadata.withOdataId
(String odataId) Set the odataId property: OData entity ID; always set to null since policy event records do not have an entity ID.withPolicyAssignmentId
(String policyAssignmentId) Set the policyAssignmentId property: Policy assignment ID.withPolicyAssignmentName
(String policyAssignmentName) Set the policyAssignmentName property: Policy assignment name.withPolicyAssignmentOwner
(String policyAssignmentOwner) Set the policyAssignmentOwner property: Policy assignment owner.withPolicyAssignmentParameters
(String policyAssignmentParameters) Set the policyAssignmentParameters property: Policy assignment parameters.withPolicyAssignmentScope
(String policyAssignmentScope) Set the policyAssignmentScope property: Policy assignment scope.withPolicyDefinitionAction
(String policyDefinitionAction) Set the policyDefinitionAction property: Policy definition action, i.e.withPolicyDefinitionCategory
(String policyDefinitionCategory) Set the policyDefinitionCategory property: Policy definition category.withPolicyDefinitionId
(String policyDefinitionId) Set the policyDefinitionId property: Policy definition ID.withPolicyDefinitionName
(String policyDefinitionName) Set the policyDefinitionName property: Policy definition name.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.withPolicySetDefinitionCategory
(String policySetDefinitionCategory) Set the policySetDefinitionCategory property: Policy set definition category, if the policy assignment is for a policy set.withPolicySetDefinitionId
(String policySetDefinitionId) Set the policySetDefinitionId property: Policy set definition ID, if the policy assignment is for a policy set.withPolicySetDefinitionName
(String policySetDefinitionName) Set the policySetDefinitionName property: Policy set definition name, if the policy assignment is for a policy set.withPolicySetDefinitionOwner
(String policySetDefinitionOwner) Set the policySetDefinitionOwner property: Policy set definition owner, if the policy assignment is for a policy set.withPolicySetDefinitionParameters
(String policySetDefinitionParameters) Set the policySetDefinitionParameters property: Policy set definition parameters, if the policy assignment is for a policy set.withPrincipalOid
(String principalOid) Set the principalOid property: Principal object ID for the user who initiated the resource operation that triggered the policy event.withResourceGroup
(String resourceGroup) Set the resourceGroup property: Resource group name.withResourceId
(String resourceId) Set the resourceId property: Resource ID.withResourceLocation
(String resourceLocation) Set the resourceLocation property: Resource location.withResourceTags
(String resourceTags) Set the resourceTags property: List of resource tags.withResourceType
(String resourceType) Set the resourceType property: Resource type.withSubscriptionId
(String subscriptionId) Set the subscriptionId property: Subscription ID.withTenantId
(String tenantId) Set the tenantId property: Tenant ID for the policy event record.withTimestamp
(OffsetDateTime timestamp) Set the timestamp property: Timestamp for the policy event record.
-
Constructor Details
-
PolicyEventInner
public PolicyEventInner()Creates an instance of PolicyEventInner class.
-
-
Method Details
-
odataId
Get the odataId property: OData entity ID; always set to null since policy event records do not have an entity ID.- Returns:
- the odataId value.
-
withOdataId
Set the odataId property: OData entity ID; always set to null since policy event records do not have an entity ID.- Parameters:
odataId
- the odataId value to set.- Returns:
- the PolicyEventInner object itself.
-
odataContext
Get the odataContext property: OData context string; used by OData clients to resolve type information based on metadata.- Returns:
- the odataContext value.
-
withOdataContext
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 PolicyEventInner object itself.
-
timestamp
Get the timestamp property: Timestamp for the policy event record.- Returns:
- the timestamp value.
-
withTimestamp
Set the timestamp property: Timestamp for the policy event record.- Parameters:
timestamp
- the timestamp value to set.- Returns:
- the PolicyEventInner object itself.
-
resourceId
Get the resourceId property: Resource ID.- Returns:
- the resourceId value.
-
withResourceId
Set the resourceId property: Resource ID.- Parameters:
resourceId
- the resourceId value to set.- Returns:
- the PolicyEventInner object itself.
-
policyAssignmentId
Get the policyAssignmentId property: Policy assignment ID.- Returns:
- the policyAssignmentId value.
-
withPolicyAssignmentId
Set the policyAssignmentId property: Policy assignment ID.- Parameters:
policyAssignmentId
- the policyAssignmentId value to set.- Returns:
- the PolicyEventInner object itself.
-
policyDefinitionId
Get the policyDefinitionId property: Policy definition ID.- Returns:
- the policyDefinitionId value.
-
withPolicyDefinitionId
Set the policyDefinitionId property: Policy definition ID.- Parameters:
policyDefinitionId
- the policyDefinitionId value to set.- Returns:
- the PolicyEventInner object itself.
-
effectiveParameters
Get the effectiveParameters property: Effective parameters for the policy assignment.- Returns:
- the effectiveParameters value.
-
withEffectiveParameters
Set the effectiveParameters property: Effective parameters for the policy assignment.- Parameters:
effectiveParameters
- the effectiveParameters value to set.- Returns:
- the PolicyEventInner object itself.
-
isCompliant
Get the isCompliant property: Flag which states whether the resource is compliant against the policy assignment it was evaluated against.- Returns:
- the isCompliant value.
-
withIsCompliant
Set the isCompliant property: Flag which states whether the resource is compliant against the policy assignment it was evaluated against.- Parameters:
isCompliant
- the isCompliant value to set.- Returns:
- the PolicyEventInner object itself.
-
subscriptionId
Get the subscriptionId property: Subscription ID.- Returns:
- the subscriptionId value.
-
withSubscriptionId
Set the subscriptionId property: Subscription ID.- Parameters:
subscriptionId
- the subscriptionId value to set.- Returns:
- the PolicyEventInner object itself.
-
resourceType
Get the resourceType property: Resource type.- Returns:
- the resourceType value.
-
withResourceType
Set the resourceType property: Resource type.- Parameters:
resourceType
- the resourceType value to set.- Returns:
- the PolicyEventInner object itself.
-
resourceLocation
Get the resourceLocation property: Resource location.- Returns:
- the resourceLocation value.
-
withResourceLocation
Set the resourceLocation property: Resource location.- Parameters:
resourceLocation
- the resourceLocation value to set.- Returns:
- the PolicyEventInner object itself.
-
resourceGroup
Get the resourceGroup property: Resource group name.- Returns:
- the resourceGroup value.
-
withResourceGroup
Set the resourceGroup property: Resource group name.- Parameters:
resourceGroup
- the resourceGroup value to set.- Returns:
- the PolicyEventInner object itself.
-
resourceTags
Get the resourceTags property: List of resource tags.- Returns:
- the resourceTags value.
-
withResourceTags
Set the resourceTags property: List of resource tags.- Parameters:
resourceTags
- the resourceTags value to set.- Returns:
- the PolicyEventInner object itself.
-
policyAssignmentName
Get the policyAssignmentName property: Policy assignment name.- Returns:
- the policyAssignmentName value.
-
withPolicyAssignmentName
Set the policyAssignmentName property: Policy assignment name.- Parameters:
policyAssignmentName
- the policyAssignmentName value to set.- Returns:
- the PolicyEventInner object itself.
-
policyAssignmentOwner
Get the policyAssignmentOwner property: Policy assignment owner.- Returns:
- the policyAssignmentOwner value.
-
withPolicyAssignmentOwner
Set the policyAssignmentOwner property: Policy assignment owner.- Parameters:
policyAssignmentOwner
- the policyAssignmentOwner value to set.- Returns:
- the PolicyEventInner object itself.
-
policyAssignmentParameters
Get the policyAssignmentParameters property: Policy assignment parameters.- Returns:
- the policyAssignmentParameters value.
-
withPolicyAssignmentParameters
Set the policyAssignmentParameters property: Policy assignment parameters.- Parameters:
policyAssignmentParameters
- the policyAssignmentParameters value to set.- Returns:
- the PolicyEventInner object itself.
-
policyAssignmentScope
Get the policyAssignmentScope property: Policy assignment scope.- Returns:
- the policyAssignmentScope value.
-
withPolicyAssignmentScope
Set the policyAssignmentScope property: Policy assignment scope.- Parameters:
policyAssignmentScope
- the policyAssignmentScope value to set.- Returns:
- the PolicyEventInner object itself.
-
policyDefinitionName
Get the policyDefinitionName property: Policy definition name.- Returns:
- the policyDefinitionName value.
-
withPolicyDefinitionName
Set the policyDefinitionName property: Policy definition name.- Parameters:
policyDefinitionName
- the policyDefinitionName value to set.- Returns:
- the PolicyEventInner object itself.
-
policyDefinitionAction
Get the policyDefinitionAction property: Policy definition action, i.e. effect.- Returns:
- the policyDefinitionAction value.
-
withPolicyDefinitionAction
Set the policyDefinitionAction property: Policy definition action, i.e. effect.- Parameters:
policyDefinitionAction
- the policyDefinitionAction value to set.- Returns:
- the PolicyEventInner object itself.
-
policyDefinitionCategory
Get the policyDefinitionCategory property: Policy definition category.- Returns:
- the policyDefinitionCategory value.
-
withPolicyDefinitionCategory
Set the policyDefinitionCategory property: Policy definition category.- Parameters:
policyDefinitionCategory
- the policyDefinitionCategory value to set.- Returns:
- the PolicyEventInner object itself.
-
policySetDefinitionId
Get the policySetDefinitionId property: Policy set definition ID, if the policy assignment is for a policy set.- Returns:
- the policySetDefinitionId value.
-
withPolicySetDefinitionId
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 PolicyEventInner object itself.
-
policySetDefinitionName
Get the policySetDefinitionName property: Policy set definition name, if the policy assignment is for a policy set.- Returns:
- the policySetDefinitionName value.
-
withPolicySetDefinitionName
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 PolicyEventInner object itself.
-
policySetDefinitionOwner
Get the policySetDefinitionOwner property: Policy set definition owner, if the policy assignment is for a policy set.- Returns:
- the policySetDefinitionOwner value.
-
withPolicySetDefinitionOwner
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 PolicyEventInner object itself.
-
policySetDefinitionCategory
Get the policySetDefinitionCategory property: Policy set definition category, if the policy assignment is for a policy set.- Returns:
- the policySetDefinitionCategory value.
-
withPolicySetDefinitionCategory
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 PolicyEventInner object itself.
-
policySetDefinitionParameters
Get the policySetDefinitionParameters property: Policy set definition parameters, if the policy assignment is for a policy set.- Returns:
- the policySetDefinitionParameters value.
-
withPolicySetDefinitionParameters
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 PolicyEventInner object itself.
-
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
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 PolicyEventInner object itself.
-
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
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 PolicyEventInner object itself.
-
complianceState
Get the complianceState property: Compliance state of the resource.- Returns:
- the complianceState value.
-
withComplianceState
Set the complianceState property: Compliance state of the resource.- Parameters:
complianceState
- the complianceState value to set.- Returns:
- the PolicyEventInner object itself.
-
tenantId
Get the tenantId property: Tenant ID for the policy event record.- Returns:
- the tenantId value.
-
withTenantId
Set the tenantId property: Tenant ID for the policy event record.- Parameters:
tenantId
- the tenantId value to set.- Returns:
- the PolicyEventInner object itself.
-
principalOid
Get the principalOid property: Principal object ID for the user who initiated the resource operation that triggered the policy event.- Returns:
- the principalOid value.
-
withPrincipalOid
Set the principalOid property: Principal object ID for the user who initiated the resource operation that triggered the policy event.- Parameters:
principalOid
- the principalOid value to set.- Returns:
- the PolicyEventInner object itself.
-
components
Get the components property: Components events records populated only when URL contains $expand=components clause.- Returns:
- the components value.
-
withComponents
Set the components property: Components events records populated only when URL contains $expand=components clause.- Parameters:
components
- the components value to set.- Returns:
- the PolicyEventInner object itself.
-
additionalProperties
Get the additionalProperties property: Policy event record.- Returns:
- the additionalProperties value.
-
withAdditionalProperties
Set the additionalProperties property: Policy event record.- Parameters:
additionalProperties
- the additionalProperties value to set.- Returns:
- the PolicyEventInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-