oh-my-muse/docs/api-contracts/generated/java/com/muse/dto/SecurityEventDetailDeviceInfo.java

138 lines
3.8 KiB
Java

package com.muse.dto;
import java.net.URI;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import org.springframework.lang.Nullable;
import java.io.Serializable;
import java.time.OffsetDateTime;
import jakarta.validation.Valid;
import jakarta.validation.constraints.*;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.*;
import jakarta.annotation.Generated;
/**
* 设备信息摘要
*/
@Schema(name = "SecurityEventDetail_deviceInfo", description = "设备信息摘要")
@JsonTypeName("SecurityEventDetail_deviceInfo")
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2026-05-24T16:47:40.290595+08:00[Asia/Shanghai]", comments = "Generator version: 7.22.0")
public class SecurityEventDetailDeviceInfo implements Serializable {
private static final long serialVersionUID = 1L;
private @Nullable String userAgent;
private @Nullable String platform;
private @Nullable String location;
public SecurityEventDetailDeviceInfo userAgent(@Nullable String userAgent) {
this.userAgent = userAgent;
return this;
}
/**
* User-Agent 摘要
* @return userAgent
*/
@Schema(name = "userAgent", description = "User-Agent 摘要", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("userAgent")
public @Nullable String getUserAgent() {
return userAgent;
}
@JsonProperty("userAgent")
public void setUserAgent(@Nullable String userAgent) {
this.userAgent = userAgent;
}
public SecurityEventDetailDeviceInfo platform(@Nullable String platform) {
this.platform = platform;
return this;
}
/**
* 平台
* @return platform
*/
@Schema(name = "platform", description = "平台", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("platform")
public @Nullable String getPlatform() {
return platform;
}
@JsonProperty("platform")
public void setPlatform(@Nullable String platform) {
this.platform = platform;
}
public SecurityEventDetailDeviceInfo location(@Nullable String location) {
this.location = location;
return this;
}
/**
* 地理位置摘要
* @return location
*/
@Schema(name = "location", description = "地理位置摘要", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("location")
public @Nullable String getLocation() {
return location;
}
@JsonProperty("location")
public void setLocation(@Nullable String location) {
this.location = location;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SecurityEventDetailDeviceInfo securityEventDetailDeviceInfo = (SecurityEventDetailDeviceInfo) o;
return Objects.equals(this.userAgent, securityEventDetailDeviceInfo.userAgent) &&
Objects.equals(this.platform, securityEventDetailDeviceInfo.platform) &&
Objects.equals(this.location, securityEventDetailDeviceInfo.location);
}
@Override
public int hashCode() {
return Objects.hash(userAgent, platform, location);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SecurityEventDetailDeviceInfo {\n");
sb.append(" userAgent: ").append(toIndentedString(userAgent)).append("\n");
sb.append(" platform: ").append(toIndentedString(platform)).append("\n");
sb.append(" location: ").append(toIndentedString(location)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(@Nullable Object o) {
return o == null ? "null" : o.toString().replace("\n", "\n ");
}
}