com.pulumi.aws.redshift.outputs.GetDataSharesResult 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.
The newest version!
// *** 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.redshift.outputs;
import com.pulumi.aws.redshift.outputs.GetDataSharesDataShare;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class GetDataSharesResult {
/**
* @return An array of all data shares in the current region. See `data_shares` below.
*
*/
private @Nullable List dataShares;
/**
* @return AWS region.
*
*/
private String id;
private GetDataSharesResult() {}
/**
* @return An array of all data shares in the current region. See `data_shares` below.
*
*/
public List dataShares() {
return this.dataShares == null ? List.of() : this.dataShares;
}
/**
* @return AWS region.
*
*/
public String id() {
return this.id;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetDataSharesResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List dataShares;
private String id;
public Builder() {}
public Builder(GetDataSharesResult defaults) {
Objects.requireNonNull(defaults);
this.dataShares = defaults.dataShares;
this.id = defaults.id;
}
@CustomType.Setter
public Builder dataShares(@Nullable List dataShares) {
this.dataShares = dataShares;
return this;
}
public Builder dataShares(GetDataSharesDataShare... dataShares) {
return dataShares(List.of(dataShares));
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetDataSharesResult", "id");
}
this.id = id;
return this;
}
public GetDataSharesResult build() {
final var _resultValue = new GetDataSharesResult();
_resultValue.dataShares = dataShares;
_resultValue.id = id;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy