com.pulumi.aws.s3control.outputs.MultiRegionAccessPointDetails 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.s3control.outputs;
import com.pulumi.aws.s3control.outputs.MultiRegionAccessPointDetailsPublicAccessBlock;
import com.pulumi.aws.s3control.outputs.MultiRegionAccessPointDetailsRegion;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class MultiRegionAccessPointDetails {
private String name;
private @Nullable MultiRegionAccessPointDetailsPublicAccessBlock publicAccessBlock;
private List regions;
private MultiRegionAccessPointDetails() {}
public String name() {
return this.name;
}
public Optional publicAccessBlock() {
return Optional.ofNullable(this.publicAccessBlock);
}
public List regions() {
return this.regions;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(MultiRegionAccessPointDetails defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String name;
private @Nullable MultiRegionAccessPointDetailsPublicAccessBlock publicAccessBlock;
private List regions;
public Builder() {}
public Builder(MultiRegionAccessPointDetails defaults) {
Objects.requireNonNull(defaults);
this.name = defaults.name;
this.publicAccessBlock = defaults.publicAccessBlock;
this.regions = defaults.regions;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("MultiRegionAccessPointDetails", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder publicAccessBlock(@Nullable MultiRegionAccessPointDetailsPublicAccessBlock publicAccessBlock) {
this.publicAccessBlock = publicAccessBlock;
return this;
}
@CustomType.Setter
public Builder regions(List regions) {
if (regions == null) {
throw new MissingRequiredPropertyException("MultiRegionAccessPointDetails", "regions");
}
this.regions = regions;
return this;
}
public Builder regions(MultiRegionAccessPointDetailsRegion... regions) {
return regions(List.of(regions));
}
public MultiRegionAccessPointDetails build() {
final var _resultValue = new MultiRegionAccessPointDetails();
_resultValue.name = name;
_resultValue.publicAccessBlock = publicAccessBlock;
_resultValue.regions = regions;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy