Condividi tramite


Destination Class

  • java.lang.Object
    • com.azure.resourcemanager.loganalytics.fluent.models.Destination

Implements

public final class Destination
implements JsonSerializable<Destination>

Destination properties.

Constructor Summary

Constructor Description
Destination()

Creates an instance of Destination class.

Method Summary

Modifier and Type Method and Description
String eventHubName()

Get the eventHubName property: Optional.

static Destination fromJson(JsonReader jsonReader)

Reads an instance of Destination from the JsonReader.

String resourceId()

Get the resourceId property: The destination resource ID.

JsonWriter toJson(JsonWriter jsonWriter)
Type type()

Get the type property: The type of the destination resource.

void validate()

Validates the instance.

Destination withEventHubName(String eventHubName)

Set the eventHubName property: Optional.

Destination withResourceId(String resourceId)

Set the resourceId property: The destination resource ID.

Methods inherited from java.lang.Object

Constructor Details

Destination

public Destination()

Creates an instance of Destination class.

Method Details

eventHubName

public String eventHubName()

Get the eventHubName property: Optional. Allows to define an Event Hub name. Not applicable when destination is Storage Account.

Returns:

the eventHubName value.

fromJson

public static Destination fromJson(JsonReader jsonReader)

Reads an instance of Destination from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

resourceId

public String resourceId()

Get the resourceId property: The destination resource ID. This can be copied from the Properties entry of the destination resource in Azure.

Returns:

the resourceId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public Type type()

Get the type property: The type of the destination resource.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withEventHubName

public Destination withEventHubName(String eventHubName)

Set the eventHubName property: Optional. Allows to define an Event Hub name. Not applicable when destination is Storage Account.

Parameters:

eventHubName - the eventHubName value to set.

Returns:

the Destination object itself.

withResourceId

public Destination withResourceId(String resourceId)

Set the resourceId property: The destination resource ID. This can be copied from the Properties entry of the destination resource in Azure.

Parameters:

resourceId - the resourceId value to set.

Returns:

the Destination object itself.

Applies to