com.pulumi.aws.s3.outputs.DirectoryBucketLocation 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.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class DirectoryBucketLocation {
/**
* @return [Availability Zone ID](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#az-ids).
*
*/
private String name;
/**
* @return Location type. Valid values: `AvailabilityZone`.
*
*/
private @Nullable String type;
private DirectoryBucketLocation() {}
/**
* @return [Availability Zone ID](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#az-ids).
*
*/
public String name() {
return this.name;
}
/**
* @return Location type. Valid values: `AvailabilityZone`.
*
*/
public Optional type() {
return Optional.ofNullable(this.type);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DirectoryBucketLocation defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String name;
private @Nullable String type;
public Builder() {}
public Builder(DirectoryBucketLocation defaults) {
Objects.requireNonNull(defaults);
this.name = defaults.name;
this.type = defaults.type;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("DirectoryBucketLocation", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder type(@Nullable String type) {
this.type = type;
return this;
}
public DirectoryBucketLocation build() {
final var _resultValue = new DirectoryBucketLocation();
_resultValue.name = name;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy