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

com.dominodatalab.api.model.DominoDatasetrwApiDatasetRwPermission Maven / Gradle / Ivy

/*
 * Domino Data Lab API v4
 * This API is going to provide access to all the Domino functions available in the user interface. To authenticate your requests, include your API Key (which you can find on your account page) with the header X-Domino-Api-Key. 
 *
 * 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.dominodatalab.api.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;

/**
 * Gets or Sets domino.datasetrw.api.DatasetRwPermission
 */
public enum DominoDatasetrwApiDatasetRwPermission {
  
  DELETEDATASETRWV2("DeleteDatasetRwV2"),
  
  EDITSECURITYDATASETRWV2("EditSecurityDatasetRwV2"),
  
  LISTDATASETRWV2("ListDatasetRwV2"),
  
  PERFORMDATASETRWACTIONSINPROJECTV2("PerformDatasetRwActionsInProjectV2"),
  
  PERMANENTDELETEDATASETRWV2("PermanentDeleteDatasetRwV2"),
  
  READDATASETRWV2("ReadDatasetRwV2"),
  
  UPDATEDATASETRWV2("UpdateDatasetRwV2"),
  
  PERFORMDATASETRWACTIONSASADMINV2("PerformDatasetRwActionsAsAdminV2");

  private String value;

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

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

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

  @JsonCreator
  public static DominoDatasetrwApiDatasetRwPermission fromValue(String value) {
    for (DominoDatasetrwApiDatasetRwPermission b : DominoDatasetrwApiDatasetRwPermission.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