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
Value
Union value
[JsonIgnore]
public object? Value { get; }
Property Value
Methods
AsGetDefaultCanonicalDomainResponseContent()
Returns the value as a GetDefaultCanonicalDomainResponseContent if Type is 'getDefaultCanonicalDomainResponseContent', otherwise throws an exception.
public GetDefaultCanonicalDomainResponseContent AsGetDefaultCanonicalDomainResponseContent()
Returns
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
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
objobjectThe 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
Returns
FromGetDefaultCustomDomainResponseContent(GetDefaultCustomDomainResponseContent)
Factory method to create a union from a Auth0.ManagementApi.GetDefaultCustomDomainResponseContent value.
public static GetDefaultDomainResponseContent FromGetDefaultCustomDomainResponseContent(GetDefaultCustomDomainResponseContent value)
Parameters
Returns
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
IsGetDefaultCustomDomainResponseContent()
Returns true if Type is "getDefaultCustomDomainResponseContent"
public bool IsGetDefaultCustomDomainResponseContent()
Returns
Match<T>(Func<GetDefaultCustomDomainResponseContent, T>, Func<GetDefaultCanonicalDomainResponseContent, T>)
public T Match<T>(Func<GetDefaultCustomDomainResponseContent, T> onGetDefaultCustomDomainResponseContent, Func<GetDefaultCanonicalDomainResponseContent, T> onGetDefaultCanonicalDomainResponseContent)
Parameters
onGetDefaultCustomDomainResponseContentFunc<GetDefaultCustomDomainResponseContent, T>onGetDefaultCanonicalDomainResponseContentFunc<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
Returns
TryGetGetDefaultCustomDomainResponseContent(out GetDefaultCustomDomainResponseContent?)
Attempts to cast the value to a GetDefaultCustomDomainResponseContent and returns true if successful.
public bool TryGetGetDefaultCustomDomainResponseContent(out GetDefaultCustomDomainResponseContent? value)
Parameters
Returns
Visit(Action<GetDefaultCustomDomainResponseContent>, Action<GetDefaultCanonicalDomainResponseContent>)
public void Visit(Action<GetDefaultCustomDomainResponseContent> onGetDefaultCustomDomainResponseContent, Action<GetDefaultCanonicalDomainResponseContent> onGetDefaultCanonicalDomainResponseContent)
Parameters
onGetDefaultCustomDomainResponseContentAction<GetDefaultCustomDomainResponseContent>onGetDefaultCanonicalDomainResponseContentAction<GetDefaultCanonicalDomainResponseContent>
Operators
implicit operator GetDefaultDomainResponseContent(GetDefaultCanonicalDomainResponseContent)
public static implicit operator GetDefaultDomainResponseContent(GetDefaultCanonicalDomainResponseContent value)
Parameters
Returns
implicit operator GetDefaultDomainResponseContent(GetDefaultCustomDomainResponseContent)
public static implicit operator GetDefaultDomainResponseContent(GetDefaultCustomDomainResponseContent value)