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

com.aliyun.odps.account.AccountFormat Maven / Gradle / Ivy

There is a newer version: 0.51.11-public
Show newest version
package com.aliyun.odps.account;

/**
 * Created by zhenhong.gzh on 16/12/27.
 */

import java.util.Map;

/**
 * 使用的账号格式
 */
public enum AccountFormat {
  // 用户账号格式为 ID
  ID,

  // 用户账号格式为 displayname
  DISPLAYNAME;

  public static void setParam(AccountFormat accountFormat, Map params) {
    if (accountFormat == null || params == null) {
      return;
    }

    params.put("accountformat", accountFormat.name().toLowerCase());
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy