AutomationActionEventHub Class

public final class AutomationActionEventHub
extends AutomationAction

The target Event Hub to which event data will be exported. To learn more about Microsoft Defender for Cloud continuous export capabilities, visit https://aka.ms/ASCExportLearnMore.

Constructor Summary

Constructor Description
AutomationActionEventHub()

Creates an instance of AutomationActionEventHub class.

Method Summary

Modifier and Type Method and Description
String connectionString()

Get the connectionString property: The target Event Hub connection string (it will not be included in any response).

String eventHubResourceId()

Get the eventHubResourceId property: The target Event Hub Azure Resource ID.

Boolean isTrustedServiceEnabled()

Get the isTrustedServiceEnabled property: Indicates whether the trusted service is enabled or not.

String sasPolicyName()

Get the sasPolicyName property: The target Event Hub SAS policy name.

void validate()

Validates the instance.

AutomationActionEventHub withConnectionString(String connectionString)

Set the connectionString property: The target Event Hub connection string (it will not be included in any response).

AutomationActionEventHub withEventHubResourceId(String eventHubResourceId)

Set the eventHubResourceId property: The target Event Hub Azure Resource ID.

AutomationActionEventHub withIsTrustedServiceEnabled(Boolean isTrustedServiceEnabled)

Set the isTrustedServiceEnabled property: Indicates whether the trusted service is enabled or not.

Methods inherited from AutomationAction

Methods inherited from java.lang.Object

Constructor Details

AutomationActionEventHub

public AutomationActionEventHub()

Creates an instance of AutomationActionEventHub class.

Method Details

connectionString

public String connectionString()

Get the connectionString property: The target Event Hub connection string (it will not be included in any response).

Returns:

the connectionString value.

eventHubResourceId

public String eventHubResourceId()

Get the eventHubResourceId property: The target Event Hub Azure Resource ID.

Returns:

the eventHubResourceId value.

isTrustedServiceEnabled

public Boolean isTrustedServiceEnabled()

Get the isTrustedServiceEnabled property: Indicates whether the trusted service is enabled or not.

Returns:

the isTrustedServiceEnabled value.

sasPolicyName

public String sasPolicyName()

Get the sasPolicyName property: The target Event Hub SAS policy name.

Returns:

the sasPolicyName value.

validate

public void validate()

Validates the instance.

Overrides:

AutomationActionEventHub.validate()

withConnectionString

public AutomationActionEventHub withConnectionString(String connectionString)

Set the connectionString property: The target Event Hub connection string (it will not be included in any response).

Parameters:

connectionString - the connectionString value to set.

Returns:

the AutomationActionEventHub object itself.

withEventHubResourceId

public AutomationActionEventHub withEventHubResourceId(String eventHubResourceId)

Set the eventHubResourceId property: The target Event Hub Azure Resource ID.

Parameters:

eventHubResourceId - the eventHubResourceId value to set.

Returns:

the AutomationActionEventHub object itself.

withIsTrustedServiceEnabled

public AutomationActionEventHub withIsTrustedServiceEnabled(Boolean isTrustedServiceEnabled)

Set the isTrustedServiceEnabled property: Indicates whether the trusted service is enabled or not.

Parameters:

isTrustedServiceEnabled - the isTrustedServiceEnabled value to set.

Returns:

the AutomationActionEventHub object itself.

Applies to