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
ActionType actionType()

Get the actionType property: The type of the action that will be triggered by the Automation.

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.

static AutomationActionEventHub fromJson(JsonReader jsonReader)

Reads an instance of AutomationActionEventHub from the JsonReader.

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.

JsonWriter toJson(JsonWriter jsonWriter)
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

actionType

public ActionType actionType()

Get the actionType property: The type of the action that will be triggered by the Automation.

Overrides:

AutomationActionEventHub.actionType()

Returns:

the actionType value.

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.

fromJson

public static AutomationActionEventHub fromJson(JsonReader jsonReader)

Reads an instance of AutomationActionEventHub from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AutomationActionEventHub if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the AutomationActionEventHub.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AutomationActionEventHub.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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