
com.pulumi.azurenative.awsconnector.outputs.AwsRdsDBSnapshotAttributesResultPropertiesResponse 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.azurenative.awsconnector.outputs;
import com.pulumi.azurenative.awsconnector.outputs.DBSnapshotAttributeResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class AwsRdsDBSnapshotAttributesResultPropertiesResponse {
/**
* @return <p>The list of attributes and values for the manual DB snapshot.</p>
*
*/
private @Nullable List dbSnapshotAttributes;
/**
* @return <p>The identifier of the manual DB snapshot that the attributes apply to.</p>
*
*/
private @Nullable String dbSnapshotIdentifier;
private AwsRdsDBSnapshotAttributesResultPropertiesResponse() {}
/**
* @return <p>The list of attributes and values for the manual DB snapshot.</p>
*
*/
public List dbSnapshotAttributes() {
return this.dbSnapshotAttributes == null ? List.of() : this.dbSnapshotAttributes;
}
/**
* @return <p>The identifier of the manual DB snapshot that the attributes apply to.</p>
*
*/
public Optional dbSnapshotIdentifier() {
return Optional.ofNullable(this.dbSnapshotIdentifier);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AwsRdsDBSnapshotAttributesResultPropertiesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List dbSnapshotAttributes;
private @Nullable String dbSnapshotIdentifier;
public Builder() {}
public Builder(AwsRdsDBSnapshotAttributesResultPropertiesResponse defaults) {
Objects.requireNonNull(defaults);
this.dbSnapshotAttributes = defaults.dbSnapshotAttributes;
this.dbSnapshotIdentifier = defaults.dbSnapshotIdentifier;
}
@CustomType.Setter
public Builder dbSnapshotAttributes(@Nullable List dbSnapshotAttributes) {
this.dbSnapshotAttributes = dbSnapshotAttributes;
return this;
}
public Builder dbSnapshotAttributes(DBSnapshotAttributeResponse... dbSnapshotAttributes) {
return dbSnapshotAttributes(List.of(dbSnapshotAttributes));
}
@CustomType.Setter
public Builder dbSnapshotIdentifier(@Nullable String dbSnapshotIdentifier) {
this.dbSnapshotIdentifier = dbSnapshotIdentifier;
return this;
}
public AwsRdsDBSnapshotAttributesResultPropertiesResponse build() {
final var _resultValue = new AwsRdsDBSnapshotAttributesResultPropertiesResponse();
_resultValue.dbSnapshotAttributes = dbSnapshotAttributes;
_resultValue.dbSnapshotIdentifier = dbSnapshotIdentifier;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy