wangmengmeng
2024-12-24 24432a361d5c6bd6f3d8c008693e9f1155d62517
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
package com.dji.sdk.cloudapi.wayline;
 
import com.dji.sdk.cloudapi.device.DeviceEnum;
import com.dji.sdk.common.BaseModel;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.media.Schema;
 
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.util.List;
 
/**
 * @author sean
 * @version 0.3
 * @date 2021/12/22
 */
@Schema(description = "The data of the wayline file.")
public class GetWaylineListResponse extends BaseModel {
 
    /**
     * wayline file name
     */
    @NotNull
    @Schema(description = "wayline file name", example = "waylineFile")
    @Pattern(regexp = "^[^<>:\"/|?*._\\\\]+$")
    private String name;
 
    /**
     * wayline file id
     */
    @NotNull
    @Pattern(regexp = "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$")
    @Schema(description = "wayline file id", format = "uuid")
    private String id;
 
    /**
     * drone device product enum
     */
//    @NotNull
    @JsonProperty("drone_model_key")
    @Schema(description = "drone device product enum", example = "0-67-0")
    private DeviceEnum droneModelKey;
 
    private String sign;
 
    /**
     * payload device product enum
     */
//    @NotNull
    @Size(min = 1)
    @JsonProperty("payload_model_keys")
    @Schema(description = "payload device product enum", example = "[\"1-53-0\"]")
    private List<DeviceEnum> payloadModelKeys;
 
    /**
     * Is the wayline file favorited?
     */
//    @NotNull
    @Schema(description = "Is the wayline file favorited?")
    private Boolean favorited;
 
    /**
     * wayline template collection
     */
//    @NotNull
    @Size(min = 1)
    @Schema(description = "wayline template collection", example = "[0]")
    @JsonProperty("template_types")
    private List<WaylineTypeEnum> templateTypes;
 
    @NotNull
    @Schema(description = "The key of the object in the bucket", example = "wayline/waylineFile.kmz")
    @JsonProperty("object_key")
    private String objectKey;
 
    /**
     * uploader
     */
    @NotNull
    @JsonProperty("user_name")
    @Schema(description = "uploader's username", example = "admin")
    private String username;
 
    /**
     * update time (millisecond)
     */
    @NotNull
    @Min(123456789012L)
    @Schema(description = "update time (millisecond). The field named `update time` must exist in the table.", example = "123456789012")
    @JsonProperty("update_time")
    private Long updateTime;
 
    /**
     * create time (millisecond)
     */
    @NotNull
    @Min(123456789012L)
    @Schema(description = "create time (millisecond). The field named `create time` must exist in the table.", example = "123456789012")
    @JsonProperty("create_time")
    private Long createTime;
 
    @JsonProperty("action_type")
    @Parameter(name = "action_type", description = "wayline template type collection", example = "1")
    private ActionTypeEnum actionType;
 
    public GetWaylineListResponse() {
    }
 
    @Override
    public String toString() {
        return "GetWaylineListResponse{" +
                "name='" + name + '\'' +
                ", id='" + id + '\'' +
                ", droneModelKey=" + droneModelKey +
                ", sign='" + sign + '\'' +
                ", payloadModelKeys=" + payloadModelKeys +
                ", favorited=" + favorited +
                ", templateTypes=" + templateTypes +
                ", objectKey='" + objectKey + '\'' +
                ", username='" + username + '\'' +
                ", updateTime=" + updateTime +
                ", createTime=" + createTime +
                ", actionType=" + actionType +
                '}';
    }
 
    public String getName() {
        return name;
    }
 
    public GetWaylineListResponse setName(String name) {
        this.name = name;
        return this;
    }
 
    public String getId() {
        return id;
    }
 
    public GetWaylineListResponse setId(String id) {
        this.id = id;
        return this;
    }
 
    public DeviceEnum getDroneModelKey() {
        return droneModelKey;
    }
 
    public GetWaylineListResponse setDroneModelKey(DeviceEnum droneModelKey) {
        this.droneModelKey = droneModelKey;
        return this;
    }
 
    public String getSign() {
        return sign;
    }
 
    public GetWaylineListResponse setSign(String sign) {
        this.sign = sign;
        return this;
    }
 
    public List<DeviceEnum> getPayloadModelKeys() {
        return payloadModelKeys;
    }
 
    public GetWaylineListResponse setPayloadModelKeys(List<DeviceEnum> payloadModelKeys) {
        this.payloadModelKeys = payloadModelKeys;
        return this;
    }
 
    public Boolean getFavorited() {
        return favorited;
    }
 
    public GetWaylineListResponse setFavorited(Boolean favorited) {
        this.favorited = favorited;
        return this;
    }
 
    public List<WaylineTypeEnum> getTemplateTypes() {
        return templateTypes;
    }
 
    public GetWaylineListResponse setTemplateTypes(List<WaylineTypeEnum> templateTypes) {
        this.templateTypes = templateTypes;
        return this;
    }
 
    public String getObjectKey() {
        return objectKey;
    }
 
    public GetWaylineListResponse setObjectKey(String objectKey) {
        this.objectKey = objectKey;
        return this;
    }
 
    public String getUsername() {
        return username;
    }
 
    public GetWaylineListResponse setUsername(String username) {
        this.username = username;
        return this;
    }
 
    public Long getUpdateTime() {
        return updateTime;
    }
 
    public GetWaylineListResponse setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
        return this;
    }
 
    public Long getCreateTime() {
        return createTime;
    }
 
    public GetWaylineListResponse setCreateTime(Long createTime) {
        this.createTime = createTime;
        return this;
    }
 
    public ActionTypeEnum getActionType() {
        return actionType;
    }
 
    public GetWaylineListResponse setActionType(ActionTypeEnum actionType) {
        this.actionType = actionType;
        return this;
    }
}