Class FlowActionHubspot
- Namespace
- Auth0.ManagementApi
- Assembly
- Auth0.ManagementApi.dll
[JsonConverter(typeof(FlowActionHubspot.JsonConverter))]
[Serializable]
public class FlowActionHubspot
- Inheritance
-
FlowActionHubspot
- 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
AsFlowActionHubspotEnrollContact()
Returns the value as a FlowActionHubspotEnrollContact if Type is 'flowActionHubspotEnrollContact', otherwise throws an exception.
public FlowActionHubspotEnrollContact AsFlowActionHubspotEnrollContact()
Returns
Exceptions
- ManagementException
Thrown when Type is not 'flowActionHubspotEnrollContact'.
AsFlowActionHubspotGetContact()
Returns the value as a FlowActionHubspotGetContact if Type is 'flowActionHubspotGetContact', otherwise throws an exception.
public FlowActionHubspotGetContact AsFlowActionHubspotGetContact()
Returns
Exceptions
- ManagementException
Thrown when Type is not 'flowActionHubspotGetContact'.
AsFlowActionHubspotUpsertContact()
Returns the value as a FlowActionHubspotUpsertContact if Type is 'flowActionHubspotUpsertContact', otherwise throws an exception.
public FlowActionHubspotUpsertContact AsFlowActionHubspotUpsertContact()
Returns
Exceptions
- ManagementException
Thrown when Type is not 'flowActionHubspotUpsertContact'.
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.
FromFlowActionHubspotEnrollContact(FlowActionHubspotEnrollContact)
Factory method to create a union from a Auth0.ManagementApi.FlowActionHubspotEnrollContact value.
public static FlowActionHubspot FromFlowActionHubspotEnrollContact(FlowActionHubspotEnrollContact value)
Parameters
Returns
FromFlowActionHubspotGetContact(FlowActionHubspotGetContact)
Factory method to create a union from a Auth0.ManagementApi.FlowActionHubspotGetContact value.
public static FlowActionHubspot FromFlowActionHubspotGetContact(FlowActionHubspotGetContact value)
Parameters
Returns
FromFlowActionHubspotUpsertContact(FlowActionHubspotUpsertContact)
Factory method to create a union from a Auth0.ManagementApi.FlowActionHubspotUpsertContact value.
public static FlowActionHubspot FromFlowActionHubspotUpsertContact(FlowActionHubspotUpsertContact value)
Parameters
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
IsFlowActionHubspotEnrollContact()
Returns true if Type is "flowActionHubspotEnrollContact"
public bool IsFlowActionHubspotEnrollContact()
Returns
IsFlowActionHubspotGetContact()
Returns true if Type is "flowActionHubspotGetContact"
public bool IsFlowActionHubspotGetContact()
Returns
IsFlowActionHubspotUpsertContact()
Returns true if Type is "flowActionHubspotUpsertContact"
public bool IsFlowActionHubspotUpsertContact()
Returns
Match<T>(Func<FlowActionHubspotEnrollContact, T>, Func<FlowActionHubspotGetContact, T>, Func<FlowActionHubspotUpsertContact, T>)
public T Match<T>(Func<FlowActionHubspotEnrollContact, T> onFlowActionHubspotEnrollContact, Func<FlowActionHubspotGetContact, T> onFlowActionHubspotGetContact, Func<FlowActionHubspotUpsertContact, T> onFlowActionHubspotUpsertContact)
Parameters
onFlowActionHubspotEnrollContactFunc<FlowActionHubspotEnrollContact, T>onFlowActionHubspotGetContactFunc<FlowActionHubspotGetContact, T>onFlowActionHubspotUpsertContactFunc<FlowActionHubspotUpsertContact, 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.
TryGetFlowActionHubspotEnrollContact(out FlowActionHubspotEnrollContact?)
Attempts to cast the value to a FlowActionHubspotEnrollContact and returns true if successful.
public bool TryGetFlowActionHubspotEnrollContact(out FlowActionHubspotEnrollContact? value)
Parameters
Returns
TryGetFlowActionHubspotGetContact(out FlowActionHubspotGetContact?)
Attempts to cast the value to a FlowActionHubspotGetContact and returns true if successful.
public bool TryGetFlowActionHubspotGetContact(out FlowActionHubspotGetContact? value)
Parameters
Returns
TryGetFlowActionHubspotUpsertContact(out FlowActionHubspotUpsertContact?)
Attempts to cast the value to a FlowActionHubspotUpsertContact and returns true if successful.
public bool TryGetFlowActionHubspotUpsertContact(out FlowActionHubspotUpsertContact? value)
Parameters
Returns
Visit(Action<FlowActionHubspotEnrollContact>, Action<FlowActionHubspotGetContact>, Action<FlowActionHubspotUpsertContact>)
public void Visit(Action<FlowActionHubspotEnrollContact> onFlowActionHubspotEnrollContact, Action<FlowActionHubspotGetContact> onFlowActionHubspotGetContact, Action<FlowActionHubspotUpsertContact> onFlowActionHubspotUpsertContact)
Parameters
onFlowActionHubspotEnrollContactAction<FlowActionHubspotEnrollContact>onFlowActionHubspotGetContactAction<FlowActionHubspotGetContact>onFlowActionHubspotUpsertContactAction<FlowActionHubspotUpsertContact>
Operators
implicit operator FlowActionHubspot(FlowActionHubspotEnrollContact)
public static implicit operator FlowActionHubspot(FlowActionHubspotEnrollContact value)
Parameters
Returns
implicit operator FlowActionHubspot(FlowActionHubspotGetContact)
public static implicit operator FlowActionHubspot(FlowActionHubspotGetContact value)
Parameters
Returns
implicit operator FlowActionHubspot(FlowActionHubspotUpsertContact)
public static implicit operator FlowActionHubspot(FlowActionHubspotUpsertContact value)