No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 

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