com.pulumi.aws.s3.inputs.GetBucketArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** 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.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class GetBucketArgs extends com.pulumi.resources.InvokeArgs {
public static final GetBucketArgs Empty = new GetBucketArgs();
/**
* Name of the bucket
*
*/
@Import(name="bucket", required=true)
private Output bucket;
/**
* @return Name of the bucket
*
*/
public Output bucket() {
return this.bucket;
}
private GetBucketArgs() {}
private GetBucketArgs(GetBucketArgs $) {
this.bucket = $.bucket;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetBucketArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetBucketArgs $;
public Builder() {
$ = new GetBucketArgs();
}
public Builder(GetBucketArgs defaults) {
$ = new GetBucketArgs(Objects.requireNonNull(defaults));
}
/**
* @param bucket Name of the bucket
*
* @return builder
*
*/
public Builder bucket(Output bucket) {
$.bucket = bucket;
return this;
}
/**
* @param bucket Name of the bucket
*
* @return builder
*
*/
public Builder bucket(String bucket) {
return bucket(Output.of(bucket));
}
public GetBucketArgs build() {
if ($.bucket == null) {
throw new MissingRequiredPropertyException("GetBucketArgs", "bucket");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy