Table of Contents

Class FlowActionSalesforce

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

AsFlowActionSalesforceCreateLead()

Returns the value as a FlowActionSalesforceCreateLead if Type is 'flowActionSalesforceCreateLead', otherwise throws an exception.

public FlowActionSalesforceCreateLead AsFlowActionSalesforceCreateLead()

Returns

FlowActionSalesforceCreateLead

Exceptions

ManagementException

Thrown when Type is not 'flowActionSalesforceCreateLead'.

AsFlowActionSalesforceGetLead()

Returns the value as a FlowActionSalesforceGetLead if Type is 'flowActionSalesforceGetLead', otherwise throws an exception.

public FlowActionSalesforceGetLead AsFlowActionSalesforceGetLead()

Returns

FlowActionSalesforceGetLead

Exceptions

ManagementException

Thrown when Type is not 'flowActionSalesforceGetLead'.

AsFlowActionSalesforceSearchLeads()

Returns the value as a FlowActionSalesforceSearchLeads if Type is 'flowActionSalesforceSearchLeads', otherwise throws an exception.

public FlowActionSalesforceSearchLeads AsFlowActionSalesforceSearchLeads()

Returns

FlowActionSalesforceSearchLeads

Exceptions

ManagementException

Thrown when Type is not 'flowActionSalesforceSearchLeads'.

AsFlowActionSalesforceUpdateLead()

Returns the value as a FlowActionSalesforceUpdateLead if Type is 'flowActionSalesforceUpdateLead', otherwise throws an exception.

public FlowActionSalesforceUpdateLead AsFlowActionSalesforceUpdateLead()

Returns

FlowActionSalesforceUpdateLead

Exceptions

ManagementException

Thrown when Type is not 'flowActionSalesforceUpdateLead'.

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.

FromFlowActionSalesforceCreateLead(FlowActionSalesforceCreateLead)

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

public static FlowActionSalesforce FromFlowActionSalesforceCreateLead(FlowActionSalesforceCreateLead value)

Parameters

value FlowActionSalesforceCreateLead

Returns

FlowActionSalesforce

FromFlowActionSalesforceGetLead(FlowActionSalesforceGetLead)

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

public static FlowActionSalesforce FromFlowActionSalesforceGetLead(FlowActionSalesforceGetLead value)

Parameters

value FlowActionSalesforceGetLead

Returns

FlowActionSalesforce

FromFlowActionSalesforceSearchLeads(FlowActionSalesforceSearchLeads)

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

public static FlowActionSalesforce FromFlowActionSalesforceSearchLeads(FlowActionSalesforceSearchLeads value)

Parameters

value FlowActionSalesforceSearchLeads

Returns

FlowActionSalesforce

FromFlowActionSalesforceUpdateLead(FlowActionSalesforceUpdateLead)

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

public static FlowActionSalesforce FromFlowActionSalesforceUpdateLead(FlowActionSalesforceUpdateLead value)

Parameters

value FlowActionSalesforceUpdateLead

Returns

FlowActionSalesforce

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

IsFlowActionSalesforceCreateLead()

Returns true if Type is "flowActionSalesforceCreateLead"

public bool IsFlowActionSalesforceCreateLead()

Returns

bool

IsFlowActionSalesforceGetLead()

Returns true if Type is "flowActionSalesforceGetLead"

public bool IsFlowActionSalesforceGetLead()

Returns

bool

IsFlowActionSalesforceSearchLeads()

Returns true if Type is "flowActionSalesforceSearchLeads"

public bool IsFlowActionSalesforceSearchLeads()

Returns

bool

IsFlowActionSalesforceUpdateLead()

Returns true if Type is "flowActionSalesforceUpdateLead"

public bool IsFlowActionSalesforceUpdateLead()

Returns

bool

Match<T>(Func<FlowActionSalesforceCreateLead, T>, Func<FlowActionSalesforceGetLead, T>, Func<FlowActionSalesforceSearchLeads, T>, Func<FlowActionSalesforceUpdateLead, T>)

public T Match<T>(Func<FlowActionSalesforceCreateLead, T> onFlowActionSalesforceCreateLead, Func<FlowActionSalesforceGetLead, T> onFlowActionSalesforceGetLead, Func<FlowActionSalesforceSearchLeads, T> onFlowActionSalesforceSearchLeads, Func<FlowActionSalesforceUpdateLead, T> onFlowActionSalesforceUpdateLead)

Parameters

onFlowActionSalesforceCreateLead Func<FlowActionSalesforceCreateLead, T>
onFlowActionSalesforceGetLead Func<FlowActionSalesforceGetLead, T>
onFlowActionSalesforceSearchLeads Func<FlowActionSalesforceSearchLeads, T>
onFlowActionSalesforceUpdateLead Func<FlowActionSalesforceUpdateLead, 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.

TryGetFlowActionSalesforceCreateLead(out FlowActionSalesforceCreateLead?)

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

public bool TryGetFlowActionSalesforceCreateLead(out FlowActionSalesforceCreateLead? value)

Parameters

value FlowActionSalesforceCreateLead

Returns

bool

TryGetFlowActionSalesforceGetLead(out FlowActionSalesforceGetLead?)

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

public bool TryGetFlowActionSalesforceGetLead(out FlowActionSalesforceGetLead? value)

Parameters

value FlowActionSalesforceGetLead

Returns

bool

TryGetFlowActionSalesforceSearchLeads(out FlowActionSalesforceSearchLeads?)

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

public bool TryGetFlowActionSalesforceSearchLeads(out FlowActionSalesforceSearchLeads? value)

Parameters

value FlowActionSalesforceSearchLeads

Returns

bool

TryGetFlowActionSalesforceUpdateLead(out FlowActionSalesforceUpdateLead?)

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

public bool TryGetFlowActionSalesforceUpdateLead(out FlowActionSalesforceUpdateLead? value)

Parameters

value FlowActionSalesforceUpdateLead

Returns

bool

Visit(Action<FlowActionSalesforceCreateLead>, Action<FlowActionSalesforceGetLead>, Action<FlowActionSalesforceSearchLeads>, Action<FlowActionSalesforceUpdateLead>)

public void Visit(Action<FlowActionSalesforceCreateLead> onFlowActionSalesforceCreateLead, Action<FlowActionSalesforceGetLead> onFlowActionSalesforceGetLead, Action<FlowActionSalesforceSearchLeads> onFlowActionSalesforceSearchLeads, Action<FlowActionSalesforceUpdateLead> onFlowActionSalesforceUpdateLead)

Parameters

onFlowActionSalesforceCreateLead Action<FlowActionSalesforceCreateLead>
onFlowActionSalesforceGetLead Action<FlowActionSalesforceGetLead>
onFlowActionSalesforceSearchLeads Action<FlowActionSalesforceSearchLeads>
onFlowActionSalesforceUpdateLead Action<FlowActionSalesforceUpdateLead>

Operators

implicit operator FlowActionSalesforce(FlowActionSalesforceCreateLead)

public static implicit operator FlowActionSalesforce(FlowActionSalesforceCreateLead value)

Parameters

value FlowActionSalesforceCreateLead

Returns

FlowActionSalesforce

implicit operator FlowActionSalesforce(FlowActionSalesforceGetLead)

public static implicit operator FlowActionSalesforce(FlowActionSalesforceGetLead value)

Parameters

value FlowActionSalesforceGetLead

Returns

FlowActionSalesforce

implicit operator FlowActionSalesforce(FlowActionSalesforceSearchLeads)

public static implicit operator FlowActionSalesforce(FlowActionSalesforceSearchLeads value)

Parameters

value FlowActionSalesforceSearchLeads

Returns

FlowActionSalesforce

implicit operator FlowActionSalesforce(FlowActionSalesforceUpdateLead)

public static implicit operator FlowActionSalesforce(FlowActionSalesforceUpdateLead value)

Parameters

value FlowActionSalesforceUpdateLead

Returns

FlowActionSalesforce