com.pulumi.alicloud.mongodb.outputs.GetAuditPoliciesResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud 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.alicloud.mongodb.outputs;
import com.pulumi.alicloud.mongodb.outputs.GetAuditPoliciesPolicy;
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 GetAuditPoliciesResult {
private String dbInstanceId;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
private @Nullable String outputFile;
private List policies;
private GetAuditPoliciesResult() {}
public String dbInstanceId() {
return this.dbInstanceId;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
public Optional outputFile() {
return Optional.ofNullable(this.outputFile);
}
public List policies() {
return this.policies;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetAuditPoliciesResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String dbInstanceId;
private String id;
private @Nullable String outputFile;
private List policies;
public Builder() {}
public Builder(GetAuditPoliciesResult defaults) {
Objects.requireNonNull(defaults);
this.dbInstanceId = defaults.dbInstanceId;
this.id = defaults.id;
this.outputFile = defaults.outputFile;
this.policies = defaults.policies;
}
@CustomType.Setter
public Builder dbInstanceId(String dbInstanceId) {
if (dbInstanceId == null) {
throw new MissingRequiredPropertyException("GetAuditPoliciesResult", "dbInstanceId");
}
this.dbInstanceId = dbInstanceId;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetAuditPoliciesResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder outputFile(@Nullable String outputFile) {
this.outputFile = outputFile;
return this;
}
@CustomType.Setter
public Builder policies(List policies) {
if (policies == null) {
throw new MissingRequiredPropertyException("GetAuditPoliciesResult", "policies");
}
this.policies = policies;
return this;
}
public Builder policies(GetAuditPoliciesPolicy... policies) {
return policies(List.of(policies));
}
public GetAuditPoliciesResult build() {
final var _resultValue = new GetAuditPoliciesResult();
_resultValue.dbInstanceId = dbInstanceId;
_resultValue.id = id;
_resultValue.outputFile = outputFile;
_resultValue.policies = policies;
return _resultValue;
}
}
}