throttling_error.go raw
1 // This file is auto-generated, don't edit it. Thanks.
2 package client
3
4 import (
5 "fmt"
6
7 "github.com/alibabacloud-go/tea/dara"
8 )
9
10 type iThrottlingError interface {
11 Error() string
12 GetStatusCode() *int
13 GetCode() *string
14 GetMessage() *string
15 GetDescription() *string
16 GetRequestId() *string
17 GetData() map[string]interface{}
18 GetAccessDeniedDetail() map[string]interface{}
19 GetName() *string
20 GetStack() *string
21 GetRetryAfter() *int64
22 }
23
24 type ThrottlingError struct {
25 StatusCode *int ``
26 Code *string ``
27 Message *string ``
28 Description *string ``
29 RequestId *string ``
30 Data map[string]interface{} ``
31 AccessDeniedDetail map[string]interface{} ``
32 Name *string ``
33 Stack *string ``
34 RetryAfter *int64 ``
35 }
36
37 func (err ThrottlingError) Error() string {
38 if err.Message == nil {
39 str := fmt.Sprintf("ThrottlingError:\n Name: %s\n Code: %s\n",
40 dara.StringValue(err.Name), dara.StringValue(err.Code))
41 err.Message = dara.String(str)
42 }
43 return dara.StringValue(err.Message)
44 }
45
46 func (s *ThrottlingError) GetStatusCode() *int {
47 return s.StatusCode
48 }
49
50 func (s *ThrottlingError) GetCode() *string {
51 return s.Code
52 }
53
54 func (s *ThrottlingError) GetMessage() *string {
55 return s.Message
56 }
57
58 func (s *ThrottlingError) GetDescription() *string {
59 return s.Description
60 }
61
62 func (s *ThrottlingError) GetRequestId() *string {
63 return s.RequestId
64 }
65
66 func (s *ThrottlingError) GetData() map[string]interface{} {
67 return s.Data
68 }
69
70 func (s *ThrottlingError) GetAccessDeniedDetail() map[string]interface{} {
71 return s.AccessDeniedDetail
72 }
73
74 func (s *ThrottlingError) GetName() *string {
75 return s.Name
76 }
77
78 func (s *ThrottlingError) GetStack() *string {
79 return s.Stack
80 }
81
82 func (s *ThrottlingError) GetRetryAfter() *int64 {
83 return s.RetryAfter
84 }
85