Class ActivityV2DetailNTA

java.lang.Object
markets.alpaca.client.openapi.trading.model.AbstractOpenApiSchema
markets.alpaca.client.openapi.trading.model.ActivityV2DetailNTA
All Implemented Interfaces:
Serializable

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.25.0") public class ActivityV2DetailNTA extends AbstractOpenApiSchema implements Serializable
See Also:
  • Field Details

  • Constructor Details

    • ActivityV2DetailNTA

      public ActivityV2DetailNTA()
    • ActivityV2DetailNTA

      public ActivityV2DetailNTA(Object o)
  • Method Details

    • getSchemas

      public Map<String,Class<?>> getSchemas()
      Description copied from class: AbstractOpenApiSchema
      Get the list of oneOf/anyOf composed schemas allowed to be stored in this object
      Specified by:
      getSchemas in class AbstractOpenApiSchema
      Returns:
      an instance of the actual schema/object
    • setActualInstance

      public void setActualInstance(Object instance)
      Set the instance that matches the oneOf child schema, check the instance parameter is valid against the oneOf child schemas: AcatcActivityV2, AcatsActivityV2, CDIVActivityV2, CGDActivityV2, CSWActivityV2, DIVNRAActivityV2, DIVSPDActivityV2, DIVWHActivityV2, ExchangeOfferActivityV2, FEEActivityV2, FOPTActivityV2, FixedIncomeInterestActivityV2, FixedIncomeRedemptionActivityV2, ForwardSplitActivityV2, JNLCActivityV2, JNLSActivityV2, MAActivityV2, MEMActivityV2, NCActivityV2, OCTActivityV2, OPASNActivityV2, OPCSHActivityV2, OPEXCActivityV2, OPEXPActivityV2, OPTRDActivityV2, OpcaCDIVActivityV2, OpcaFSPLITActivityV2, OpcaMAActivityV2, OpcaNCActivityV2, OpcaRSPLITActivityV2, OpcaSDIVActivityV2, OpcaSPINActivityV2, OpcaUSPLITActivityV2, REOActivityV2, ReverseSplitActivityV2, RightsDistributionActivityV2, RightsSubscriptionElectionActivityV2, SDIVActivityV2, SpinoffActivityV2, TenderOfferActivityV2, UnitSplitActivityV2, WRMActivityV2, WarrantExerciseElectionActivityV2 It could be an instance of the 'oneOf' schemas.
      Overrides:
      setActualInstance in class AbstractOpenApiSchema
      Parameters:
      instance - the actual instance of the schema/object
    • getActualInstance

      public Object getActualInstance()
      Get the actual instance, which can be the following: AcatcActivityV2, AcatsActivityV2, CDIVActivityV2, CGDActivityV2, CSWActivityV2, DIVNRAActivityV2, DIVSPDActivityV2, DIVWHActivityV2, ExchangeOfferActivityV2, FEEActivityV2, FOPTActivityV2, FixedIncomeInterestActivityV2, FixedIncomeRedemptionActivityV2, ForwardSplitActivityV2, JNLCActivityV2, JNLSActivityV2, MAActivityV2, MEMActivityV2, NCActivityV2, OCTActivityV2, OPASNActivityV2, OPCSHActivityV2, OPEXCActivityV2, OPEXPActivityV2, OPTRDActivityV2, OpcaCDIVActivityV2, OpcaFSPLITActivityV2, OpcaMAActivityV2, OpcaNCActivityV2, OpcaRSPLITActivityV2, OpcaSDIVActivityV2, OpcaSPINActivityV2, OpcaUSPLITActivityV2, REOActivityV2, ReverseSplitActivityV2, RightsDistributionActivityV2, RightsSubscriptionElectionActivityV2, SDIVActivityV2, SpinoffActivityV2, TenderOfferActivityV2, UnitSplitActivityV2, WRMActivityV2, WarrantExerciseElectionActivityV2
      Overrides:
      getActualInstance in class AbstractOpenApiSchema
      Returns:
      The actual instance (AcatcActivityV2, AcatsActivityV2, CDIVActivityV2, CGDActivityV2, CSWActivityV2, DIVNRAActivityV2, DIVSPDActivityV2, DIVWHActivityV2, ExchangeOfferActivityV2, FEEActivityV2, FOPTActivityV2, FixedIncomeInterestActivityV2, FixedIncomeRedemptionActivityV2, ForwardSplitActivityV2, JNLCActivityV2, JNLSActivityV2, MAActivityV2, MEMActivityV2, NCActivityV2, OCTActivityV2, OPASNActivityV2, OPCSHActivityV2, OPEXCActivityV2, OPEXPActivityV2, OPTRDActivityV2, OpcaCDIVActivityV2, OpcaFSPLITActivityV2, OpcaMAActivityV2, OpcaNCActivityV2, OpcaRSPLITActivityV2, OpcaSDIVActivityV2, OpcaSPINActivityV2, OpcaUSPLITActivityV2, REOActivityV2, ReverseSplitActivityV2, RightsDistributionActivityV2, RightsSubscriptionElectionActivityV2, SDIVActivityV2, SpinoffActivityV2, TenderOfferActivityV2, UnitSplitActivityV2, WRMActivityV2, WarrantExerciseElectionActivityV2)
    • getDIVSPDActivityV2

      public DIVSPDActivityV2 getDIVSPDActivityV2() throws ClassCastException
      Get the actual instance of `DIVSPDActivityV2`. If the actual instance is not `DIVSPDActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `DIVSPDActivityV2`
      Throws:
      ClassCastException - if the instance is not `DIVSPDActivityV2`
    • getCDIVActivityV2

      public CDIVActivityV2 getCDIVActivityV2() throws ClassCastException
      Get the actual instance of `CDIVActivityV2`. If the actual instance is not `CDIVActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `CDIVActivityV2`
      Throws:
      ClassCastException - if the instance is not `CDIVActivityV2`
    • getSDIVActivityV2

      public SDIVActivityV2 getSDIVActivityV2() throws ClassCastException
      Get the actual instance of `SDIVActivityV2`. If the actual instance is not `SDIVActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `SDIVActivityV2`
      Throws:
      ClassCastException - if the instance is not `SDIVActivityV2`
    • getCGDActivityV2

      public CGDActivityV2 getCGDActivityV2() throws ClassCastException
      Get the actual instance of `CGDActivityV2`. If the actual instance is not `CGDActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `CGDActivityV2`
      Throws:
      ClassCastException - if the instance is not `CGDActivityV2`
    • getForwardSplitActivityV2

      public ForwardSplitActivityV2 getForwardSplitActivityV2() throws ClassCastException
      Get the actual instance of `ForwardSplitActivityV2`. If the actual instance is not `ForwardSplitActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `ForwardSplitActivityV2`
      Throws:
      ClassCastException - if the instance is not `ForwardSplitActivityV2`
    • getReverseSplitActivityV2

      public ReverseSplitActivityV2 getReverseSplitActivityV2() throws ClassCastException
      Get the actual instance of `ReverseSplitActivityV2`. If the actual instance is not `ReverseSplitActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `ReverseSplitActivityV2`
      Throws:
      ClassCastException - if the instance is not `ReverseSplitActivityV2`
    • getUnitSplitActivityV2

      public UnitSplitActivityV2 getUnitSplitActivityV2() throws ClassCastException
      Get the actual instance of `UnitSplitActivityV2`. If the actual instance is not `UnitSplitActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `UnitSplitActivityV2`
      Throws:
      ClassCastException - if the instance is not `UnitSplitActivityV2`
    • getSpinoffActivityV2

      public SpinoffActivityV2 getSpinoffActivityV2() throws ClassCastException
      Get the actual instance of `SpinoffActivityV2`. If the actual instance is not `SpinoffActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `SpinoffActivityV2`
      Throws:
      ClassCastException - if the instance is not `SpinoffActivityV2`
    • getMAActivityV2

      public MAActivityV2 getMAActivityV2() throws ClassCastException
      Get the actual instance of `MAActivityV2`. If the actual instance is not `MAActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `MAActivityV2`
      Throws:
      ClassCastException - if the instance is not `MAActivityV2`
    • getNCActivityV2

      public NCActivityV2 getNCActivityV2() throws ClassCastException
      Get the actual instance of `NCActivityV2`. If the actual instance is not `NCActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `NCActivityV2`
      Throws:
      ClassCastException - if the instance is not `NCActivityV2`
    • getFixedIncomeRedemptionActivityV2

      public FixedIncomeRedemptionActivityV2 getFixedIncomeRedemptionActivityV2() throws ClassCastException
      Get the actual instance of `FixedIncomeRedemptionActivityV2`. If the actual instance is not `FixedIncomeRedemptionActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `FixedIncomeRedemptionActivityV2`
      Throws:
      ClassCastException - if the instance is not `FixedIncomeRedemptionActivityV2`
    • getFixedIncomeInterestActivityV2

      public FixedIncomeInterestActivityV2 getFixedIncomeInterestActivityV2() throws ClassCastException
      Get the actual instance of `FixedIncomeInterestActivityV2`. If the actual instance is not `FixedIncomeInterestActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `FixedIncomeInterestActivityV2`
      Throws:
      ClassCastException - if the instance is not `FixedIncomeInterestActivityV2`
    • getREOActivityV2

      public REOActivityV2 getREOActivityV2() throws ClassCastException
      Get the actual instance of `REOActivityV2`. If the actual instance is not `REOActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `REOActivityV2`
      Throws:
      ClassCastException - if the instance is not `REOActivityV2`
    • getRightsDistributionActivityV2

      public RightsDistributionActivityV2 getRightsDistributionActivityV2() throws ClassCastException
      Get the actual instance of `RightsDistributionActivityV2`. If the actual instance is not `RightsDistributionActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `RightsDistributionActivityV2`
      Throws:
      ClassCastException - if the instance is not `RightsDistributionActivityV2`
    • getRightsSubscriptionElectionActivityV2

      public RightsSubscriptionElectionActivityV2 getRightsSubscriptionElectionActivityV2() throws ClassCastException
      Get the actual instance of `RightsSubscriptionElectionActivityV2`. If the actual instance is not `RightsSubscriptionElectionActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `RightsSubscriptionElectionActivityV2`
      Throws:
      ClassCastException - if the instance is not `RightsSubscriptionElectionActivityV2`
    • getTenderOfferActivityV2

      public TenderOfferActivityV2 getTenderOfferActivityV2() throws ClassCastException
      Get the actual instance of `TenderOfferActivityV2`. If the actual instance is not `TenderOfferActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `TenderOfferActivityV2`
      Throws:
      ClassCastException - if the instance is not `TenderOfferActivityV2`
    • getExchangeOfferActivityV2

      public ExchangeOfferActivityV2 getExchangeOfferActivityV2() throws ClassCastException
      Get the actual instance of `ExchangeOfferActivityV2`. If the actual instance is not `ExchangeOfferActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `ExchangeOfferActivityV2`
      Throws:
      ClassCastException - if the instance is not `ExchangeOfferActivityV2`
    • getWarrantExerciseElectionActivityV2

      public WarrantExerciseElectionActivityV2 getWarrantExerciseElectionActivityV2() throws ClassCastException
      Get the actual instance of `WarrantExerciseElectionActivityV2`. If the actual instance is not `WarrantExerciseElectionActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `WarrantExerciseElectionActivityV2`
      Throws:
      ClassCastException - if the instance is not `WarrantExerciseElectionActivityV2`
    • getWRMActivityV2

      public WRMActivityV2 getWRMActivityV2() throws ClassCastException
      Get the actual instance of `WRMActivityV2`. If the actual instance is not `WRMActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `WRMActivityV2`
      Throws:
      ClassCastException - if the instance is not `WRMActivityV2`
    • getOpcaCDIVActivityV2

      public OpcaCDIVActivityV2 getOpcaCDIVActivityV2() throws ClassCastException
      Get the actual instance of `OpcaCDIVActivityV2`. If the actual instance is not `OpcaCDIVActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `OpcaCDIVActivityV2`
      Throws:
      ClassCastException - if the instance is not `OpcaCDIVActivityV2`
    • getOpcaSDIVActivityV2

      public OpcaSDIVActivityV2 getOpcaSDIVActivityV2() throws ClassCastException
      Get the actual instance of `OpcaSDIVActivityV2`. If the actual instance is not `OpcaSDIVActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `OpcaSDIVActivityV2`
      Throws:
      ClassCastException - if the instance is not `OpcaSDIVActivityV2`
    • getOpcaMAActivityV2

      public OpcaMAActivityV2 getOpcaMAActivityV2() throws ClassCastException
      Get the actual instance of `OpcaMAActivityV2`. If the actual instance is not `OpcaMAActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `OpcaMAActivityV2`
      Throws:
      ClassCastException - if the instance is not `OpcaMAActivityV2`
    • getOpcaNCActivityV2

      public OpcaNCActivityV2 getOpcaNCActivityV2() throws ClassCastException
      Get the actual instance of `OpcaNCActivityV2`. If the actual instance is not `OpcaNCActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `OpcaNCActivityV2`
      Throws:
      ClassCastException - if the instance is not `OpcaNCActivityV2`
    • getOpcaSPINActivityV2

      public OpcaSPINActivityV2 getOpcaSPINActivityV2() throws ClassCastException
      Get the actual instance of `OpcaSPINActivityV2`. If the actual instance is not `OpcaSPINActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `OpcaSPINActivityV2`
      Throws:
      ClassCastException - if the instance is not `OpcaSPINActivityV2`
    • getOpcaFSPLITActivityV2

      public OpcaFSPLITActivityV2 getOpcaFSPLITActivityV2() throws ClassCastException
      Get the actual instance of `OpcaFSPLITActivityV2`. If the actual instance is not `OpcaFSPLITActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `OpcaFSPLITActivityV2`
      Throws:
      ClassCastException - if the instance is not `OpcaFSPLITActivityV2`
    • getOpcaUSPLITActivityV2

      public OpcaUSPLITActivityV2 getOpcaUSPLITActivityV2() throws ClassCastException
      Get the actual instance of `OpcaUSPLITActivityV2`. If the actual instance is not `OpcaUSPLITActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `OpcaUSPLITActivityV2`
      Throws:
      ClassCastException - if the instance is not `OpcaUSPLITActivityV2`
    • getOpcaRSPLITActivityV2

      public OpcaRSPLITActivityV2 getOpcaRSPLITActivityV2() throws ClassCastException
      Get the actual instance of `OpcaRSPLITActivityV2`. If the actual instance is not `OpcaRSPLITActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `OpcaRSPLITActivityV2`
      Throws:
      ClassCastException - if the instance is not `OpcaRSPLITActivityV2`
    • getOPASNActivityV2

      public OPASNActivityV2 getOPASNActivityV2() throws ClassCastException
      Get the actual instance of `OPASNActivityV2`. If the actual instance is not `OPASNActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `OPASNActivityV2`
      Throws:
      ClassCastException - if the instance is not `OPASNActivityV2`
    • getOPEXCActivityV2

      public OPEXCActivityV2 getOPEXCActivityV2() throws ClassCastException
      Get the actual instance of `OPEXCActivityV2`. If the actual instance is not `OPEXCActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `OPEXCActivityV2`
      Throws:
      ClassCastException - if the instance is not `OPEXCActivityV2`
    • getOPEXPActivityV2

      public OPEXPActivityV2 getOPEXPActivityV2() throws ClassCastException
      Get the actual instance of `OPEXPActivityV2`. If the actual instance is not `OPEXPActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `OPEXPActivityV2`
      Throws:
      ClassCastException - if the instance is not `OPEXPActivityV2`
    • getOPTRDActivityV2

      public OPTRDActivityV2 getOPTRDActivityV2() throws ClassCastException
      Get the actual instance of `OPTRDActivityV2`. If the actual instance is not `OPTRDActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `OPTRDActivityV2`
      Throws:
      ClassCastException - if the instance is not `OPTRDActivityV2`
    • getOPCSHActivityV2

      public OPCSHActivityV2 getOPCSHActivityV2() throws ClassCastException
      Get the actual instance of `OPCSHActivityV2`. If the actual instance is not `OPCSHActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `OPCSHActivityV2`
      Throws:
      ClassCastException - if the instance is not `OPCSHActivityV2`
    • getAcatsActivityV2

      public AcatsActivityV2 getAcatsActivityV2() throws ClassCastException
      Get the actual instance of `AcatsActivityV2`. If the actual instance is not `AcatsActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `AcatsActivityV2`
      Throws:
      ClassCastException - if the instance is not `AcatsActivityV2`
    • getAcatcActivityV2

      public AcatcActivityV2 getAcatcActivityV2() throws ClassCastException
      Get the actual instance of `AcatcActivityV2`. If the actual instance is not `AcatcActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `AcatcActivityV2`
      Throws:
      ClassCastException - if the instance is not `AcatcActivityV2`
    • getFOPTActivityV2

      public FOPTActivityV2 getFOPTActivityV2() throws ClassCastException
      Get the actual instance of `FOPTActivityV2`. If the actual instance is not `FOPTActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `FOPTActivityV2`
      Throws:
      ClassCastException - if the instance is not `FOPTActivityV2`
    • getDIVNRAActivityV2

      public DIVNRAActivityV2 getDIVNRAActivityV2() throws ClassCastException
      Get the actual instance of `DIVNRAActivityV2`. If the actual instance is not `DIVNRAActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `DIVNRAActivityV2`
      Throws:
      ClassCastException - if the instance is not `DIVNRAActivityV2`
    • getDIVWHActivityV2

      public DIVWHActivityV2 getDIVWHActivityV2() throws ClassCastException
      Get the actual instance of `DIVWHActivityV2`. If the actual instance is not `DIVWHActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `DIVWHActivityV2`
      Throws:
      ClassCastException - if the instance is not `DIVWHActivityV2`
    • getJNLSActivityV2

      public JNLSActivityV2 getJNLSActivityV2() throws ClassCastException
      Get the actual instance of `JNLSActivityV2`. If the actual instance is not `JNLSActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `JNLSActivityV2`
      Throws:
      ClassCastException - if the instance is not `JNLSActivityV2`
    • getJNLCActivityV2

      public JNLCActivityV2 getJNLCActivityV2() throws ClassCastException
      Get the actual instance of `JNLCActivityV2`. If the actual instance is not `JNLCActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `JNLCActivityV2`
      Throws:
      ClassCastException - if the instance is not `JNLCActivityV2`
    • getCSWActivityV2

      public CSWActivityV2 getCSWActivityV2() throws ClassCastException
      Get the actual instance of `CSWActivityV2`. If the actual instance is not `CSWActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `CSWActivityV2`
      Throws:
      ClassCastException - if the instance is not `CSWActivityV2`
    • getFEEActivityV2

      public FEEActivityV2 getFEEActivityV2() throws ClassCastException
      Get the actual instance of `FEEActivityV2`. If the actual instance is not `FEEActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `FEEActivityV2`
      Throws:
      ClassCastException - if the instance is not `FEEActivityV2`
    • getMEMActivityV2

      public MEMActivityV2 getMEMActivityV2() throws ClassCastException
      Get the actual instance of `MEMActivityV2`. If the actual instance is not `MEMActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `MEMActivityV2`
      Throws:
      ClassCastException - if the instance is not `MEMActivityV2`
    • getOCTActivityV2

      public OCTActivityV2 getOCTActivityV2() throws ClassCastException
      Get the actual instance of `OCTActivityV2`. If the actual instance is not `OCTActivityV2`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `OCTActivityV2`
      Throws:
      ClassCastException - if the instance is not `OCTActivityV2`
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to ActivityV2DetailNTA
    • fromJson

      public static ActivityV2DetailNTA fromJson(String jsonString) throws IOException
      Create an instance of ActivityV2DetailNTA given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of ActivityV2DetailNTA
      Throws:
      IOException - if the JSON string is invalid with respect to ActivityV2DetailNTA
    • toJson

      public String toJson()
      Convert an instance of ActivityV2DetailNTA to an JSON string
      Returns:
      JSON string