field_content_value_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 iFieldContentValue interface {
9 dara.Model
10 String() string
11 GoString() string
12 SetSortOrder(v int64) *FieldContentValue
13 GetSortOrder() *int64
14 SetFieldList(v []*FieldContentValueFieldList) *FieldContentValue
15 GetFieldList() []*FieldContentValueFieldList
16 }
17
18 type FieldContentValue struct {
19 // The sequence number of the fields.
20 //
21 // example:
22 //
23 // 1
24 SortOrder *int64 `json:"SortOrder,omitempty" xml:"SortOrder,omitempty"`
25 // The fields.
26 FieldList []*FieldContentValueFieldList `json:"FieldList,omitempty" xml:"FieldList,omitempty" type:"Repeated"`
27 }
28
29 func (s FieldContentValue) String() string {
30 return dara.Prettify(s)
31 }
32
33 func (s FieldContentValue) GoString() string {
34 return s.String()
35 }
36
37 func (s *FieldContentValue) GetSortOrder() *int64 {
38 return s.SortOrder
39 }
40
41 func (s *FieldContentValue) GetFieldList() []*FieldContentValueFieldList {
42 return s.FieldList
43 }
44
45 func (s *FieldContentValue) SetSortOrder(v int64) *FieldContentValue {
46 s.SortOrder = &v
47 return s
48 }
49
50 func (s *FieldContentValue) SetFieldList(v []*FieldContentValueFieldList) *FieldContentValue {
51 s.FieldList = v
52 return s
53 }
54
55 func (s *FieldContentValue) Validate() error {
56 if s.FieldList != nil {
57 for _, item := range s.FieldList {
58 if item != nil {
59 if err := item.Validate(); err != nil {
60 return err
61 }
62 }
63 }
64 }
65 return nil
66 }
67
68 type FieldContentValueFieldList struct {
69 // The field name.
70 //
71 // example:
72 //
73 // ClientIp
74 FieldName *string `json:"FieldName,omitempty" xml:"FieldName,omitempty"`
75 // The description of the field in English.
76 //
77 // example:
78 //
79 // IP address of the client.
80 Description *string `json:"Description,omitempty" xml:"Description,omitempty"`
81 // The description of the field in Chinese.
82 DescriptionCn *string `json:"DescriptionCn,omitempty" xml:"DescriptionCn,omitempty"`
83 // The category of the field.
84 //
85 // example:
86 //
87 // Client
88 Category *string `json:"Category,omitempty" xml:"Category,omitempty"`
89 // The data type of the field.
90 //
91 // example:
92 //
93 // String
94 DataType *string `json:"DataType,omitempty" xml:"DataType,omitempty"`
95 // The sequence number of the field.
96 //
97 // example:
98 //
99 // 1
100 SortOrder *int64 `json:"SortOrder,omitempty" xml:"SortOrder,omitempty"`
101 // Indicates whether the field is available by default.
102 //
103 // example:
104 //
105 // true
106 IsDefault *bool `json:"IsDefault,omitempty" xml:"IsDefault,omitempty"`
107 }
108
109 func (s FieldContentValueFieldList) String() string {
110 return dara.Prettify(s)
111 }
112
113 func (s FieldContentValueFieldList) GoString() string {
114 return s.String()
115 }
116
117 func (s *FieldContentValueFieldList) GetFieldName() *string {
118 return s.FieldName
119 }
120
121 func (s *FieldContentValueFieldList) GetDescription() *string {
122 return s.Description
123 }
124
125 func (s *FieldContentValueFieldList) GetDescriptionCn() *string {
126 return s.DescriptionCn
127 }
128
129 func (s *FieldContentValueFieldList) GetCategory() *string {
130 return s.Category
131 }
132
133 func (s *FieldContentValueFieldList) GetDataType() *string {
134 return s.DataType
135 }
136
137 func (s *FieldContentValueFieldList) GetSortOrder() *int64 {
138 return s.SortOrder
139 }
140
141 func (s *FieldContentValueFieldList) GetIsDefault() *bool {
142 return s.IsDefault
143 }
144
145 func (s *FieldContentValueFieldList) SetFieldName(v string) *FieldContentValueFieldList {
146 s.FieldName = &v
147 return s
148 }
149
150 func (s *FieldContentValueFieldList) SetDescription(v string) *FieldContentValueFieldList {
151 s.Description = &v
152 return s
153 }
154
155 func (s *FieldContentValueFieldList) SetDescriptionCn(v string) *FieldContentValueFieldList {
156 s.DescriptionCn = &v
157 return s
158 }
159
160 func (s *FieldContentValueFieldList) SetCategory(v string) *FieldContentValueFieldList {
161 s.Category = &v
162 return s
163 }
164
165 func (s *FieldContentValueFieldList) SetDataType(v string) *FieldContentValueFieldList {
166 s.DataType = &v
167 return s
168 }
169
170 func (s *FieldContentValueFieldList) SetSortOrder(v int64) *FieldContentValueFieldList {
171 s.SortOrder = &v
172 return s
173 }
174
175 func (s *FieldContentValueFieldList) SetIsDefault(v bool) *FieldContentValueFieldList {
176 s.IsDefault = &v
177 return s
178 }
179
180 func (s *FieldContentValueFieldList) Validate() error {
181 return dara.Validate(s)
182 }
183