Class UpdateDefaultDomainResponseContent
- Namespace
- Auth0.ManagementApi
- Assembly
- Auth0.ManagementApi.dll
[JsonConverter(typeof(UpdateDefaultDomainResponseContent.JsonConverter))]
[Serializable]
public class UpdateDefaultDomainResponseContent
- Inheritance
-
UpdateDefaultDomainResponseContent
- 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
AsUpdateDefaultCanonicalDomainResponseContent()
Returns the value as a UpdateDefaultCanonicalDomainResponseContent if Type is 'updateDefaultCanonicalDomainResponseContent', otherwise throws an exception.
public UpdateDefaultCanonicalDomainResponseContent AsUpdateDefaultCanonicalDomainResponseContent()
Returns
Exceptions
- ManagementException
Thrown when Type is not 'updateDefaultCanonicalDomainResponseContent'.
AsUpdateDefaultCustomDomainResponseContent()
Returns the value as a UpdateDefaultCustomDomainResponseContent if Type is 'updateDefaultCustomDomainResponseContent', otherwise throws an exception.
public UpdateDefaultCustomDomainResponseContent AsUpdateDefaultCustomDomainResponseContent()
Returns
Exceptions
- ManagementException
Thrown when Type is not 'updateDefaultCustomDomainResponseContent'.
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.
FromUpdateDefaultCanonicalDomainResponseContent(UpdateDefaultCanonicalDomainResponseContent)
Factory method to create a union from a Auth0.ManagementApi.UpdateDefaultCanonicalDomainResponseContent value.
public static UpdateDefaultDomainResponseContent FromUpdateDefaultCanonicalDomainResponseContent(UpdateDefaultCanonicalDomainResponseContent value)
Parameters
Returns
FromUpdateDefaultCustomDomainResponseContent(UpdateDefaultCustomDomainResponseContent)
Factory method to create a union from a Auth0.ManagementApi.UpdateDefaultCustomDomainResponseContent value.
public static UpdateDefaultDomainResponseContent FromUpdateDefaultCustomDomainResponseContent(UpdateDefaultCustomDomainResponseContent value)
Parameters
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
IsUpdateDefaultCanonicalDomainResponseContent()
Returns true if Type is "updateDefaultCanonicalDomainResponseContent"
public bool IsUpdateDefaultCanonicalDomainResponseContent()
Returns
IsUpdateDefaultCustomDomainResponseContent()
Returns true if Type is "updateDefaultCustomDomainResponseContent"
public bool IsUpdateDefaultCustomDomainResponseContent()
Returns
Match<T>(Func<UpdateDefaultCustomDomainResponseContent, T>, Func<UpdateDefaultCanonicalDomainResponseContent, T>)
public T Match<T>(Func<UpdateDefaultCustomDomainResponseContent, T> onUpdateDefaultCustomDomainResponseContent, Func<UpdateDefaultCanonicalDomainResponseContent, T> onUpdateDefaultCanonicalDomainResponseContent)
Parameters
onUpdateDefaultCustomDomainResponseContentFunc<UpdateDefaultCustomDomainResponseContent, T>onUpdateDefaultCanonicalDomainResponseContentFunc<UpdateDefaultCanonicalDomainResponseContent, 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.
TryGetUpdateDefaultCanonicalDomainResponseContent(out UpdateDefaultCanonicalDomainResponseContent?)
Attempts to cast the value to a UpdateDefaultCanonicalDomainResponseContent and returns true if successful.
public bool TryGetUpdateDefaultCanonicalDomainResponseContent(out UpdateDefaultCanonicalDomainResponseContent? value)
Parameters
Returns
TryGetUpdateDefaultCustomDomainResponseContent(out UpdateDefaultCustomDomainResponseContent?)
Attempts to cast the value to a UpdateDefaultCustomDomainResponseContent and returns true if successful.
public bool TryGetUpdateDefaultCustomDomainResponseContent(out UpdateDefaultCustomDomainResponseContent? value)
Parameters
Returns
Visit(Action<UpdateDefaultCustomDomainResponseContent>, Action<UpdateDefaultCanonicalDomainResponseContent>)
public void Visit(Action<UpdateDefaultCustomDomainResponseContent> onUpdateDefaultCustomDomainResponseContent, Action<UpdateDefaultCanonicalDomainResponseContent> onUpdateDefaultCanonicalDomainResponseContent)
Parameters
onUpdateDefaultCustomDomainResponseContentAction<UpdateDefaultCustomDomainResponseContent>onUpdateDefaultCanonicalDomainResponseContentAction<UpdateDefaultCanonicalDomainResponseContent>
Operators
implicit operator UpdateDefaultDomainResponseContent(UpdateDefaultCanonicalDomainResponseContent)
public static implicit operator UpdateDefaultDomainResponseContent(UpdateDefaultCanonicalDomainResponseContent value)
Parameters
Returns
implicit operator UpdateDefaultDomainResponseContent(UpdateDefaultCustomDomainResponseContent)
public static implicit operator UpdateDefaultDomainResponseContent(UpdateDefaultCustomDomainResponseContent value)