Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 

103 строки
2.2 KiB

  1. // @Title Golang SDK Client
  2. // @Description This code is auto generated
  3. // @Author Ecloud SDK
  4. package model
  5. import (
  6. "gitlab.ecloud.com/ecloud/ecloudsdkcore/utils"
  7. )
  8. type GetDocumentResponse struct {
  9. // 请求id
  10. RequestId *string `json:"requestId,omitempty"`
  11. // 异常消息
  12. ErrorMessage *string `json:"errorMessage,omitempty"`
  13. // 异常码
  14. ErrorCode *string `json:"errorCode,omitempty"`
  15. // 状态是否正常,OK代表返回正常,ERROR代表返回错误
  16. State *string `json:"state,omitempty"`
  17. Body *GetDocumentResponseBody `json:"body,omitempty"`
  18. }
  19. func (s GetDocumentResponse) String() string {
  20. return utils.Beautify(s)
  21. }
  22. func (s GetDocumentResponse) GoString() string {
  23. return s.String()
  24. }
  25. func (s GetDocumentResponse) ToJsonString() string {
  26. return utils.ToJsonString(s)
  27. }
  28. func (s *GetDocumentResponse) SetRequestId(v string) *GetDocumentResponse {
  29. s.RequestId = &v
  30. return s
  31. }
  32. func (s *GetDocumentResponse) SetErrorMessage(v string) *GetDocumentResponse {
  33. s.ErrorMessage = &v
  34. return s
  35. }
  36. func (s *GetDocumentResponse) SetErrorCode(v string) *GetDocumentResponse {
  37. s.ErrorCode = &v
  38. return s
  39. }
  40. func (s *GetDocumentResponse) SetState(v string) *GetDocumentResponse {
  41. s.State = &v
  42. return s
  43. }
  44. func (s *GetDocumentResponse) SetBody(v *GetDocumentResponseBody) *GetDocumentResponse {
  45. s.Body = v
  46. return s
  47. }
  48. type GetDocumentResponseBuilder struct {
  49. s *GetDocumentResponse
  50. }
  51. func NewGetDocumentResponseBuilder() *GetDocumentResponseBuilder {
  52. s := &GetDocumentResponse{}
  53. b := &GetDocumentResponseBuilder{s: s}
  54. return b
  55. }
  56. func (b *GetDocumentResponseBuilder) RequestId(v string) *GetDocumentResponseBuilder {
  57. b.s.RequestId = &v
  58. return b
  59. }
  60. func (b *GetDocumentResponseBuilder) ErrorMessage(v string) *GetDocumentResponseBuilder {
  61. b.s.ErrorMessage = &v
  62. return b
  63. }
  64. func (b *GetDocumentResponseBuilder) ErrorCode(v string) *GetDocumentResponseBuilder {
  65. b.s.ErrorCode = &v
  66. return b
  67. }
  68. func (b *GetDocumentResponseBuilder) State(v string) *GetDocumentResponseBuilder {
  69. b.s.State = &v
  70. return b
  71. }
  72. func (b *GetDocumentResponseBuilder) Body(v *GetDocumentResponseBody) *GetDocumentResponseBuilder {
  73. b.s.Body = v
  74. return b
  75. }
  76. func (b *GetDocumentResponseBuilder) Build() *GetDocumentResponse {
  77. return b.s
  78. }