Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

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