com.pulumi.aws.s3.outputs.GetDirectoryBucketsResult Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.s3.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetDirectoryBucketsResult {
/**
* @return Bucket ARNs.
*
*/
private List arns;
/**
* @return Buckets names.
*
*/
private List buckets;
private String id;
private GetDirectoryBucketsResult() {}
/**
* @return Bucket ARNs.
*
*/
public List arns() {
return this.arns;
}
/**
* @return Buckets names.
*
*/
public List buckets() {
return this.buckets;
}
public String id() {
return this.id;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetDirectoryBucketsResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List arns;
private List buckets;
private String id;
public Builder() {}
public Builder(GetDirectoryBucketsResult defaults) {
Objects.requireNonNull(defaults);
this.arns = defaults.arns;
this.buckets = defaults.buckets;
this.id = defaults.id;
}
@CustomType.Setter
public Builder arns(List arns) {
if (arns == null) {
throw new MissingRequiredPropertyException("GetDirectoryBucketsResult", "arns");
}
this.arns = arns;
return this;
}
public Builder arns(String... arns) {
return arns(List.of(arns));
}
@CustomType.Setter
public Builder buckets(List buckets) {
if (buckets == null) {
throw new MissingRequiredPropertyException("GetDirectoryBucketsResult", "buckets");
}
this.buckets = buckets;
return this;
}
public Builder buckets(String... buckets) {
return buckets(List.of(buckets));
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetDirectoryBucketsResult", "id");
}
this.id = id;
return this;
}
public GetDirectoryBucketsResult build() {
final var _resultValue = new GetDirectoryBucketsResult();
_resultValue.arns = arns;
_resultValue.buckets = buckets;
_resultValue.id = id;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy