Class OathClientResponse

java.lang.Object
markets.alpaca.client.openapi.broker.model.OathClientResponse
All Implemented Interfaces:
Serializable

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

  • Constructor Details

    • OathClientResponse

      public OathClientResponse()
  • Method Details

    • clientId

      public OathClientResponse clientId(@Nullable String clientId)
    • getClientId

      @Nullable public String getClientId()
      OAuth client id
      Returns:
      clientId
    • setClientId

      public void setClientId(@Nullable String clientId)
    • description

      public OathClientResponse description(@Nullable String description)
    • getDescription

      @Nullable public String getDescription()
      Get description
      Returns:
      description
    • setDescription

      public void setDescription(@Nullable String description)
    • liveTradingApproved

      public OathClientResponse liveTradingApproved(@Nullable Boolean liveTradingApproved)
    • getLiveTradingApproved

      @Nullable public Boolean getLiveTradingApproved()
      Get liveTradingApproved
      Returns:
      liveTradingApproved
    • setLiveTradingApproved

      public void setLiveTradingApproved(@Nullable Boolean liveTradingApproved)
    • name

      public OathClientResponse name(@Nullable String name)
    • getName

      @Nullable public String getName()
      Broker name (your name)
      Returns:
      name
    • setName

      public void setName(@Nullable String name)
    • privacyPolicy

      public OathClientResponse privacyPolicy(@Nullable String privacyPolicy)
    • getPrivacyPolicy

      @Nullable public String getPrivacyPolicy()
      URL of Privacy Policy
      Returns:
      privacyPolicy
    • setPrivacyPolicy

      public void setPrivacyPolicy(@Nullable String privacyPolicy)
    • redirectUri

      public OathClientResponse redirectUri(@Nullable List<String> redirectUri)
    • addRedirectUriItem

      public OathClientResponse addRedirectUriItem(String redirectUriItem)
    • getRedirectUri

      @Nullable public List<String> getRedirectUri()
      Get redirectUri
      Returns:
      redirectUri
    • setRedirectUri

      public void setRedirectUri(@Nullable List<String> redirectUri)
    • status

      public OathClientResponse status(@Nullable OathClientResponse.StatusEnum status)
    • getStatus

      @Nullable public OathClientResponse.StatusEnum getStatus()
      ACTIVE or DISABLED
      Returns:
      status
    • setStatus

      public void setStatus(@Nullable OathClientResponse.StatusEnum status)
    • termsOfUse

      public OathClientResponse termsOfUse(@Nullable String termsOfUse)
    • getTermsOfUse

      @Nullable public String getTermsOfUse()
      URL of Terms of Use
      Returns:
      termsOfUse
    • setTermsOfUse

      public void setTermsOfUse(@Nullable String termsOfUse)
    • url

      public OathClientResponse url(@Nullable String url)
    • getUrl

      @Nullable public String getUrl()
      Get url
      Returns:
      url
    • setUrl

      public void setUrl(@Nullable String url)
    • putAdditionalProperty

      public OathClientResponse putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - name of the property
      value - value of the property
      Returns:
      the OathClientResponse instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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 OathClientResponse
    • fromJson

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

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