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.
 
 
 

67 lines
1.4 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 UpdateSegmentRequest struct {
  9. UpdateSegmentBody *UpdateSegmentBody `json:"updateSegmentBody,omitempty"`
  10. UpdateSegmentPath *UpdateSegmentPath `json:"updateSegmentPath,omitempty"`
  11. }
  12. func (s UpdateSegmentRequest) String() string {
  13. return utils.Beautify(s)
  14. }
  15. func (s UpdateSegmentRequest) GoString() string {
  16. return s.String()
  17. }
  18. func (s UpdateSegmentRequest) ToJsonString() string {
  19. return utils.ToJsonString(s)
  20. }
  21. func (s *UpdateSegmentRequest) SetUpdateSegmentBody(v *UpdateSegmentBody) *UpdateSegmentRequest {
  22. s.UpdateSegmentBody = v
  23. return s
  24. }
  25. func (s *UpdateSegmentRequest) SetUpdateSegmentPath(v *UpdateSegmentPath) *UpdateSegmentRequest {
  26. s.UpdateSegmentPath = v
  27. return s
  28. }
  29. type UpdateSegmentRequestBuilder struct {
  30. s *UpdateSegmentRequest
  31. }
  32. func NewUpdateSegmentRequestBuilder() *UpdateSegmentRequestBuilder {
  33. s := &UpdateSegmentRequest{}
  34. b := &UpdateSegmentRequestBuilder{s: s}
  35. return b
  36. }
  37. func (b *UpdateSegmentRequestBuilder) UpdateSegmentBody(v *UpdateSegmentBody) *UpdateSegmentRequestBuilder {
  38. b.s.UpdateSegmentBody = v
  39. return b
  40. }
  41. func (b *UpdateSegmentRequestBuilder) UpdateSegmentPath(v *UpdateSegmentPath) *UpdateSegmentRequestBuilder {
  42. b.s.UpdateSegmentPath = v
  43. return b
  44. }
  45. func (b *UpdateSegmentRequestBuilder) Build() *UpdateSegmentRequest {
  46. return b.s
  47. }