-
Notifications
You must be signed in to change notification settings - Fork 9
/
SecretAttributeContent.java
45 lines (35 loc) · 1.32 KB
/
SecretAttributeContent.java
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
package com.czertainly.api.model.common.attribute.v2.content;
import com.czertainly.api.model.common.attribute.v2.content.data.SecretAttributeContentData;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Objects;
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SecretAttributeContent extends BaseAttributeContent<SecretAttributeContentData> {
@Schema(description = "Secret attribute content data", requiredMode = Schema.RequiredMode.REQUIRED)
private SecretAttributeContentData data;
public SecretAttributeContent(String reference, SecretAttributeContentData data) {
super(reference, data);
this.data = data;
}
public SecretAttributeContent() {
}
@Override
public SecretAttributeContentData getData() {
return data;
}
@Override
public void setData(SecretAttributeContentData data) {
this.data = data;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof SecretAttributeContent)) return false;
SecretAttributeContent that = (SecretAttributeContent) o;
return Objects.equals(this.data, that.data);
}
@Override
public int hashCode() {
return Objects.hash(super.hashCode(), data);
}
}