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

com.hpe.caf.services.audit.client.model.EventParam Maven / Gradle / Ivy

The newest version!
/*
 * Audit Web Service
 * Allows audit event message details to be indexed into ElasticSearch.  Each audit event message will comprise a set of fixed fields including the application the audit event message is associated with, the user that triggered the audit event as well as the tenant that the user belongs to. The audit event message will also include additional fields specific to the application.  
 *
 * The version of the OpenAPI document: 4.0.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package com.hpe.caf.services.audit.client.model;

import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
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.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.hpe.caf.services.audit.client.JSON;


/**
 * EventParam
 */
@JsonPropertyOrder({
  EventParam.JSON_PROPERTY_PARAM_NAME,
  EventParam.JSON_PROPERTY_PARAM_TYPE,
  EventParam.JSON_PROPERTY_PARAM_INDEXING_HINT,
  EventParam.JSON_PROPERTY_PARAM_COLUMN_NAME,
  EventParam.JSON_PROPERTY_PARAM_VALUE
})
@JsonTypeName("eventParam")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-23T11:21:10.586433281Z[Etc/UTC]")
public class EventParam {
  public static final String JSON_PROPERTY_PARAM_NAME = "paramName";
  private String paramName;

  public static final String JSON_PROPERTY_PARAM_TYPE = "paramType";
  private String paramType = "string";

  public static final String JSON_PROPERTY_PARAM_INDEXING_HINT = "paramIndexingHint";
  private String paramIndexingHint;

  public static final String JSON_PROPERTY_PARAM_COLUMN_NAME = "paramColumnName";
  private String paramColumnName;

  public static final String JSON_PROPERTY_PARAM_VALUE = "paramValue";
  private String paramValue;

  public EventParam() { 
  }

  public EventParam paramName(String paramName) {
    this.paramName = paramName;
    return this;
  }

   /**
   * Audit event parameter name.
   * @return paramName
  **/
  @jakarta.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_PARAM_NAME)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getParamName() {
    return paramName;
  }


  @JsonProperty(JSON_PROPERTY_PARAM_NAME)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setParamName(String paramName) {
    this.paramName = paramName;
  }


  public EventParam paramType(String paramType) {
    this.paramType = paramType;
    return this;
  }

   /**
   * Type of audit event parameter.
   * @return paramType
  **/
  @jakarta.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_PARAM_TYPE)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getParamType() {
    return paramType;
  }


  @JsonProperty(JSON_PROPERTY_PARAM_TYPE)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setParamType(String paramType) {
    this.paramType = paramType;
  }


  public EventParam paramIndexingHint(String paramIndexingHint) {
    this.paramIndexingHint = paramIndexingHint;
    return this;
  }

   /**
   * Indexing hint for audit event parameter storage. Applies to parameters of type string only.
   * @return paramIndexingHint
  **/
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_PARAM_INDEXING_HINT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getParamIndexingHint() {
    return paramIndexingHint;
  }


  @JsonProperty(JSON_PROPERTY_PARAM_INDEXING_HINT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setParamIndexingHint(String paramIndexingHint) {
    this.paramIndexingHint = paramIndexingHint;
  }


  public EventParam paramColumnName(String paramColumnName) {
    this.paramColumnName = paramColumnName;
    return this;
  }

   /**
   * Alternative field name to be used in the event that multiple audit events comprise of parameters with the same name.
   * @return paramColumnName
  **/
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_PARAM_COLUMN_NAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getParamColumnName() {
    return paramColumnName;
  }


  @JsonProperty(JSON_PROPERTY_PARAM_COLUMN_NAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setParamColumnName(String paramColumnName) {
    this.paramColumnName = paramColumnName;
  }


  public EventParam paramValue(String paramValue) {
    this.paramValue = paramValue;
    return this;
  }

   /**
   * Audit event parameter value.
   * @return paramValue
  **/
  @jakarta.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_PARAM_VALUE)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getParamValue() {
    return paramValue;
  }


  @JsonProperty(JSON_PROPERTY_PARAM_VALUE)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setParamValue(String paramValue) {
    this.paramValue = paramValue;
  }


  /**
   * Return true if this eventParam object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    EventParam eventParam = (EventParam) o;
    return Objects.equals(this.paramName, eventParam.paramName) &&
        Objects.equals(this.paramType, eventParam.paramType) &&
        Objects.equals(this.paramIndexingHint, eventParam.paramIndexingHint) &&
        Objects.equals(this.paramColumnName, eventParam.paramColumnName) &&
        Objects.equals(this.paramValue, eventParam.paramValue);
  }

  @Override
  public int hashCode() {
    return Objects.hash(paramName, paramType, paramIndexingHint, paramColumnName, paramValue);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class EventParam {\n");
    sb.append("    paramName: ").append(toIndentedString(paramName)).append("\n");
    sb.append("    paramType: ").append(toIndentedString(paramType)).append("\n");
    sb.append("    paramIndexingHint: ").append(toIndentedString(paramIndexingHint)).append("\n");
    sb.append("    paramColumnName: ").append(toIndentedString(paramColumnName)).append("\n");
    sb.append("    paramValue: ").append(toIndentedString(paramValue)).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 - 2024 Weber Informatics LLC | Privacy Policy