public ProjectConfig()

in src/main/java/com/aliyun/openservices/aliyun/log/producer/ProjectConfig.java [75:103]


  public ProjectConfig(
      String project,
      String endpoint,
      String accessKeyId,
      String accessKeySecret,
      @Nullable String stsToken,
      @Nullable String userAgent) {
    if (project == null) {
      throw new NullPointerException("project cannot be null");
    }
    if (endpoint == null) {
      throw new NullPointerException("endpoint cannot be null");
    }
    if (accessKeyId == null) {
      throw new NullPointerException("accessKeyId cannot be null");
    }
    if (accessKeySecret == null) {
      throw new NullPointerException("accessKeySecret cannot be null");
    }
    this.project = project;
    this.endpoint = endpoint;
    this.accessKeyId = accessKeyId;
    this.accessKeySecret = accessKeySecret;
    this.stsToken = stsToken;
    this.userAgent = userAgent;
    this.credentialsProvider =
        new StaticCredentialsProvider(
            new DefaultCredentials(accessKeyId, accessKeySecret, stsToken));
  }