Table of Contents

Class GetDefaultDomainResponseContent

Namespace
Auth0.ManagementApi
Assembly
Auth0.ManagementApi.dll
[JsonConverter(typeof(GetDefaultDomainResponseContent.JsonConverter))]
[Serializable]
public class GetDefaultDomainResponseContent
Inheritance
GetDefaultDomainResponseContent
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

AsGetDefaultCanonicalDomainResponseContent()

Returns the value as a GetDefaultCanonicalDomainResponseContent if Type is 'getDefaultCanonicalDomainResponseContent', otherwise throws an exception.

public GetDefaultCanonicalDomainResponseContent AsGetDefaultCanonicalDomainResponseContent()

Returns

GetDefaultCanonicalDomainResponseContent

Exceptions

ManagementException

Thrown when Type is not 'getDefaultCanonicalDomainResponseContent'.

AsGetDefaultCustomDomainResponseContent()

Returns the value as a GetDefaultCustomDomainResponseContent if Type is 'getDefaultCustomDomainResponseContent', otherwise throws an exception.

public GetDefaultCustomDomainResponseContent AsGetDefaultCustomDomainResponseContent()

Returns

GetDefaultCustomDomainResponseContent

Exceptions

ManagementException

Thrown when Type is not 'getDefaultCustomDomainResponseContent'.

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.

FromGetDefaultCanonicalDomainResponseContent(GetDefaultCanonicalDomainResponseContent)

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

public static GetDefaultDomainResponseContent FromGetDefaultCanonicalDomainResponseContent(GetDefaultCanonicalDomainResponseContent value)

Parameters

value GetDefaultCanonicalDomainResponseContent

Returns

GetDefaultDomainResponseContent

FromGetDefaultCustomDomainResponseContent(GetDefaultCustomDomainResponseContent)

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

public static GetDefaultDomainResponseContent FromGetDefaultCustomDomainResponseContent(GetDefaultCustomDomainResponseContent value)

Parameters

value GetDefaultCustomDomainResponseContent

Returns

GetDefaultDomainResponseContent

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

IsGetDefaultCanonicalDomainResponseContent()

Returns true if Type is "getDefaultCanonicalDomainResponseContent"

public bool IsGetDefaultCanonicalDomainResponseContent()

Returns

bool

IsGetDefaultCustomDomainResponseContent()

Returns true if Type is "getDefaultCustomDomainResponseContent"

public bool IsGetDefaultCustomDomainResponseContent()

Returns

bool

Match<T>(Func<GetDefaultCustomDomainResponseContent, T>, Func<GetDefaultCanonicalDomainResponseContent, T>)

public T Match<T>(Func<GetDefaultCustomDomainResponseContent, T> onGetDefaultCustomDomainResponseContent, Func<GetDefaultCanonicalDomainResponseContent, T> onGetDefaultCanonicalDomainResponseContent)

Parameters

onGetDefaultCustomDomainResponseContent Func<GetDefaultCustomDomainResponseContent, T>
onGetDefaultCanonicalDomainResponseContent Func<GetDefaultCanonicalDomainResponseContent, 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.

TryGetGetDefaultCanonicalDomainResponseContent(out GetDefaultCanonicalDomainResponseContent?)

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

public bool TryGetGetDefaultCanonicalDomainResponseContent(out GetDefaultCanonicalDomainResponseContent? value)

Parameters

value GetDefaultCanonicalDomainResponseContent

Returns

bool

TryGetGetDefaultCustomDomainResponseContent(out GetDefaultCustomDomainResponseContent?)

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

public bool TryGetGetDefaultCustomDomainResponseContent(out GetDefaultCustomDomainResponseContent? value)

Parameters

value GetDefaultCustomDomainResponseContent

Returns

bool

Visit(Action<GetDefaultCustomDomainResponseContent>, Action<GetDefaultCanonicalDomainResponseContent>)

public void Visit(Action<GetDefaultCustomDomainResponseContent> onGetDefaultCustomDomainResponseContent, Action<GetDefaultCanonicalDomainResponseContent> onGetDefaultCanonicalDomainResponseContent)

Parameters

onGetDefaultCustomDomainResponseContent Action<GetDefaultCustomDomainResponseContent>
onGetDefaultCanonicalDomainResponseContent Action<GetDefaultCanonicalDomainResponseContent>

Operators

implicit operator GetDefaultDomainResponseContent(GetDefaultCanonicalDomainResponseContent)

public static implicit operator GetDefaultDomainResponseContent(GetDefaultCanonicalDomainResponseContent value)

Parameters

value GetDefaultCanonicalDomainResponseContent

Returns

GetDefaultDomainResponseContent

implicit operator GetDefaultDomainResponseContent(GetDefaultCustomDomainResponseContent)

public static implicit operator GetDefaultDomainResponseContent(GetDefaultCustomDomainResponseContent value)

Parameters

value GetDefaultCustomDomainResponseContent

Returns

GetDefaultDomainResponseContent