PolicyEventInner Class

  • java.lang.Object
    • com.azure.resourcemanager.policyinsights.fluent.models.PolicyEventInner

public final class PolicyEventInner

Policy event record.

Constructor Summary

Constructor Description
PolicyEventInner()

Creates an instance of PolicyEventInner class.

Method Summary

Modifier and Type Method and 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.

Methods inherited from java.lang.Object

Constructor Details

PolicyEventInner

public PolicyEventInner()

Creates an instance of PolicyEventInner class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: Policy event record.

Returns:

the additionalProperties value.

complianceState

public String complianceState()

Get the complianceState property: Compliance state of the resource.

Returns:

the complianceState value.

components

public List components()

Get the components property: Components events records populated only when URL contains $expand=components clause.

Returns:

the components value.

effectiveParameters

public String effectiveParameters()

Get the effectiveParameters property: Effective parameters for the policy assignment.

Returns:

the effectiveParameters value.

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.

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.

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.

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.

policyAssignmentId

public String policyAssignmentId()

Get the policyAssignmentId property: Policy assignment ID.

Returns:

the policyAssignmentId value.

policyAssignmentName

public String policyAssignmentName()

Get the policyAssignmentName property: Policy assignment name.

Returns:

the policyAssignmentName value.

policyAssignmentOwner

public String policyAssignmentOwner()

Get the policyAssignmentOwner property: Policy assignment owner.

Returns:

the policyAssignmentOwner value.

policyAssignmentParameters

public String policyAssignmentParameters()

Get the policyAssignmentParameters property: Policy assignment parameters.

Returns:

the policyAssignmentParameters value.

policyAssignmentScope

public String policyAssignmentScope()

Get the policyAssignmentScope property: Policy assignment scope.

Returns:

the policyAssignmentScope value.

policyDefinitionAction

public String policyDefinitionAction()

Get the policyDefinitionAction property: Policy definition action, i.e. effect.

Returns:

the policyDefinitionAction value.

policyDefinitionCategory

public String policyDefinitionCategory()

Get the policyDefinitionCategory property: Policy definition category.

Returns:

the policyDefinitionCategory value.

policyDefinitionId

public String policyDefinitionId()

Get the policyDefinitionId property: Policy definition ID.

Returns:

the policyDefinitionId value.

policyDefinitionName

public String policyDefinitionName()

Get the policyDefinitionName property: Policy definition name.

Returns:

the policyDefinitionName value.

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.

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.

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.

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.

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.

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.

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.

resourceGroup

public String resourceGroup()

Get the resourceGroup property: Resource group name.

Returns:

the resourceGroup value.

resourceId

public String resourceId()

Get the resourceId property: Resource ID.

Returns:

the resourceId value.

resourceLocation

public String resourceLocation()

Get the resourceLocation property: Resource location.

Returns:

the resourceLocation value.

resourceTags

public String resourceTags()

Get the resourceTags property: List of resource tags.

Returns:

the resourceTags value.

resourceType

public String resourceType()

Get the resourceType property: Resource type.

Returns:

the resourceType value.

subscriptionId

public String subscriptionId()

Get the subscriptionId property: Subscription ID.

Returns:

the subscriptionId value.

tenantId

public String tenantId()

Get the tenantId property: Tenant ID for the policy event record.

Returns:

the tenantId value.

timestamp

public OffsetDateTime timestamp()

Get the timestamp property: Timestamp for the policy event record.

Returns:

the timestamp value.

validate

public void validate()

Validates the instance.

withAdditionalProperties

public PolicyEventInner withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: Policy event record.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the PolicyEventInner object itself.

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.

withComponents

public PolicyEventInner withComponents(List 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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

withResourceId

public PolicyEventInner withResourceId(String resourceId)

Set the resourceId property: Resource ID.

Parameters:

resourceId - the resourceId value to set.

Returns:

the PolicyEventInner object itself.

withResourceLocation

public PolicyEventInner withResourceLocation(String resourceLocation)

Set the resourceLocation property: Resource location.

Parameters:

resourceLocation - the resourceLocation value to set.

Returns:

the PolicyEventInner object itself.

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.

withResourceType

public PolicyEventInner withResourceType(String resourceType)

Set the resourceType property: Resource type.

Parameters:

resourceType - the resourceType value to set.

Returns:

the PolicyEventInner object itself.

withSubscriptionId

public PolicyEventInner withSubscriptionId(String subscriptionId)

Set the subscriptionId property: Subscription ID.

Parameters:

subscriptionId - the subscriptionId value to set.

Returns:

the PolicyEventInner object itself.

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.

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.

Applies to