Class ComponentEventDetails
- java.lang.Object
-
- com.azure.resourcemanager.policyinsights.models.ComponentEventDetails
-
public final class ComponentEventDetails extends Object
Component event details.
-
-
Constructor Summary
Constructors Constructor Description ComponentEventDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
additionalProperties()
Get the additionalProperties property: Component event details.String
id()
Get the id property: Component Id.String
name()
Get the name property: Component name.String
policyDefinitionAction()
Get the policyDefinitionAction property: Policy definition action, i.e.String
principalOid()
Get the principalOid property: Principal object ID for the user who initiated the resource component operation that triggered the policy event.String
tenantId()
Get the tenantId property: Tenant ID for the policy event record.OffsetDateTime
timestamp()
Get the timestamp property: Timestamp for component policy event record.String
type()
Get the type property: Component type.void
validate()
Validates the instance.ComponentEventDetails
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: Component event details.ComponentEventDetails
withId(String id)
Set the id property: Component Id.ComponentEventDetails
withName(String name)
Set the name property: Component name.ComponentEventDetails
withPolicyDefinitionAction(String policyDefinitionAction)
Set the policyDefinitionAction property: Policy definition action, i.e.ComponentEventDetails
withPrincipalOid(String principalOid)
Set the principalOid property: Principal object ID for the user who initiated the resource component operation that triggered the policy event.ComponentEventDetails
withTenantId(String tenantId)
Set the tenantId property: Tenant ID for the policy event record.ComponentEventDetails
withTimestamp(OffsetDateTime timestamp)
Set the timestamp property: Timestamp for component policy event record.ComponentEventDetails
withType(String type)
Set the type property: Component type.
-
-
-
Method Detail
-
id
public String id()
Get the id property: Component Id.- Returns:
- the id value.
-
withId
public ComponentEventDetails withId(String id)
Set the id property: Component Id.- Parameters:
id
- the id value to set.- Returns:
- the ComponentEventDetails object itself.
-
type
public String type()
Get the type property: Component type.- Returns:
- the type value.
-
withType
public ComponentEventDetails withType(String type)
Set the type property: Component type.- Parameters:
type
- the type value to set.- Returns:
- the ComponentEventDetails object itself.
-
name
public String name()
Get the name property: Component name.- Returns:
- the name value.
-
withName
public ComponentEventDetails withName(String name)
Set the name property: Component name.- Parameters:
name
- the name value to set.- Returns:
- the ComponentEventDetails object itself.
-
timestamp
public OffsetDateTime timestamp()
Get the timestamp property: Timestamp for component policy event record.- Returns:
- the timestamp value.
-
withTimestamp
public ComponentEventDetails withTimestamp(OffsetDateTime timestamp)
Set the timestamp property: Timestamp for component policy event record.- Parameters:
timestamp
- the timestamp value to set.- Returns:
- the ComponentEventDetails object itself.
-
tenantId
public String tenantId()
Get the tenantId property: Tenant ID for the policy event record.- Returns:
- the tenantId value.
-
withTenantId
public ComponentEventDetails withTenantId(String tenantId)
Set the tenantId property: Tenant ID for the policy event record.- Parameters:
tenantId
- the tenantId value to set.- Returns:
- the ComponentEventDetails object itself.
-
principalOid
public String 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
public ComponentEventDetails withPrincipalOid(String principalOid)
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
public String policyDefinitionAction()
Get the policyDefinitionAction property: Policy definition action, i.e. effect.- Returns:
- the policyDefinitionAction value.
-
withPolicyDefinitionAction
public ComponentEventDetails withPolicyDefinitionAction(String policyDefinitionAction)
Set the policyDefinitionAction property: Policy definition action, i.e. effect.- Parameters:
policyDefinitionAction
- the policyDefinitionAction value to set.- Returns:
- the ComponentEventDetails object itself.
-
additionalProperties
public Map<String,Object> additionalProperties()
Get the additionalProperties property: Component event details.- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public ComponentEventDetails withAdditionalProperties(Map<String,Object> additionalProperties)
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.
-
-