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
Value
Union value
[JsonIgnore]
public object? Value { get; }
Property Value
Methods
AsFlowActionSalesforceCreateLead()
Returns the value as a FlowActionSalesforceCreateLead if Type is 'flowActionSalesforceCreateLead', otherwise throws an exception.
public FlowActionSalesforceCreateLead AsFlowActionSalesforceCreateLead()
Returns
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
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
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
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
objobjectThe 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
Returns
FromFlowActionSalesforceGetLead(FlowActionSalesforceGetLead)
Factory method to create a union from a Auth0.ManagementApi.FlowActionSalesforceGetLead value.
public static FlowActionSalesforce FromFlowActionSalesforceGetLead(FlowActionSalesforceGetLead value)
Parameters
Returns
FromFlowActionSalesforceSearchLeads(FlowActionSalesforceSearchLeads)
Factory method to create a union from a Auth0.ManagementApi.FlowActionSalesforceSearchLeads value.
public static FlowActionSalesforce FromFlowActionSalesforceSearchLeads(FlowActionSalesforceSearchLeads value)
Parameters
Returns
FromFlowActionSalesforceUpdateLead(FlowActionSalesforceUpdateLead)
Factory method to create a union from a Auth0.ManagementApi.FlowActionSalesforceUpdateLead value.
public static FlowActionSalesforce FromFlowActionSalesforceUpdateLead(FlowActionSalesforceUpdateLead value)
Parameters
Returns
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
IsFlowActionSalesforceGetLead()
Returns true if Type is "flowActionSalesforceGetLead"
public bool IsFlowActionSalesforceGetLead()
Returns
IsFlowActionSalesforceSearchLeads()
Returns true if Type is "flowActionSalesforceSearchLeads"
public bool IsFlowActionSalesforceSearchLeads()
Returns
IsFlowActionSalesforceUpdateLead()
Returns true if Type is "flowActionSalesforceUpdateLead"
public bool IsFlowActionSalesforceUpdateLead()
Returns
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
onFlowActionSalesforceCreateLeadFunc<FlowActionSalesforceCreateLead, T>onFlowActionSalesforceGetLeadFunc<FlowActionSalesforceGetLead, T>onFlowActionSalesforceSearchLeadsFunc<FlowActionSalesforceSearchLeads, T>onFlowActionSalesforceUpdateLeadFunc<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
Returns
TryGetFlowActionSalesforceGetLead(out FlowActionSalesforceGetLead?)
Attempts to cast the value to a FlowActionSalesforceGetLead and returns true if successful.
public bool TryGetFlowActionSalesforceGetLead(out FlowActionSalesforceGetLead? value)
Parameters
Returns
TryGetFlowActionSalesforceSearchLeads(out FlowActionSalesforceSearchLeads?)
Attempts to cast the value to a FlowActionSalesforceSearchLeads and returns true if successful.
public bool TryGetFlowActionSalesforceSearchLeads(out FlowActionSalesforceSearchLeads? value)
Parameters
Returns
TryGetFlowActionSalesforceUpdateLead(out FlowActionSalesforceUpdateLead?)
Attempts to cast the value to a FlowActionSalesforceUpdateLead and returns true if successful.
public bool TryGetFlowActionSalesforceUpdateLead(out FlowActionSalesforceUpdateLead? value)
Parameters
Returns
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
onFlowActionSalesforceCreateLeadAction<FlowActionSalesforceCreateLead>onFlowActionSalesforceGetLeadAction<FlowActionSalesforceGetLead>onFlowActionSalesforceSearchLeadsAction<FlowActionSalesforceSearchLeads>onFlowActionSalesforceUpdateLeadAction<FlowActionSalesforceUpdateLead>
Operators
implicit operator FlowActionSalesforce(FlowActionSalesforceCreateLead)
public static implicit operator FlowActionSalesforce(FlowActionSalesforceCreateLead value)
Parameters
Returns
implicit operator FlowActionSalesforce(FlowActionSalesforceGetLead)
public static implicit operator FlowActionSalesforce(FlowActionSalesforceGetLead value)
Parameters
Returns
implicit operator FlowActionSalesforce(FlowActionSalesforceSearchLeads)
public static implicit operator FlowActionSalesforce(FlowActionSalesforceSearchLeads value)
Parameters
Returns
implicit operator FlowActionSalesforce(FlowActionSalesforceUpdateLead)
public static implicit operator FlowActionSalesforce(FlowActionSalesforceUpdateLead value)