Table of Contents

Class CreateEventStreamResponseContent

Namespace
Auth0.ManagementApi
Assembly
Auth0.ManagementApi.dll
[JsonConverter(typeof(CreateEventStreamResponseContent.JsonConverter))]
[Serializable]
public class CreateEventStreamResponseContent
Inheritance
CreateEventStreamResponseContent
Inherited Members
Extension Methods

Properties

Type

Type discriminator

[JsonIgnore]
public string Type { get; }

Property Value

string

Value

Union value

[JsonIgnore]
public object? Value { get; }

Property Value

object

Methods

AsEventStreamActionResponseContent()

Returns the value as a EventStreamActionResponseContent if Type is 'eventStreamActionResponseContent', otherwise throws an exception.

public EventStreamActionResponseContent AsEventStreamActionResponseContent()

Returns

EventStreamActionResponseContent

Exceptions

ManagementException

Thrown when Type is not 'eventStreamActionResponseContent'.

AsEventStreamEventBridgeResponseContent()

Returns the value as a EventStreamEventBridgeResponseContent if Type is 'eventStreamEventBridgeResponseContent', otherwise throws an exception.

public EventStreamEventBridgeResponseContent AsEventStreamEventBridgeResponseContent()

Returns

EventStreamEventBridgeResponseContent

Exceptions

ManagementException

Thrown when Type is not 'eventStreamEventBridgeResponseContent'.

AsEventStreamWebhookResponseContent()

Returns the value as a EventStreamWebhookResponseContent if Type is 'eventStreamWebhookResponseContent', otherwise throws an exception.

public EventStreamWebhookResponseContent AsEventStreamWebhookResponseContent()

Returns

EventStreamWebhookResponseContent

Exceptions

ManagementException

Thrown when Type is not 'eventStreamWebhookResponseContent'.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

FromEventStreamActionResponseContent(EventStreamActionResponseContent)

Factory method to create a union from a Auth0.ManagementApi.EventStreamActionResponseContent value.

public static CreateEventStreamResponseContent FromEventStreamActionResponseContent(EventStreamActionResponseContent value)

Parameters

value EventStreamActionResponseContent

Returns

CreateEventStreamResponseContent

FromEventStreamEventBridgeResponseContent(EventStreamEventBridgeResponseContent)

Factory method to create a union from a Auth0.ManagementApi.EventStreamEventBridgeResponseContent value.

public static CreateEventStreamResponseContent FromEventStreamEventBridgeResponseContent(EventStreamEventBridgeResponseContent value)

Parameters

value EventStreamEventBridgeResponseContent

Returns

CreateEventStreamResponseContent

FromEventStreamWebhookResponseContent(EventStreamWebhookResponseContent)

Factory method to create a union from a Auth0.ManagementApi.EventStreamWebhookResponseContent value.

public static CreateEventStreamResponseContent FromEventStreamWebhookResponseContent(EventStreamWebhookResponseContent value)

Parameters

value EventStreamWebhookResponseContent

Returns

CreateEventStreamResponseContent

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

IsEventStreamActionResponseContent()

Returns true if Type is "eventStreamActionResponseContent"

public bool IsEventStreamActionResponseContent()

Returns

bool

IsEventStreamEventBridgeResponseContent()

Returns true if Type is "eventStreamEventBridgeResponseContent"

public bool IsEventStreamEventBridgeResponseContent()

Returns

bool

IsEventStreamWebhookResponseContent()

Returns true if Type is "eventStreamWebhookResponseContent"

public bool IsEventStreamWebhookResponseContent()

Returns

bool

Match<T>(Func<EventStreamWebhookResponseContent, T>, Func<EventStreamEventBridgeResponseContent, T>, Func<EventStreamActionResponseContent, T>)

public T Match<T>(Func<EventStreamWebhookResponseContent, T> onEventStreamWebhookResponseContent, Func<EventStreamEventBridgeResponseContent, T> onEventStreamEventBridgeResponseContent, Func<EventStreamActionResponseContent, T> onEventStreamActionResponseContent)

Parameters

onEventStreamWebhookResponseContent Func<EventStreamWebhookResponseContent, T>
onEventStreamEventBridgeResponseContent Func<EventStreamEventBridgeResponseContent, T>
onEventStreamActionResponseContent Func<EventStreamActionResponseContent, T>

Returns

T

Type Parameters

T

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

TryGetEventStreamActionResponseContent(out EventStreamActionResponseContent?)

Attempts to cast the value to a EventStreamActionResponseContent and returns true if successful.

public bool TryGetEventStreamActionResponseContent(out EventStreamActionResponseContent? value)

Parameters

value EventStreamActionResponseContent

Returns

bool

TryGetEventStreamEventBridgeResponseContent(out EventStreamEventBridgeResponseContent?)

Attempts to cast the value to a EventStreamEventBridgeResponseContent and returns true if successful.

public bool TryGetEventStreamEventBridgeResponseContent(out EventStreamEventBridgeResponseContent? value)

Parameters

value EventStreamEventBridgeResponseContent

Returns

bool

TryGetEventStreamWebhookResponseContent(out EventStreamWebhookResponseContent?)

Attempts to cast the value to a EventStreamWebhookResponseContent and returns true if successful.

public bool TryGetEventStreamWebhookResponseContent(out EventStreamWebhookResponseContent? value)

Parameters

value EventStreamWebhookResponseContent

Returns

bool

Visit(Action<EventStreamWebhookResponseContent>, Action<EventStreamEventBridgeResponseContent>, Action<EventStreamActionResponseContent>)

public void Visit(Action<EventStreamWebhookResponseContent> onEventStreamWebhookResponseContent, Action<EventStreamEventBridgeResponseContent> onEventStreamEventBridgeResponseContent, Action<EventStreamActionResponseContent> onEventStreamActionResponseContent)

Parameters

onEventStreamWebhookResponseContent Action<EventStreamWebhookResponseContent>
onEventStreamEventBridgeResponseContent Action<EventStreamEventBridgeResponseContent>
onEventStreamActionResponseContent Action<EventStreamActionResponseContent>

Operators

implicit operator CreateEventStreamResponseContent(EventStreamActionResponseContent)

public static implicit operator CreateEventStreamResponseContent(EventStreamActionResponseContent value)

Parameters

value EventStreamActionResponseContent

Returns

CreateEventStreamResponseContent

implicit operator CreateEventStreamResponseContent(EventStreamEventBridgeResponseContent)

public static implicit operator CreateEventStreamResponseContent(EventStreamEventBridgeResponseContent value)

Parameters

value EventStreamEventBridgeResponseContent

Returns

CreateEventStreamResponseContent

implicit operator CreateEventStreamResponseContent(EventStreamWebhookResponseContent)

public static implicit operator CreateEventStreamResponseContent(EventStreamWebhookResponseContent value)

Parameters

value EventStreamWebhookResponseContent

Returns

CreateEventStreamResponseContent