Class Request

java.lang.Object
cn.ucloud.common.request.Request

public class Request extends Object
Request is the base-class of all request object
  • Constructor Details

    • Request

      public Request()
  • Method Details

    • getPublicKey

      public String getPublicKey()
    • setPublicKey

      public void setPublicKey(String publicKey)
    • getAction

      public String getAction()
    • setAction

      public void setAction(String action)
    • getSignature

      public String getSignature()
    • setSignature

      public void setSignature(String signature)
    • getRegion

      public String getRegion()
    • setRegion

      public void setRegion(String region)
    • getProjectId

      public String getProjectId()
    • setProjectId

      public void setProjectId(String projectId)
    • encode

      public Map<String,Object> encode() throws UCloudException
      Encode will encode the request object to a map
      Returns:
      map representation of request
      Throws:
      UCloudException
    • loadMaxRetries

      public Integer loadMaxRetries()
    • withMaxRetries

      public void withMaxRetries(Integer maxRetries)
    • loadTimeout

      public Integer loadTimeout()
    • withTimeout

      public void withTimeout(Integer timeout)