Class ComponentEventDetails
java.lang.Object
com.azure.resourcemanager.policyinsights.models.ComponentEventDetails
Component event details.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: Component event details.id()
Get the id property: Component Id.name()
Get the name property: Component name.Get the policyDefinitionAction property: Policy definition action, i.e.Get the principalOid property: Principal object ID for the user who initiated the resource component operation that triggered the policy event.tenantId()
Get the tenantId property: Tenant ID for the policy event record.Get the timestamp property: Timestamp for component policy event record.type()
Get the type property: Component type.void
validate()
Validates the instance.withAdditionalProperties
(Map<String, Object> additionalProperties) Set the additionalProperties property: Component event details.Set the id property: Component Id.Set the name property: Component name.withPolicyDefinitionAction
(String policyDefinitionAction) Set the policyDefinitionAction property: Policy definition action, i.e.withPrincipalOid
(String principalOid) Set the principalOid property: Principal object ID for the user who initiated the resource component operation that triggered the policy event.withTenantId
(String tenantId) Set the tenantId property: Tenant ID for the policy event record.withTimestamp
(OffsetDateTime timestamp) Set the timestamp property: Timestamp for component policy event record.Set the type property: Component type.
-
Constructor Details
-
ComponentEventDetails
public ComponentEventDetails()Creates an instance of ComponentEventDetails class.
-
-
Method Details
-
id
Get the id property: Component Id.- Returns:
- the id value.
-
withId
Set the id property: Component Id.- Parameters:
id
- the id value to set.- Returns:
- the ComponentEventDetails object itself.
-
type
Get the type property: Component type.- Returns:
- the type value.
-
withType
Set the type property: Component type.- Parameters:
type
- the type value to set.- Returns:
- the ComponentEventDetails object itself.
-
name
Get the name property: Component name.- Returns:
- the name value.
-
withName
Set the name property: Component name.- Parameters:
name
- the name value to set.- Returns:
- the ComponentEventDetails object itself.
-
timestamp
Get the timestamp property: Timestamp for component policy event record.- Returns:
- the timestamp value.
-
withTimestamp
Set the timestamp property: Timestamp for component policy event record.- Parameters:
timestamp
- the timestamp value to set.- Returns:
- the ComponentEventDetails 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 ComponentEventDetails object itself.
-
principalOid
Get the principalOid property: Principal object ID for the user who initiated the resource component 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 component operation that triggered the policy event.- Parameters:
principalOid
- the principalOid value to set.- Returns:
- the ComponentEventDetails 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 ComponentEventDetails object itself.
-
additionalProperties
Get the additionalProperties property: Component event details.- Returns:
- the additionalProperties value.
-
withAdditionalProperties
Set the additionalProperties property: Component event details.- Parameters:
additionalProperties
- the additionalProperties value to set.- Returns:
- the ComponentEventDetails object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-