
com.pulumi.aws.s3.outputs.BucketAclV2AccessControlPolicyOwner 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 BucketAclV2AccessControlPolicyOwner {
/**
* @return Display name of the owner.
*
*/
private @Nullable String displayName;
/**
* @return ID of the owner.
*
*/
private String id;
private BucketAclV2AccessControlPolicyOwner() {}
/**
* @return Display name of the owner.
*
*/
public Optional displayName() {
return Optional.ofNullable(this.displayName);
}
/**
* @return ID of the owner.
*
*/
public String id() {
return this.id;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(BucketAclV2AccessControlPolicyOwner defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String displayName;
private String id;
public Builder() {}
public Builder(BucketAclV2AccessControlPolicyOwner defaults) {
Objects.requireNonNull(defaults);
this.displayName = defaults.displayName;
this.id = defaults.id;
}
@CustomType.Setter
public Builder displayName(@Nullable String displayName) {
this.displayName = displayName;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("BucketAclV2AccessControlPolicyOwner", "id");
}
this.id = id;
return this;
}
public BucketAclV2AccessControlPolicyOwner build() {
final var _resultValue = new BucketAclV2AccessControlPolicyOwner();
_resultValue.displayName = displayName;
_resultValue.id = id;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy