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

103 строки
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 EnableSegmentResponse 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. // 返回体,true 表示执行成功,false表示执行失败,失败原因可以参考errorMessage或者联系客服人员
  18. Body *bool `json:"body,omitempty"`
  19. }
  20. func (s EnableSegmentResponse) String() string {
  21. return utils.Beautify(s)
  22. }
  23. func (s EnableSegmentResponse) GoString() string {
  24. return s.String()
  25. }
  26. func (s EnableSegmentResponse) ToJsonString() string {
  27. return utils.ToJsonString(s)
  28. }
  29. func (s *EnableSegmentResponse) SetRequestId(v string) *EnableSegmentResponse {
  30. s.RequestId = &v
  31. return s
  32. }
  33. func (s *EnableSegmentResponse) SetErrorMessage(v string) *EnableSegmentResponse {
  34. s.ErrorMessage = &v
  35. return s
  36. }
  37. func (s *EnableSegmentResponse) SetErrorCode(v string) *EnableSegmentResponse {
  38. s.ErrorCode = &v
  39. return s
  40. }
  41. func (s *EnableSegmentResponse) SetState(v string) *EnableSegmentResponse {
  42. s.State = &v
  43. return s
  44. }
  45. func (s *EnableSegmentResponse) SetBody(v bool) *EnableSegmentResponse {
  46. s.Body = &v
  47. return s
  48. }
  49. type EnableSegmentResponseBuilder struct {
  50. s *EnableSegmentResponse
  51. }
  52. func NewEnableSegmentResponseBuilder() *EnableSegmentResponseBuilder {
  53. s := &EnableSegmentResponse{}
  54. b := &EnableSegmentResponseBuilder{s: s}
  55. return b
  56. }
  57. func (b *EnableSegmentResponseBuilder) RequestId(v string) *EnableSegmentResponseBuilder {
  58. b.s.RequestId = &v
  59. return b
  60. }
  61. func (b *EnableSegmentResponseBuilder) ErrorMessage(v string) *EnableSegmentResponseBuilder {
  62. b.s.ErrorMessage = &v
  63. return b
  64. }
  65. func (b *EnableSegmentResponseBuilder) ErrorCode(v string) *EnableSegmentResponseBuilder {
  66. b.s.ErrorCode = &v
  67. return b
  68. }
  69. func (b *EnableSegmentResponseBuilder) State(v string) *EnableSegmentResponseBuilder {
  70. b.s.State = &v
  71. return b
  72. }
  73. func (b *EnableSegmentResponseBuilder) Body(v bool) *EnableSegmentResponseBuilder {
  74. b.s.Body = &v
  75. return b
  76. }
  77. func (b *EnableSegmentResponseBuilder) Build() *EnableSegmentResponse {
  78. return b.s
  79. }