com.pulumi.azurenative.app.outputs.ConfigurationResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure 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.azurenative.app.outputs;
import com.pulumi.azurenative.app.outputs.DaprResponse;
import com.pulumi.azurenative.app.outputs.IngressResponse;
import com.pulumi.azurenative.app.outputs.RegistryCredentialsResponse;
import com.pulumi.azurenative.app.outputs.SecretResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ConfigurationResponse {
/**
* @return ActiveRevisionsMode controls how active revisions are handled for the Container app:
* <list><item>Multiple: multiple revisions can be active.</item><item>Single: Only one revision can be active at a time. Revision weights can not be used in this mode. If no value if provided, this is the default.</item></list>
*
*/
private @Nullable String activeRevisionsMode;
/**
* @return Dapr configuration for the Container App.
*
*/
private @Nullable DaprResponse dapr;
/**
* @return Ingress configurations.
*
*/
private @Nullable IngressResponse ingress;
/**
* @return Optional. Max inactive revisions a Container App can have.
*
*/
private @Nullable Integer maxInactiveRevisions;
/**
* @return Collection of private container registry credentials for containers used by the Container app
*
*/
private @Nullable List registries;
/**
* @return Collection of secrets used by a Container app
*
*/
private @Nullable List secrets;
private ConfigurationResponse() {}
/**
* @return ActiveRevisionsMode controls how active revisions are handled for the Container app:
* <list><item>Multiple: multiple revisions can be active.</item><item>Single: Only one revision can be active at a time. Revision weights can not be used in this mode. If no value if provided, this is the default.</item></list>
*
*/
public Optional activeRevisionsMode() {
return Optional.ofNullable(this.activeRevisionsMode);
}
/**
* @return Dapr configuration for the Container App.
*
*/
public Optional dapr() {
return Optional.ofNullable(this.dapr);
}
/**
* @return Ingress configurations.
*
*/
public Optional ingress() {
return Optional.ofNullable(this.ingress);
}
/**
* @return Optional. Max inactive revisions a Container App can have.
*
*/
public Optional maxInactiveRevisions() {
return Optional.ofNullable(this.maxInactiveRevisions);
}
/**
* @return Collection of private container registry credentials for containers used by the Container app
*
*/
public List registries() {
return this.registries == null ? List.of() : this.registries;
}
/**
* @return Collection of secrets used by a Container app
*
*/
public List secrets() {
return this.secrets == null ? List.of() : this.secrets;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ConfigurationResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String activeRevisionsMode;
private @Nullable DaprResponse dapr;
private @Nullable IngressResponse ingress;
private @Nullable Integer maxInactiveRevisions;
private @Nullable List registries;
private @Nullable List secrets;
public Builder() {}
public Builder(ConfigurationResponse defaults) {
Objects.requireNonNull(defaults);
this.activeRevisionsMode = defaults.activeRevisionsMode;
this.dapr = defaults.dapr;
this.ingress = defaults.ingress;
this.maxInactiveRevisions = defaults.maxInactiveRevisions;
this.registries = defaults.registries;
this.secrets = defaults.secrets;
}
@CustomType.Setter
public Builder activeRevisionsMode(@Nullable String activeRevisionsMode) {
this.activeRevisionsMode = activeRevisionsMode;
return this;
}
@CustomType.Setter
public Builder dapr(@Nullable DaprResponse dapr) {
this.dapr = dapr;
return this;
}
@CustomType.Setter
public Builder ingress(@Nullable IngressResponse ingress) {
this.ingress = ingress;
return this;
}
@CustomType.Setter
public Builder maxInactiveRevisions(@Nullable Integer maxInactiveRevisions) {
this.maxInactiveRevisions = maxInactiveRevisions;
return this;
}
@CustomType.Setter
public Builder registries(@Nullable List registries) {
this.registries = registries;
return this;
}
public Builder registries(RegistryCredentialsResponse... registries) {
return registries(List.of(registries));
}
@CustomType.Setter
public Builder secrets(@Nullable List secrets) {
this.secrets = secrets;
return this;
}
public Builder secrets(SecretResponse... secrets) {
return secrets(List.of(secrets));
}
public ConfigurationResponse build() {
final var _resultValue = new ConfigurationResponse();
_resultValue.activeRevisionsMode = activeRevisionsMode;
_resultValue.dapr = dapr;
_resultValue.ingress = ingress;
_resultValue.maxInactiveRevisions = maxInactiveRevisions;
_resultValue.registries = registries;
_resultValue.secrets = secrets;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy