get_routine_response_model.go raw
1 // This file is auto-generated, don't edit it. Thanks.
2 package client
3
4 import (
5 "github.com/alibabacloud-go/tea/dara"
6 )
7
8 type iGetRoutineResponse interface {
9 dara.Model
10 String() string
11 GoString() string
12 SetHeaders(v map[string]*string) *GetRoutineResponse
13 GetHeaders() map[string]*string
14 SetStatusCode(v int32) *GetRoutineResponse
15 GetStatusCode() *int32
16 SetBody(v *GetRoutineResponseBody) *GetRoutineResponse
17 GetBody() *GetRoutineResponseBody
18 }
19
20 type GetRoutineResponse struct {
21 Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
22 StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
23 Body *GetRoutineResponseBody `json:"body,omitempty" xml:"body,omitempty"`
24 }
25
26 func (s GetRoutineResponse) String() string {
27 return dara.Prettify(s)
28 }
29
30 func (s GetRoutineResponse) GoString() string {
31 return s.String()
32 }
33
34 func (s *GetRoutineResponse) GetHeaders() map[string]*string {
35 return s.Headers
36 }
37
38 func (s *GetRoutineResponse) GetStatusCode() *int32 {
39 return s.StatusCode
40 }
41
42 func (s *GetRoutineResponse) GetBody() *GetRoutineResponseBody {
43 return s.Body
44 }
45
46 func (s *GetRoutineResponse) SetHeaders(v map[string]*string) *GetRoutineResponse {
47 s.Headers = v
48 return s
49 }
50
51 func (s *GetRoutineResponse) SetStatusCode(v int32) *GetRoutineResponse {
52 s.StatusCode = &v
53 return s
54 }
55
56 func (s *GetRoutineResponse) SetBody(v *GetRoutineResponseBody) *GetRoutineResponse {
57 s.Body = v
58 return s
59 }
60
61 func (s *GetRoutineResponse) Validate() error {
62 if s.Body != nil {
63 if err := s.Body.Validate(); err != nil {
64 return err
65 }
66 }
67 return nil
68 }
69