PolicyEventInner Class
- java.
lang. Object - com.
azure. resourcemanager. policyinsights. fluent. models. PolicyEventInner
- com.
public final class PolicyEventInner
Policy event record.
Constructor Summary
Constructor | Description |
---|---|
PolicyEventInner() |
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 events 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 |
policyDefinitionAction()
Get the policy |
String |
policyDefinitionCategory()
Get the policy |
String |
policyDefinitionId()
Get the policy |
String |
policyDefinitionName()
Get the policy |
String |
policyDefinitionReferenceId()
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 |
principalOid()
Get the principal |
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 |
String |
tenantId()
Get the tenant |
Offset |
timestamp()
Get the timestamp property: Timestamp for the policy event 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<ComponentEventDetails> components)
Set the components property: Components events 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 |
withPolicyDefinitionId(String policyDefinitionId)
Set the policy |
Policy |
withPolicyDefinitionName(String policyDefinitionName)
Set the policy |
Policy |
withPolicyDefinitionReferenceId(String policyDefinitionReferenceId)
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 |
withPrincipalOid(String principalOid)
Set the principal |
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 |
withTenantId(String tenantId)
Set the tenant |
Policy |
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
Get the additionalProperties property: Policy event record.
Returns:
complianceState
public String complianceState()
Get the complianceState property: Compliance state of the resource.
Returns:
components
public List
Get the components property: Components events 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.
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 event 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:
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:
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:
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:
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:
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:
tenantId
public String tenantId()
Get the tenantId property: Tenant ID for the policy event record.
Returns:
timestamp
public OffsetDateTime timestamp()
Get the timestamp property: Timestamp for the policy event record.
Returns:
validate
public void validate()
Validates the instance.
withAdditionalProperties
public PolicyEventInner withAdditionalProperties(Map
Set the additionalProperties property: Policy event record.
Parameters:
Returns:
withComplianceState
public PolicyEventInner withComplianceState(String complianceState)
Set the complianceState property: Compliance state of the resource.
Parameters:
Returns:
withComponents
public PolicyEventInner withComponents(List
Set the components property: Components events records populated only when URL contains $expand=components clause.
Parameters:
Returns:
withEffectiveParameters
public PolicyEventInner withEffectiveParameters(String effectiveParameters)
Set the effectiveParameters property: Effective parameters for the policy assignment.
Parameters:
Returns:
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:
Returns:
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:
Returns:
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:
Returns:
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:
Returns:
withPolicyAssignmentId
public PolicyEventInner withPolicyAssignmentId(String policyAssignmentId)
Set the policyAssignmentId property: Policy assignment ID.
Parameters:
Returns:
withPolicyAssignmentName
public PolicyEventInner withPolicyAssignmentName(String policyAssignmentName)
Set the policyAssignmentName property: Policy assignment name.
Parameters:
Returns:
withPolicyAssignmentOwner
public PolicyEventInner withPolicyAssignmentOwner(String policyAssignmentOwner)
Set the policyAssignmentOwner property: Policy assignment owner.
Parameters:
Returns:
withPolicyAssignmentParameters
public PolicyEventInner withPolicyAssignmentParameters(String policyAssignmentParameters)
Set the policyAssignmentParameters property: Policy assignment parameters.
Parameters:
Returns:
withPolicyAssignmentScope
public PolicyEventInner withPolicyAssignmentScope(String policyAssignmentScope)
Set the policyAssignmentScope property: Policy assignment scope.
Parameters:
Returns:
withPolicyDefinitionAction
public PolicyEventInner withPolicyDefinitionAction(String policyDefinitionAction)
Set the policyDefinitionAction property: Policy definition action, i.e. effect.
Parameters:
Returns:
withPolicyDefinitionCategory
public PolicyEventInner withPolicyDefinitionCategory(String policyDefinitionCategory)
Set the policyDefinitionCategory property: Policy definition category.
Parameters:
Returns:
withPolicyDefinitionId
public PolicyEventInner withPolicyDefinitionId(String policyDefinitionId)
Set the policyDefinitionId property: Policy definition ID.
Parameters:
Returns:
withPolicyDefinitionName
public PolicyEventInner withPolicyDefinitionName(String policyDefinitionName)
Set the policyDefinitionName property: Policy definition name.
Parameters:
Returns:
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:
Returns:
withPolicySetDefinitionCategory
public PolicyEventInner withPolicySetDefinitionCategory(String policySetDefinitionCategory)
Set the policySetDefinitionCategory property: Policy set definition category, if the policy assignment is for a policy set.
Parameters:
Returns:
withPolicySetDefinitionId
public PolicyEventInner withPolicySetDefinitionId(String policySetDefinitionId)
Set the policySetDefinitionId property: Policy set definition ID, if the policy assignment is for a policy set.
Parameters:
Returns:
withPolicySetDefinitionName
public PolicyEventInner withPolicySetDefinitionName(String policySetDefinitionName)
Set the policySetDefinitionName property: Policy set definition name, if the policy assignment is for a policy set.
Parameters:
Returns:
withPolicySetDefinitionOwner
public PolicyEventInner withPolicySetDefinitionOwner(String policySetDefinitionOwner)
Set the policySetDefinitionOwner property: Policy set definition owner, if the policy assignment is for a policy set.
Parameters:
Returns:
withPolicySetDefinitionParameters
public PolicyEventInner withPolicySetDefinitionParameters(String policySetDefinitionParameters)
Set the policySetDefinitionParameters property: Policy set definition parameters, if the policy assignment is for a policy set.
Parameters:
Returns:
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:
Returns:
withResourceGroup
public PolicyEventInner withResourceGroup(String resourceGroup)
Set the resourceGroup property: Resource group name.
Parameters:
Returns:
withResourceId
public PolicyEventInner withResourceId(String resourceId)
Set the resourceId property: Resource ID.
Parameters:
Returns:
withResourceLocation
public PolicyEventInner withResourceLocation(String resourceLocation)
Set the resourceLocation property: Resource location.
Parameters:
Returns:
withResourceTags
public PolicyEventInner withResourceTags(String resourceTags)
Set the resourceTags property: List of resource tags.
Parameters:
Returns:
withResourceType
public PolicyEventInner withResourceType(String resourceType)
Set the resourceType property: Resource type.
Parameters:
Returns:
withSubscriptionId
public PolicyEventInner withSubscriptionId(String subscriptionId)
Set the subscriptionId property: Subscription ID.
Parameters:
Returns:
withTenantId
public PolicyEventInner withTenantId(String tenantId)
Set the tenantId property: Tenant ID for the policy event record.
Parameters:
Returns:
withTimestamp
public PolicyEventInner withTimestamp(OffsetDateTime timestamp)
Set the timestamp property: Timestamp for the policy event 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