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

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

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

import com.fasterxml.jackson.annotation.JsonTypeName;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.annotation.JsonTypeName;



@JsonTypeName("eventParam")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", date = "2024-09-23T11:21:17.304470716Z[Etc/UTC]")
public class EventParam   {
  private String paramName;
  private String paramType = "string";
  private String paramIndexingHint;
  private String paramColumnName;
  private String paramValue;

  /**
   * Audit event parameter name.
   **/
  public EventParam paramName(String paramName) {
    this.paramName = paramName;
    return this;
  }

  
  @JsonProperty("paramName")
  public String getParamName() {
    return paramName;
  }

  @JsonProperty("paramName")
  public void setParamName(String paramName) {
    this.paramName = paramName;
  }

  /**
   * Type of audit event parameter.
   **/
  public EventParam paramType(String paramType) {
    this.paramType = paramType;
    return this;
  }

  
  @JsonProperty("paramType")
  public String getParamType() {
    return paramType;
  }

  @JsonProperty("paramType")
  public void setParamType(String paramType) {
    this.paramType = paramType;
  }

  /**
   * Indexing hint for audit event parameter storage. Applies to parameters of type string only.
   **/
  public EventParam paramIndexingHint(String paramIndexingHint) {
    this.paramIndexingHint = paramIndexingHint;
    return this;
  }

  
  @JsonProperty("paramIndexingHint")
  public String getParamIndexingHint() {
    return paramIndexingHint;
  }

  @JsonProperty("paramIndexingHint")
  public void setParamIndexingHint(String paramIndexingHint) {
    this.paramIndexingHint = paramIndexingHint;
  }

  /**
   * Alternative field name to be used in the event that multiple audit events comprise of parameters with the same name.
   **/
  public EventParam paramColumnName(String paramColumnName) {
    this.paramColumnName = paramColumnName;
    return this;
  }

  
  @JsonProperty("paramColumnName")
  public String getParamColumnName() {
    return paramColumnName;
  }

  @JsonProperty("paramColumnName")
  public void setParamColumnName(String paramColumnName) {
    this.paramColumnName = paramColumnName;
  }

  /**
   * Audit event parameter value.
   **/
  public EventParam paramValue(String paramValue) {
    this.paramValue = paramValue;
    return this;
  }

  
  @JsonProperty("paramValue")
  public String getParamValue() {
    return paramValue;
  }

  @JsonProperty("paramValue")
  public void setParamValue(String paramValue) {
    this.paramValue = paramValue;
  }


  @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