Class UpdateEventStreamResponseContent
- Namespace
- Auth0.ManagementApi
- Assembly
- Auth0.ManagementApi.dll
[JsonConverter(typeof(UpdateEventStreamResponseContent.JsonConverter))]
[Serializable]
public class UpdateEventStreamResponseContent
- Inheritance
-
UpdateEventStreamResponseContent
- Inherited Members
- Extension Methods
Properties
Type
Type discriminator
[JsonIgnore]
public string Type { get; }
Property Value
Value
Union value
[JsonIgnore]
public object? Value { get; }
Property Value
Methods
AsEventStreamActionResponseContent()
Returns the value as a EventStreamActionResponseContent if Type is 'eventStreamActionResponseContent', otherwise throws an exception.
public EventStreamActionResponseContent AsEventStreamActionResponseContent()
Returns
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
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
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
objobjectThe 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 UpdateEventStreamResponseContent FromEventStreamActionResponseContent(EventStreamActionResponseContent value)
Parameters
Returns
FromEventStreamEventBridgeResponseContent(EventStreamEventBridgeResponseContent)
Factory method to create a union from a Auth0.ManagementApi.EventStreamEventBridgeResponseContent value.
public static UpdateEventStreamResponseContent FromEventStreamEventBridgeResponseContent(EventStreamEventBridgeResponseContent value)
Parameters
Returns
FromEventStreamWebhookResponseContent(EventStreamWebhookResponseContent)
Factory method to create a union from a Auth0.ManagementApi.EventStreamWebhookResponseContent value.
public static UpdateEventStreamResponseContent FromEventStreamWebhookResponseContent(EventStreamWebhookResponseContent value)
Parameters
Returns
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
IsEventStreamEventBridgeResponseContent()
Returns true if Type is "eventStreamEventBridgeResponseContent"
public bool IsEventStreamEventBridgeResponseContent()
Returns
IsEventStreamWebhookResponseContent()
Returns true if Type is "eventStreamWebhookResponseContent"
public bool IsEventStreamWebhookResponseContent()
Returns
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
onEventStreamWebhookResponseContentFunc<EventStreamWebhookResponseContent, T>onEventStreamEventBridgeResponseContentFunc<EventStreamEventBridgeResponseContent, T>onEventStreamActionResponseContentFunc<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
Returns
TryGetEventStreamEventBridgeResponseContent(out EventStreamEventBridgeResponseContent?)
Attempts to cast the value to a EventStreamEventBridgeResponseContent and returns true if successful.
public bool TryGetEventStreamEventBridgeResponseContent(out EventStreamEventBridgeResponseContent? value)
Parameters
Returns
TryGetEventStreamWebhookResponseContent(out EventStreamWebhookResponseContent?)
Attempts to cast the value to a EventStreamWebhookResponseContent and returns true if successful.
public bool TryGetEventStreamWebhookResponseContent(out EventStreamWebhookResponseContent? value)
Parameters
Returns
Visit(Action<EventStreamWebhookResponseContent>, Action<EventStreamEventBridgeResponseContent>, Action<EventStreamActionResponseContent>)
public void Visit(Action<EventStreamWebhookResponseContent> onEventStreamWebhookResponseContent, Action<EventStreamEventBridgeResponseContent> onEventStreamEventBridgeResponseContent, Action<EventStreamActionResponseContent> onEventStreamActionResponseContent)
Parameters
onEventStreamWebhookResponseContentAction<EventStreamWebhookResponseContent>onEventStreamEventBridgeResponseContentAction<EventStreamEventBridgeResponseContent>onEventStreamActionResponseContentAction<EventStreamActionResponseContent>
Operators
implicit operator UpdateEventStreamResponseContent(EventStreamActionResponseContent)
public static implicit operator UpdateEventStreamResponseContent(EventStreamActionResponseContent value)
Parameters
Returns
implicit operator UpdateEventStreamResponseContent(EventStreamEventBridgeResponseContent)
public static implicit operator UpdateEventStreamResponseContent(EventStreamEventBridgeResponseContent value)
Parameters
Returns
implicit operator UpdateEventStreamResponseContent(EventStreamWebhookResponseContent)
public static implicit operator UpdateEventStreamResponseContent(EventStreamWebhookResponseContent value)