ComponentEventDetails Class

  • java.lang.Object
    • com.azure.resourcemanager.policyinsights.models.ComponentEventDetails

public final class ComponentEventDetails

Component event details.

Constructor Summary

Constructor Description
ComponentEventDetails()

Creates an instance of ComponentEventDetails class.

Method Summary

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

Methods inherited from java.lang.Object

Constructor Details

ComponentEventDetails

public ComponentEventDetails()

Creates an instance of ComponentEventDetails class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: Component event details.

Returns:

the additionalProperties value.

id

public String id()

Get the id property: Component Id.

Returns:

the id value.

name

public String name()

Get the name property: Component name.

Returns:

the name value.

policyDefinitionAction

public String policyDefinitionAction()

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

Returns:

the policyDefinitionAction value.

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.

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 component policy event record.

Returns:

the timestamp value.

type

public String type()

Get the type property: Component type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withAdditionalProperties

public ComponentEventDetails withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: Component event details.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the ComponentEventDetails object itself.

withId

public ComponentEventDetails withId(String id)

Set the id property: Component Id.

Parameters:

id - the id value to set.

Returns:

the ComponentEventDetails object itself.

withName

public ComponentEventDetails withName(String name)

Set the name property: Component name.

Parameters:

name - the name value to set.

Returns:

the ComponentEventDetails object itself.

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.

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.

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.

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.

withType

public ComponentEventDetails withType(String type)

Set the type property: Component type.

Parameters:

type - the type value to set.

Returns:

the ComponentEventDetails object itself.

Applies to