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