You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

103 lines
2.3 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 DisableDocumentResponse 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. // 返回体
  18. Body *bool `json:"body,omitempty"`
  19. }
  20. func (s DisableDocumentResponse) String() string {
  21. return utils.Beautify(s)
  22. }
  23. func (s DisableDocumentResponse) GoString() string {
  24. return s.String()
  25. }
  26. func (s DisableDocumentResponse) ToJsonString() string {
  27. return utils.ToJsonString(s)
  28. }
  29. func (s *DisableDocumentResponse) SetRequestId(v string) *DisableDocumentResponse {
  30. s.RequestId = &v
  31. return s
  32. }
  33. func (s *DisableDocumentResponse) SetErrorMessage(v string) *DisableDocumentResponse {
  34. s.ErrorMessage = &v
  35. return s
  36. }
  37. func (s *DisableDocumentResponse) SetErrorCode(v string) *DisableDocumentResponse {
  38. s.ErrorCode = &v
  39. return s
  40. }
  41. func (s *DisableDocumentResponse) SetState(v string) *DisableDocumentResponse {
  42. s.State = &v
  43. return s
  44. }
  45. func (s *DisableDocumentResponse) SetBody(v bool) *DisableDocumentResponse {
  46. s.Body = &v
  47. return s
  48. }
  49. type DisableDocumentResponseBuilder struct {
  50. s *DisableDocumentResponse
  51. }
  52. func NewDisableDocumentResponseBuilder() *DisableDocumentResponseBuilder {
  53. s := &DisableDocumentResponse{}
  54. b := &DisableDocumentResponseBuilder{s: s}
  55. return b
  56. }
  57. func (b *DisableDocumentResponseBuilder) RequestId(v string) *DisableDocumentResponseBuilder {
  58. b.s.RequestId = &v
  59. return b
  60. }
  61. func (b *DisableDocumentResponseBuilder) ErrorMessage(v string) *DisableDocumentResponseBuilder {
  62. b.s.ErrorMessage = &v
  63. return b
  64. }
  65. func (b *DisableDocumentResponseBuilder) ErrorCode(v string) *DisableDocumentResponseBuilder {
  66. b.s.ErrorCode = &v
  67. return b
  68. }
  69. func (b *DisableDocumentResponseBuilder) State(v string) *DisableDocumentResponseBuilder {
  70. b.s.State = &v
  71. return b
  72. }
  73. func (b *DisableDocumentResponseBuilder) Body(v bool) *DisableDocumentResponseBuilder {
  74. b.s.Body = &v
  75. return b
  76. }
  77. func (b *DisableDocumentResponseBuilder) Build() *DisableDocumentResponse {
  78. return b.s
  79. }