com.amazonaws.services.s3.model.Bucket.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(114)

本文整理了Java中com.amazonaws.services.s3.model.Bucket.<init>()方法的一些代码示例,展示了Bucket.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Bucket.<init>()方法的具体详情如下:
包路径:com.amazonaws.services.s3.model.Bucket
类名称:Bucket
方法名:<init>

Bucket.<init>介绍

[英]Constructs a bucket without any name specified.
[中]构造未指定任何名称的bucket。

代码示例

代码示例来源:origin: pentaho/pentaho-kettle

/**
 * Returns the named bucket.
 *
 * @param bucketName
 *          the name of the bucket to find.
 * @return the bucket, or null if no the named bucket has found.
 * @throws SdkClientException
 */
public Bucket getBucket( String bucketName ) throws SdkClientException {
 return s3Client.doesBucketExistV2( bucketName ) ? new Bucket( bucketName ) : null;
}

代码示例来源:origin: aws/aws-sdk-java

@Override
protected void doStartElement(
    String uri,
    String name,
    String qName,
    Attributes attrs) {
  if (in("ListAllMyBucketsResult")) {
    if (name.equals("Owner")) {
      bucketsOwner = new Owner();
    }
  } else if (in("ListAllMyBucketsResult", "Buckets")) {
    if (name.equals("Bucket")) {
      currentBucket = new Bucket();
      currentBucket.setOwner(bucketsOwner);
    }
  }
}

代码示例来源:origin: aws/aws-sdk-java

return new Bucket(bucketName);

代码示例来源:origin: aws-amplify/aws-sdk-android

@Override
protected void doStartElement(
    String uri,
    String name,
    String qName,
    Attributes attrs) {
  if (in("ListAllMyBucketsResult")) {
    if (name.equals("Owner")) {
      bucketsOwner = new Owner();
    }
  } else if (in("ListAllMyBucketsResult", "Buckets")) {
    if (name.equals("Bucket")) {
      currentBucket = new Bucket();
      currentBucket.setOwner(bucketsOwner);
    }
  }
}

代码示例来源:origin: aws-amplify/aws-sdk-android

return new Bucket(bucketName);

代码示例来源:origin: berlam/github-bucket

@Override
public SyncableRepository getPushRepository() {
  return new RepositoryS3(new Bucket(props.getProperty(ENV_BUCKET)), repository, client, branch);
}

代码示例来源:origin: berlam/github-bucket

private LambdaConfig() {
  try (InputStream is = getClass().getClassLoader().getResourceAsStream("env.properties")) {
    this.props.load(is);
    this.repository = new FileRepository(new File(System.getProperty("java.io.tmpdir"), "s3"));
  }
  catch (IOException e) {
    throw new IllegalArgumentException(e);
  }
  overwriteWithSystemProperty(ENV_BRANCH);
  overwriteWithSystemProperty(ENV_BUCKET);
  overwriteWithSystemProperty(ENV_GITHUB);
  this.remote = new Remote(Constants.DEFAULT_REMOTE_NAME);
  this.branch = new Branch(props.getProperty(ENV_BRANCH, Constants.MASTER));
  this.authentication = new SecureShellAuthentication(new Bucket(props.getProperty(ENV_BUCKET)), client);
}

代码示例来源:origin: com.amazonaws/aws-android-sdk-s3

@Override
protected void doStartElement(
    String uri,
    String name,
    String qName,
    Attributes attrs) {
  if (in("ListAllMyBucketsResult")) {
    if (name.equals("Owner")) {
      bucketsOwner = new Owner();
    }
  } else if (in("ListAllMyBucketsResult", "Buckets")) {
    if (name.equals("Bucket")) {
      currentBucket = new Bucket();
      currentBucket.setOwner(bucketsOwner);
    }
  }
}

代码示例来源:origin: Nextdoor/bender

@Override
protected void doStartElement(
    String uri,
    String name,
    String qName,
    Attributes attrs) {
  if (in("ListAllMyBucketsResult")) {
    if (name.equals("Owner")) {
      bucketsOwner = new Owner();
    }
  } else if (in("ListAllMyBucketsResult", "Buckets")) {
    if (name.equals("Bucket")) {
      currentBucket = new Bucket();
      currentBucket.setOwner(bucketsOwner);
    }
  }
}

代码示例来源:origin: com.amazonaws/aws-android-sdk-s3

return new Bucket(bucketName);

代码示例来源:origin: Nextdoor/bender

return new Bucket(bucketName);

相关文章