GetFunctionInstanceResult.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. /*
  2. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #ifndef ALIBABACLOUD_OPENSEARCH_MODEL_GETFUNCTIONINSTANCERESULT_H_
  17. #define ALIBABACLOUD_OPENSEARCH_MODEL_GETFUNCTIONINSTANCERESULT_H_
  18. #include <string>
  19. #include <vector>
  20. #include <utility>
  21. #include <alibabacloud/core/ServiceResult.h>
  22. #include <alibabacloud/opensearch/OpenSearchExport.h>
  23. namespace AlibabaCloud
  24. {
  25. namespace OpenSearch
  26. {
  27. namespace Model
  28. {
  29. class ALIBABACLOUD_OPENSEARCH_EXPORT GetFunctionInstanceResult : public ServiceResult
  30. {
  31. public:
  32. struct Result
  33. {
  34. struct Belongs
  35. {
  36. std::string category;
  37. std::string language;
  38. std::string domain;
  39. };
  40. struct Task
  41. {
  42. std::string dagStatus;
  43. long lastRunTime;
  44. };
  45. struct CreateParametersItem
  46. {
  47. std::string value;
  48. std::string name;
  49. };
  50. struct UsageParametersItem
  51. {
  52. std::string value;
  53. std::string name;
  54. };
  55. std::string status;
  56. long versionId;
  57. Task task;
  58. std::string description;
  59. long createTime;
  60. std::string functionType;
  61. std::vector<CreateParametersItem> createParameters;
  62. Belongs belongs;
  63. std::string cron;
  64. std::string source;
  65. std::string instanceName;
  66. std::string functionName;
  67. std::vector<UsageParametersItem> usageParameters;
  68. std::string modelType;
  69. std::string extendInfo;
  70. };
  71. GetFunctionInstanceResult();
  72. explicit GetFunctionInstanceResult(const std::string &payload);
  73. ~GetFunctionInstanceResult();
  74. std::string getStatus()const;
  75. long getHttpCode()const;
  76. std::string getMessage()const;
  77. std::string getCode()const;
  78. Result getResult()const;
  79. long getLatency()const;
  80. protected:
  81. void parse(const std::string &payload);
  82. private:
  83. std::string status_;
  84. long httpCode_;
  85. std::string message_;
  86. std::string code_;
  87. Result result_;
  88. long latency_;
  89. };
  90. }
  91. }
  92. }
  93. #endif // !ALIBABACLOUD_OPENSEARCH_MODEL_GETFUNCTIONINSTANCERESULT_H_