com.pulumi.aws.cloudtrail.outputs.GetServiceAccountResult 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.cloudtrail.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 GetServiceAccountResult {
/**
* @return ARN of the AWS CloudTrail service account in the selected region.
*
*/
private String arn;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
private @Nullable String region;
private GetServiceAccountResult() {}
/**
* @return ARN of the AWS CloudTrail service account in the selected region.
*
*/
public String arn() {
return this.arn;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
public Optional region() {
return Optional.ofNullable(this.region);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetServiceAccountResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String arn;
private String id;
private @Nullable String region;
public Builder() {}
public Builder(GetServiceAccountResult defaults) {
Objects.requireNonNull(defaults);
this.arn = defaults.arn;
this.id = defaults.id;
this.region = defaults.region;
}
@CustomType.Setter
public Builder arn(String arn) {
if (arn == null) {
throw new MissingRequiredPropertyException("GetServiceAccountResult", "arn");
}
this.arn = arn;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetServiceAccountResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder region(@Nullable String region) {
this.region = region;
return this;
}
public GetServiceAccountResult build() {
final var _resultValue = new GetServiceAccountResult();
_resultValue.arn = arn;
_resultValue.id = id;
_resultValue.region = region;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy