com.pulumi.cloudflare.outputs.PagesProjectDeploymentConfigsProduction 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.cloudflare.outputs;
import com.pulumi.cloudflare.outputs.PagesProjectDeploymentConfigsProductionServiceBinding;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class PagesProjectDeploymentConfigsProduction {
private @Nullable Boolean alwaysUseLatestCompatibilityDate;
private @Nullable String compatibilityDate;
private @Nullable List compatibilityFlags;
private @Nullable Map d1Databases;
private @Nullable Map durableObjectNamespaces;
private @Nullable Map environmentVariables;
private @Nullable Boolean failOpen;
private @Nullable Map kvNamespaces;
private @Nullable Map r2Buckets;
private @Nullable List serviceBindings;
private @Nullable String usageModel;
private PagesProjectDeploymentConfigsProduction() {}
public Optional alwaysUseLatestCompatibilityDate() {
return Optional.ofNullable(this.alwaysUseLatestCompatibilityDate);
}
public Optional compatibilityDate() {
return Optional.ofNullable(this.compatibilityDate);
}
public List compatibilityFlags() {
return this.compatibilityFlags == null ? List.of() : this.compatibilityFlags;
}
public Map d1Databases() {
return this.d1Databases == null ? Map.of() : this.d1Databases;
}
public Map durableObjectNamespaces() {
return this.durableObjectNamespaces == null ? Map.of() : this.durableObjectNamespaces;
}
public Map environmentVariables() {
return this.environmentVariables == null ? Map.of() : this.environmentVariables;
}
public Optional failOpen() {
return Optional.ofNullable(this.failOpen);
}
public Map kvNamespaces() {
return this.kvNamespaces == null ? Map.of() : this.kvNamespaces;
}
public Map r2Buckets() {
return this.r2Buckets == null ? Map.of() : this.r2Buckets;
}
public List serviceBindings() {
return this.serviceBindings == null ? List.of() : this.serviceBindings;
}
public Optional usageModel() {
return Optional.ofNullable(this.usageModel);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PagesProjectDeploymentConfigsProduction defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean alwaysUseLatestCompatibilityDate;
private @Nullable String compatibilityDate;
private @Nullable List compatibilityFlags;
private @Nullable Map d1Databases;
private @Nullable Map durableObjectNamespaces;
private @Nullable Map environmentVariables;
private @Nullable Boolean failOpen;
private @Nullable Map kvNamespaces;
private @Nullable Map r2Buckets;
private @Nullable List serviceBindings;
private @Nullable String usageModel;
public Builder() {}
public Builder(PagesProjectDeploymentConfigsProduction defaults) {
Objects.requireNonNull(defaults);
this.alwaysUseLatestCompatibilityDate = defaults.alwaysUseLatestCompatibilityDate;
this.compatibilityDate = defaults.compatibilityDate;
this.compatibilityFlags = defaults.compatibilityFlags;
this.d1Databases = defaults.d1Databases;
this.durableObjectNamespaces = defaults.durableObjectNamespaces;
this.environmentVariables = defaults.environmentVariables;
this.failOpen = defaults.failOpen;
this.kvNamespaces = defaults.kvNamespaces;
this.r2Buckets = defaults.r2Buckets;
this.serviceBindings = defaults.serviceBindings;
this.usageModel = defaults.usageModel;
}
@CustomType.Setter
public Builder alwaysUseLatestCompatibilityDate(@Nullable Boolean alwaysUseLatestCompatibilityDate) {
this.alwaysUseLatestCompatibilityDate = alwaysUseLatestCompatibilityDate;
return this;
}
@CustomType.Setter
public Builder compatibilityDate(@Nullable String compatibilityDate) {
this.compatibilityDate = compatibilityDate;
return this;
}
@CustomType.Setter
public Builder compatibilityFlags(@Nullable List compatibilityFlags) {
this.compatibilityFlags = compatibilityFlags;
return this;
}
public Builder compatibilityFlags(String... compatibilityFlags) {
return compatibilityFlags(List.of(compatibilityFlags));
}
@CustomType.Setter
public Builder d1Databases(@Nullable Map d1Databases) {
this.d1Databases = d1Databases;
return this;
}
@CustomType.Setter
public Builder durableObjectNamespaces(@Nullable Map durableObjectNamespaces) {
this.durableObjectNamespaces = durableObjectNamespaces;
return this;
}
@CustomType.Setter
public Builder environmentVariables(@Nullable Map environmentVariables) {
this.environmentVariables = environmentVariables;
return this;
}
@CustomType.Setter
public Builder failOpen(@Nullable Boolean failOpen) {
this.failOpen = failOpen;
return this;
}
@CustomType.Setter
public Builder kvNamespaces(@Nullable Map kvNamespaces) {
this.kvNamespaces = kvNamespaces;
return this;
}
@CustomType.Setter
public Builder r2Buckets(@Nullable Map r2Buckets) {
this.r2Buckets = r2Buckets;
return this;
}
@CustomType.Setter
public Builder serviceBindings(@Nullable List serviceBindings) {
this.serviceBindings = serviceBindings;
return this;
}
public Builder serviceBindings(PagesProjectDeploymentConfigsProductionServiceBinding... serviceBindings) {
return serviceBindings(List.of(serviceBindings));
}
@CustomType.Setter
public Builder usageModel(@Nullable String usageModel) {
this.usageModel = usageModel;
return this;
}
public PagesProjectDeploymentConfigsProduction build() {
final var o = new PagesProjectDeploymentConfigsProduction();
o.alwaysUseLatestCompatibilityDate = alwaysUseLatestCompatibilityDate;
o.compatibilityDate = compatibilityDate;
o.compatibilityFlags = compatibilityFlags;
o.d1Databases = d1Databases;
o.durableObjectNamespaces = durableObjectNamespaces;
o.environmentVariables = environmentVariables;
o.failOpen = failOpen;
o.kvNamespaces = kvNamespaces;
o.r2Buckets = r2Buckets;
o.serviceBindings = serviceBindings;
o.usageModel = usageModel;
return o;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy