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
package com.dji.sdk.cloudapi.map;
 
import com.dji.sdk.common.BaseModel;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
 
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.List;
 
/**
 * @author sean
 * @version 0.2
 * @date 2021/11/29
 */
@Schema(description = "element group data")
public class GetMapElementsResponse extends BaseModel {
 
    @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 = "group id", format = "uuid")
    private String id;
 
    @NotNull
    @Schema(description = "group name", example = "Pilot Share Layer")
    private String name;
 
    @NotNull
    private GroupTypeEnum type;
 
    @NotNull
    @Schema(description = "data collection of elements")
    private List<@Valid MapGroupElement> elements;
 
    @JsonProperty(value = "is_lock")
    @NotNull
    @Schema(description = "Whether the element group is locked.")
    private Boolean lock;
 
    public GetMapElementsResponse() {
    }
 
    @Override
    public String toString() {
        return "GetMapElementsResponse{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", type=" + type +
                ", elements=" + elements +
                ", lock=" + lock +
                '}';
    }
 
    public String getId() {
        return id;
    }
 
    public GetMapElementsResponse setId(String id) {
        this.id = id;
        return this;
    }
 
    public String getName() {
        return name;
    }
 
    public GetMapElementsResponse setName(String name) {
        this.name = name;
        return this;
    }
 
    public GroupTypeEnum getType() {
        return type;
    }
 
    public GetMapElementsResponse setType(GroupTypeEnum type) {
        this.type = type;
        return this;
    }
 
    public List<MapGroupElement> getElements() {
        return elements;
    }
 
    public GetMapElementsResponse setElements(List<MapGroupElement> elements) {
        this.elements = elements;
        return this;
    }
 
    public Boolean getLock() {
        return lock;
    }
 
    public GetMapElementsResponse setLock(Boolean lock) {
        this.lock = lock;
        return this;
    }
}