com.pulumi.alicloud.cloudstoragegateway.outputs.GetStocksResult 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.cloudstoragegateway.outputs;
import com.pulumi.alicloud.cloudstoragegateway.outputs.GetStocksStock;
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 GetStocksResult {
private @Nullable String gatewayClass;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
private @Nullable String outputFile;
private List stocks;
private GetStocksResult() {}
public Optional gatewayClass() {
return Optional.ofNullable(this.gatewayClass);
}
/**
* @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 stocks() {
return this.stocks;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetStocksResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String gatewayClass;
private String id;
private @Nullable String outputFile;
private List stocks;
public Builder() {}
public Builder(GetStocksResult defaults) {
Objects.requireNonNull(defaults);
this.gatewayClass = defaults.gatewayClass;
this.id = defaults.id;
this.outputFile = defaults.outputFile;
this.stocks = defaults.stocks;
}
@CustomType.Setter
public Builder gatewayClass(@Nullable String gatewayClass) {
this.gatewayClass = gatewayClass;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetStocksResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder outputFile(@Nullable String outputFile) {
this.outputFile = outputFile;
return this;
}
@CustomType.Setter
public Builder stocks(List stocks) {
if (stocks == null) {
throw new MissingRequiredPropertyException("GetStocksResult", "stocks");
}
this.stocks = stocks;
return this;
}
public Builder stocks(GetStocksStock... stocks) {
return stocks(List.of(stocks));
}
public GetStocksResult build() {
final var _resultValue = new GetStocksResult();
_resultValue.gatewayClass = gatewayClass;
_resultValue.id = id;
_resultValue.outputFile = outputFile;
_resultValue.stocks = stocks;
return _resultValue;
}
}
}