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

com.dominodatalab.pub.model.DataSourceAuditEventKindV1 Maven / Gradle / Ivy

Go to download

Domino Data Lab API Client to connect to Domino web services using Java HTTP Client.

There is a newer version: 6.0.1.0
Show newest version
/*
 * Domino Public API
 * Domino Public API Endpoints
 *
 * The version of the OpenAPI document: 0.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.dominodatalab.pub.model;

import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.StringJoiner;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;


import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * Kinds of Data Source audit events
 */
public enum DataSourceAuditEventKindV1 {
  
  ACCESS_DATA_SOURCE("AccessDataSource"),
  
  CREATE_DATA_SOURCE("CreateDataSource"),
  
  DATA_SOURCE_ASSOCIATED_TO_PROJECT("DataSourceAssociatedToProject"),
  
  DATA_SOURCE_DISSOCIATED_FROM_PROJECT("DataSourceDissociatedFromProject"),
  
  DATA_SOURCE_CHANGE_OF_OWNERSHIP("DataSourceChangeOfOwnership"),
  
  DATA_SOURCE_CHANGE_OF_PERMISSIONS("DataSourceChangeOfPermissions"),
  
  DELETE_DATA_SOURCE("DeleteDataSource");

  private String value;

  DataSourceAuditEventKindV1(String value) {
    this.value = value;
  }

  @JsonValue
  public String getValue() {
    return value;
  }

  @Override
  public String toString() {
    return String.valueOf(value);
  }

  @JsonCreator
  public static DataSourceAuditEventKindV1 fromValue(String value) {
    for (DataSourceAuditEventKindV1 b : DataSourceAuditEventKindV1.values()) {
      if (b.value.equals(value)) {
        return b;
      }
    }
    throw new IllegalArgumentException("Unexpected value '" + value + "'");
  }

  /**
   * Convert the instance into URL query string.
   *
   * @param prefix prefix of the query string
   * @return URL query string
   */
  public String toUrlQueryString(String prefix) {
    if (prefix == null) {
      prefix = "";
    }

    return String.format("%s=%s", prefix, this.toString());
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy