Table of Contents

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

string

Value

Union value

[JsonIgnore]
public object? Value { get; }

Property Value

object

Methods

AsFlowActionHubspotEnrollContact()

Returns the value as a FlowActionHubspotEnrollContact if Type is 'flowActionHubspotEnrollContact', otherwise throws an exception.

public FlowActionHubspotEnrollContact AsFlowActionHubspotEnrollContact()

Returns

FlowActionHubspotEnrollContact

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

FlowActionHubspotGetContact

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

FlowActionHubspotUpsertContact

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

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.

FromFlowActionHubspotEnrollContact(FlowActionHubspotEnrollContact)

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

public static FlowActionHubspot FromFlowActionHubspotEnrollContact(FlowActionHubspotEnrollContact value)

Parameters

value FlowActionHubspotEnrollContact

Returns

FlowActionHubspot

FromFlowActionHubspotGetContact(FlowActionHubspotGetContact)

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

public static FlowActionHubspot FromFlowActionHubspotGetContact(FlowActionHubspotGetContact value)

Parameters

value FlowActionHubspotGetContact

Returns

FlowActionHubspot

FromFlowActionHubspotUpsertContact(FlowActionHubspotUpsertContact)

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

public static FlowActionHubspot FromFlowActionHubspotUpsertContact(FlowActionHubspotUpsertContact value)

Parameters

value FlowActionHubspotUpsertContact

Returns

FlowActionHubspot

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

bool

IsFlowActionHubspotGetContact()

Returns true if Type is "flowActionHubspotGetContact"

public bool IsFlowActionHubspotGetContact()

Returns

bool

IsFlowActionHubspotUpsertContact()

Returns true if Type is "flowActionHubspotUpsertContact"

public bool IsFlowActionHubspotUpsertContact()

Returns

bool

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

onFlowActionHubspotEnrollContact Func<FlowActionHubspotEnrollContact, T>
onFlowActionHubspotGetContact Func<FlowActionHubspotGetContact, T>
onFlowActionHubspotUpsertContact Func<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

value FlowActionHubspotEnrollContact

Returns

bool

TryGetFlowActionHubspotGetContact(out FlowActionHubspotGetContact?)

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

public bool TryGetFlowActionHubspotGetContact(out FlowActionHubspotGetContact? value)

Parameters

value FlowActionHubspotGetContact

Returns

bool

TryGetFlowActionHubspotUpsertContact(out FlowActionHubspotUpsertContact?)

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

public bool TryGetFlowActionHubspotUpsertContact(out FlowActionHubspotUpsertContact? value)

Parameters

value FlowActionHubspotUpsertContact

Returns

bool

Visit(Action<FlowActionHubspotEnrollContact>, Action<FlowActionHubspotGetContact>, Action<FlowActionHubspotUpsertContact>)

public void Visit(Action<FlowActionHubspotEnrollContact> onFlowActionHubspotEnrollContact, Action<FlowActionHubspotGetContact> onFlowActionHubspotGetContact, Action<FlowActionHubspotUpsertContact> onFlowActionHubspotUpsertContact)

Parameters

onFlowActionHubspotEnrollContact Action<FlowActionHubspotEnrollContact>
onFlowActionHubspotGetContact Action<FlowActionHubspotGetContact>
onFlowActionHubspotUpsertContact Action<FlowActionHubspotUpsertContact>

Operators

implicit operator FlowActionHubspot(FlowActionHubspotEnrollContact)

public static implicit operator FlowActionHubspot(FlowActionHubspotEnrollContact value)

Parameters

value FlowActionHubspotEnrollContact

Returns

FlowActionHubspot

implicit operator FlowActionHubspot(FlowActionHubspotGetContact)

public static implicit operator FlowActionHubspot(FlowActionHubspotGetContact value)

Parameters

value FlowActionHubspotGetContact

Returns

FlowActionHubspot

implicit operator FlowActionHubspot(FlowActionHubspotUpsertContact)

public static implicit operator FlowActionHubspot(FlowActionHubspotUpsertContact value)

Parameters

value FlowActionHubspotUpsertContact

Returns

FlowActionHubspot