com.okta.sdk.resource.model.RiskEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of okta-sdk-api Show documentation
Show all versions of okta-sdk-api Show documentation
The Okta Java SDK API .jar provides a Java API that your code can use to make calls to the Okta
API. This .jar is the only compile-time dependency within the Okta SDK project that your code should
depend on. Implementations of this API (implementation .jars) should be runtime dependencies only.
The newest version!
package com.okta.sdk.resource.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import com.okta.sdk.resource.model.RiskEventSubject;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
/**
* RiskEvent
*/
@JsonPropertyOrder({ RiskEvent.JSON_PROPERTY_EXPIRES_AT, RiskEvent.JSON_PROPERTY_SUBJECTS,
RiskEvent.JSON_PROPERTY_TIMESTAMP })
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-15T08:48:47.130589-06:00[America/Chicago]", comments = "Generator version: 7.8.0")
public class RiskEvent implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_EXPIRES_AT = "expiresAt";
private OffsetDateTime expiresAt;
public static final String JSON_PROPERTY_SUBJECTS = "subjects";
private List subjects = new ArrayList<>();
public static final String JSON_PROPERTY_TIMESTAMP = "timestamp";
private OffsetDateTime timestamp;
public RiskEvent() {
}
public RiskEvent expiresAt(OffsetDateTime expiresAt) {
this.expiresAt = expiresAt;
return this;
}
/**
* Timestamp at which the event expires (expressed as a UTC time zone using ISO 8601 format:
* yyyy-MM-dd`T`HH:mm:ss.SSS`Z`). If this optional field is not included, Okta automatically
* expires the event 24 hours after the event is consumed.
*
* @return expiresAt
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Timestamp at which the event expires (expressed as a UTC time zone using ISO 8601 format: yyyy-MM-dd`T`HH:mm:ss.SSS`Z`). If this optional field is not included, Okta automatically expires the event 24 hours after the event is consumed.")
@JsonProperty(JSON_PROPERTY_EXPIRES_AT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getExpiresAt() {
return expiresAt;
}
@JsonProperty(JSON_PROPERTY_EXPIRES_AT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setExpiresAt(OffsetDateTime expiresAt) {
this.expiresAt = expiresAt;
}
public RiskEvent subjects(List subjects) {
this.subjects = subjects;
return this;
}
public RiskEvent addsubjectsItem(RiskEventSubject subjectsItem) {
if (this.subjects == null) {
this.subjects = new ArrayList<>();
}
this.subjects.add(subjectsItem);
return this;
}
/**
* List of Risk Event Subjects
*
* @return subjects
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "List of Risk Event Subjects")
@JsonProperty(JSON_PROPERTY_SUBJECTS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getSubjects() {
return subjects;
}
@JsonProperty(JSON_PROPERTY_SUBJECTS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setSubjects(List subjects) {
this.subjects = subjects;
}
public RiskEvent timestamp(OffsetDateTime timestamp) {
this.timestamp = timestamp;
return this;
}
/**
* Timestamp of when the event is produced (expressed as a UTC time zone using ISO 8601 format:
* yyyy-MM-dd`T`HH:mm:ss.SSS`Z`)
*
* @return timestamp
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Timestamp of when the event is produced (expressed as a UTC time zone using ISO 8601 format: yyyy-MM-dd`T`HH:mm:ss.SSS`Z`)")
@JsonProperty(JSON_PROPERTY_TIMESTAMP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getTimestamp() {
return timestamp;
}
@JsonProperty(JSON_PROPERTY_TIMESTAMP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTimestamp(OffsetDateTime timestamp) {
this.timestamp = timestamp;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
RiskEvent riskEvent = (RiskEvent) o;
return Objects.equals(this.expiresAt, riskEvent.expiresAt) && Objects.equals(this.subjects, riskEvent.subjects)
&& Objects.equals(this.timestamp, riskEvent.timestamp);
// ;
}
@Override
public int hashCode() {
return Objects.hash(expiresAt, subjects, timestamp);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RiskEvent {\n");
sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n");
sb.append(" subjects: ").append(toIndentedString(subjects)).append("\n");
sb.append(" timestamp: ").append(toIndentedString(timestamp)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy