Class CreateFlowsVaultConnectionHubspot
- Namespace
- Auth0.ManagementApi
- Assembly
- Auth0.ManagementApi.dll
[JsonConverter(typeof(CreateFlowsVaultConnectionHubspot.JsonConverter))]
[Serializable]
public class CreateFlowsVaultConnectionHubspot
- Inheritance
-
CreateFlowsVaultConnectionHubspot
- 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
AsCreateFlowsVaultConnectionHubspotApiKey()
Returns the value as a CreateFlowsVaultConnectionHubspotApiKey if Type is 'createFlowsVaultConnectionHubspotApiKey', otherwise throws an exception.
public CreateFlowsVaultConnectionHubspotApiKey AsCreateFlowsVaultConnectionHubspotApiKey()
Returns
Exceptions
- ManagementException
Thrown when Type is not 'createFlowsVaultConnectionHubspotApiKey'.
AsCreateFlowsVaultConnectionHubspotOauthCode()
Returns the value as a CreateFlowsVaultConnectionHubspotOauthCode if Type is 'createFlowsVaultConnectionHubspotOauthCode', otherwise throws an exception.
public CreateFlowsVaultConnectionHubspotOauthCode AsCreateFlowsVaultConnectionHubspotOauthCode()
Returns
Exceptions
- ManagementException
Thrown when Type is not 'createFlowsVaultConnectionHubspotOauthCode'.
AsCreateFlowsVaultConnectionHubspotUninitialized()
Returns the value as a CreateFlowsVaultConnectionHubspotUninitialized if Type is 'createFlowsVaultConnectionHubspotUninitialized', otherwise throws an exception.
public CreateFlowsVaultConnectionHubspotUninitialized AsCreateFlowsVaultConnectionHubspotUninitialized()
Returns
Exceptions
- ManagementException
Thrown when Type is not 'createFlowsVaultConnectionHubspotUninitialized'.
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.
FromCreateFlowsVaultConnectionHubspotApiKey(CreateFlowsVaultConnectionHubspotApiKey)
Factory method to create a union from a Auth0.ManagementApi.CreateFlowsVaultConnectionHubspotApiKey value.
public static CreateFlowsVaultConnectionHubspot FromCreateFlowsVaultConnectionHubspotApiKey(CreateFlowsVaultConnectionHubspotApiKey value)
Parameters
Returns
FromCreateFlowsVaultConnectionHubspotOauthCode(CreateFlowsVaultConnectionHubspotOauthCode)
Factory method to create a union from a Auth0.ManagementApi.CreateFlowsVaultConnectionHubspotOauthCode value.
public static CreateFlowsVaultConnectionHubspot FromCreateFlowsVaultConnectionHubspotOauthCode(CreateFlowsVaultConnectionHubspotOauthCode value)
Parameters
Returns
FromCreateFlowsVaultConnectionHubspotUninitialized(CreateFlowsVaultConnectionHubspotUninitialized)
Factory method to create a union from a Auth0.ManagementApi.CreateFlowsVaultConnectionHubspotUninitialized value.
public static CreateFlowsVaultConnectionHubspot FromCreateFlowsVaultConnectionHubspotUninitialized(CreateFlowsVaultConnectionHubspotUninitialized value)
Parameters
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
IsCreateFlowsVaultConnectionHubspotApiKey()
Returns true if Type is "createFlowsVaultConnectionHubspotApiKey"
public bool IsCreateFlowsVaultConnectionHubspotApiKey()
Returns
IsCreateFlowsVaultConnectionHubspotOauthCode()
Returns true if Type is "createFlowsVaultConnectionHubspotOauthCode"
public bool IsCreateFlowsVaultConnectionHubspotOauthCode()
Returns
IsCreateFlowsVaultConnectionHubspotUninitialized()
Returns true if Type is "createFlowsVaultConnectionHubspotUninitialized"
public bool IsCreateFlowsVaultConnectionHubspotUninitialized()
Returns
Match<T>(Func<CreateFlowsVaultConnectionHubspotApiKey, T>, Func<CreateFlowsVaultConnectionHubspotOauthCode, T>, Func<CreateFlowsVaultConnectionHubspotUninitialized, T>)
public T Match<T>(Func<CreateFlowsVaultConnectionHubspotApiKey, T> onCreateFlowsVaultConnectionHubspotApiKey, Func<CreateFlowsVaultConnectionHubspotOauthCode, T> onCreateFlowsVaultConnectionHubspotOauthCode, Func<CreateFlowsVaultConnectionHubspotUninitialized, T> onCreateFlowsVaultConnectionHubspotUninitialized)
Parameters
onCreateFlowsVaultConnectionHubspotApiKeyFunc<CreateFlowsVaultConnectionHubspotApiKey, T>onCreateFlowsVaultConnectionHubspotOauthCodeFunc<CreateFlowsVaultConnectionHubspotOauthCode, T>onCreateFlowsVaultConnectionHubspotUninitializedFunc<CreateFlowsVaultConnectionHubspotUninitialized, 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.
TryGetCreateFlowsVaultConnectionHubspotApiKey(out CreateFlowsVaultConnectionHubspotApiKey?)
Attempts to cast the value to a CreateFlowsVaultConnectionHubspotApiKey and returns true if successful.
public bool TryGetCreateFlowsVaultConnectionHubspotApiKey(out CreateFlowsVaultConnectionHubspotApiKey? value)
Parameters
Returns
TryGetCreateFlowsVaultConnectionHubspotOauthCode(out CreateFlowsVaultConnectionHubspotOauthCode?)
Attempts to cast the value to a CreateFlowsVaultConnectionHubspotOauthCode and returns true if successful.
public bool TryGetCreateFlowsVaultConnectionHubspotOauthCode(out CreateFlowsVaultConnectionHubspotOauthCode? value)
Parameters
Returns
TryGetCreateFlowsVaultConnectionHubspotUninitialized(out CreateFlowsVaultConnectionHubspotUninitialized?)
Attempts to cast the value to a CreateFlowsVaultConnectionHubspotUninitialized and returns true if successful.
public bool TryGetCreateFlowsVaultConnectionHubspotUninitialized(out CreateFlowsVaultConnectionHubspotUninitialized? value)
Parameters
Returns
Visit(Action<CreateFlowsVaultConnectionHubspotApiKey>, Action<CreateFlowsVaultConnectionHubspotOauthCode>, Action<CreateFlowsVaultConnectionHubspotUninitialized>)
public void Visit(Action<CreateFlowsVaultConnectionHubspotApiKey> onCreateFlowsVaultConnectionHubspotApiKey, Action<CreateFlowsVaultConnectionHubspotOauthCode> onCreateFlowsVaultConnectionHubspotOauthCode, Action<CreateFlowsVaultConnectionHubspotUninitialized> onCreateFlowsVaultConnectionHubspotUninitialized)
Parameters
onCreateFlowsVaultConnectionHubspotApiKeyAction<CreateFlowsVaultConnectionHubspotApiKey>onCreateFlowsVaultConnectionHubspotOauthCodeAction<CreateFlowsVaultConnectionHubspotOauthCode>onCreateFlowsVaultConnectionHubspotUninitializedAction<CreateFlowsVaultConnectionHubspotUninitialized>
Operators
implicit operator CreateFlowsVaultConnectionHubspot(CreateFlowsVaultConnectionHubspotApiKey)
public static implicit operator CreateFlowsVaultConnectionHubspot(CreateFlowsVaultConnectionHubspotApiKey value)
Parameters
Returns
implicit operator CreateFlowsVaultConnectionHubspot(CreateFlowsVaultConnectionHubspotOauthCode)
public static implicit operator CreateFlowsVaultConnectionHubspot(CreateFlowsVaultConnectionHubspotOauthCode value)
Parameters
Returns
implicit operator CreateFlowsVaultConnectionHubspot(CreateFlowsVaultConnectionHubspotUninitialized)
public static implicit operator CreateFlowsVaultConnectionHubspot(CreateFlowsVaultConnectionHubspotUninitialized value)