All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.okta.sdk.resource.model.LogTransaction Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 21.0.0
Show 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 java.util.HashMap;
import java.util.Map;
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;

/**
 * A `transaction` object comprises contextual information associated with its respective event. This
 * information is useful for understanding sequences of correlated events. For example, a `transaction` object
 * such as the following: ``` { \"id\": \"Wn4f-0RQ8D8lTSLkAmkKdQAADqo\",
 * \"type\": \"WEB\", \"detail\": null } ``` indicates that a
 * `WEB` request with `id` `Wn4f-0RQ8D8lTSLkAmkKdQAADqo` has created this event. A
 * `transaction` object with a `requestApiTokenId` in the `detail` object, for example :
 * ``` { \"id\": \"YjSlblAAqnKY7CdyCkXNBgAAAIU\", \"type\":
 * \"WEB\", \"detail\": { \"requestApiTokenId\": \"00T94e3cn9kSEO3c51s5\" } }
 * ``` indicates that this event was the result of an action performed through an API using the token
 * identified by 00T94e3cn9kSEO3c51s5. The token ID is visible in the Admin Console, **Security** > **API**. See [API
 * token management](https://help.okta.com/okta_help.htm?id=Security_API). For more information on API tokens, see
 * [Create an API token](https://developer.okta.com/docs/guides/create-an-api-token/).
 */
@ApiModel(description = "A `transaction` object comprises contextual information associated with its respective event.  This information is useful for understanding sequences of correlated events. For example, a `transaction` object such as the following: ``` {   \"id\": \"Wn4f-0RQ8D8lTSLkAmkKdQAADqo\",   \"type\": \"WEB\",   \"detail\": null } ``` indicates that a `WEB` request with `id` `Wn4f-0RQ8D8lTSLkAmkKdQAADqo` has created this event.  A `transaction` object with a `requestApiTokenId` in the `detail` object, for example : ``` {   \"id\": \"YjSlblAAqnKY7CdyCkXNBgAAAIU\",   \"type\": \"WEB\",   \"detail\": {     \"requestApiTokenId\": \"00T94e3cn9kSEO3c51s5\"   } } ``` indicates that this event was the result of an action performed through an API using the token identified by 00T94e3cn9kSEO3c51s5. The token ID is visible in the Admin Console, **Security** > **API**. See [API token management](https://help.okta.com/okta_help.htm?id=Security_API). For more information on API tokens, see [Create an API token](https://developer.okta.com/docs/guides/create-an-api-token/).")
@JsonPropertyOrder({ LogTransaction.JSON_PROPERTY_DETAIL, LogTransaction.JSON_PROPERTY_ID,
        LogTransaction.JSON_PROPERTY_TYPE })
@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 LogTransaction implements Serializable {

    private static final long serialVersionUID = 1L;

    public static final String JSON_PROPERTY_DETAIL = "detail";
    private Map detail = null;

    public static final String JSON_PROPERTY_ID = "id";
    private String id;

    public static final String JSON_PROPERTY_TYPE = "type";
    private String type;

    public LogTransaction() {
    }

    /*
     * @JsonCreator public LogTransaction(
     *
     * @JsonProperty(JSON_PROPERTY_DETAIL) Map detail,
     *
     * @JsonProperty(JSON_PROPERTY_ID) String id,
     *
     * @JsonProperty(JSON_PROPERTY_TYPE) String type ) { this(); this.detail = detail; this.id = id; this.type = type; }
     */

    /**
     * Details for this transaction.
     *
     * @return detail
     **/
    @javax.annotation.Nullable
    @ApiModelProperty(value = "Details for this transaction.")
    @JsonProperty(JSON_PROPERTY_DETAIL)
    @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS)

    public Map getDetail() {
        return detail;
    }

    /**
     * Unique identifier for this transaction.
     *
     * @return id
     **/
    @javax.annotation.Nullable
    @ApiModelProperty(value = "Unique identifier for this transaction.")
    @JsonProperty(JSON_PROPERTY_ID)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

    public String getId() {
        return id;
    }

    /**
     * Describes the kind of transaction. `WEB` indicates a web request. `JOB` indicates an
     * asynchronous task.
     *
     * @return type
     **/
    @javax.annotation.Nullable
    @ApiModelProperty(value = "Describes the kind of transaction. `WEB` indicates a web request. `JOB` indicates an asynchronous task.")
    @JsonProperty(JSON_PROPERTY_TYPE)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

    public String getType() {
        return type;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        LogTransaction logTransaction = (LogTransaction) o;
        return Objects.equals(this.detail, logTransaction.detail) && Objects.equals(this.id, logTransaction.id)
                && Objects.equals(this.type, logTransaction.type);
        // ;
    }

    @Override
    public int hashCode() {
        return Objects.hash(detail, id, type);
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class LogTransaction {\n");
        sb.append("    detail: ").append(toIndentedString(detail)).append("\n");
        sb.append("    id: ").append(toIndentedString(id)).append("\n");
        sb.append("    type: ").append(toIndentedString(type)).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