update_page_request_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 iUpdatePageRequest interface {
9 dara.Model
10 String() string
11 GoString() string
12 SetContent(v string) *UpdatePageRequest
13 GetContent() *string
14 SetContentType(v string) *UpdatePageRequest
15 GetContentType() *string
16 SetDescription(v string) *UpdatePageRequest
17 GetDescription() *string
18 SetId(v int64) *UpdatePageRequest
19 GetId() *int64
20 SetName(v string) *UpdatePageRequest
21 GetName() *string
22 }
23
24 type UpdatePageRequest struct {
25 // The Base64-encoded content of the error page. The content type is specified by the Content-Type field.
26 //
27 // This parameter is required.
28 //
29 // example:
30 //
31 // PGh0bWw+aGVsbG8gcGFnZTwvaHRtbD4=
32 Content *string `json:"Content,omitempty" xml:"Content,omitempty"`
33 // The Content-Type field in the HTTP header. Valid values:
34 //
35 // - text/html
36 //
37 // - application/json
38 //
39 // This parameter is required.
40 //
41 // example:
42 //
43 // text/html
44 ContentType *string `json:"ContentType,omitempty" xml:"ContentType,omitempty"`
45 // The description of the custom error page.
46 //
47 // This parameter is required.
48 //
49 // example:
50 //
51 // a custom deny page
52 Description *string `json:"Description,omitempty" xml:"Description,omitempty"`
53 // The ID of the custom error page, which can be obtained by calling the [ListPages](https://help.aliyun.com/document_detail/2850223.html) operation.
54 //
55 // This parameter is required.
56 //
57 // example:
58 //
59 // 50000001
60 Id *int64 `json:"Id,omitempty" xml:"Id,omitempty"`
61 // The name of the custom error page.
62 //
63 // This parameter is required.
64 //
65 // example:
66 //
67 // example
68 Name *string `json:"Name,omitempty" xml:"Name,omitempty"`
69 }
70
71 func (s UpdatePageRequest) String() string {
72 return dara.Prettify(s)
73 }
74
75 func (s UpdatePageRequest) GoString() string {
76 return s.String()
77 }
78
79 func (s *UpdatePageRequest) GetContent() *string {
80 return s.Content
81 }
82
83 func (s *UpdatePageRequest) GetContentType() *string {
84 return s.ContentType
85 }
86
87 func (s *UpdatePageRequest) GetDescription() *string {
88 return s.Description
89 }
90
91 func (s *UpdatePageRequest) GetId() *int64 {
92 return s.Id
93 }
94
95 func (s *UpdatePageRequest) GetName() *string {
96 return s.Name
97 }
98
99 func (s *UpdatePageRequest) SetContent(v string) *UpdatePageRequest {
100 s.Content = &v
101 return s
102 }
103
104 func (s *UpdatePageRequest) SetContentType(v string) *UpdatePageRequest {
105 s.ContentType = &v
106 return s
107 }
108
109 func (s *UpdatePageRequest) SetDescription(v string) *UpdatePageRequest {
110 s.Description = &v
111 return s
112 }
113
114 func (s *UpdatePageRequest) SetId(v int64) *UpdatePageRequest {
115 s.Id = &v
116 return s
117 }
118
119 func (s *UpdatePageRequest) SetName(v string) *UpdatePageRequest {
120 s.Name = &v
121 return s
122 }
123
124 func (s *UpdatePageRequest) Validate() error {
125 return dara.Validate(s)
126 }
127