com.pulumi.docker.outputs.ServiceConvergeConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docker Show documentation
Show all versions of docker Show documentation
A Pulumi package for interacting with Docker in Pulumi programs
// *** 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.docker.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ServiceConvergeConfig {
/**
* @return The interval to check if the desired state is reached `(ms|s)`. Defaults to `7s`.
*
*/
private @Nullable String delay;
/**
* @return The timeout of the service to reach the desired state `(s|m)`. Defaults to `3m`
*
*/
private @Nullable String timeout;
private ServiceConvergeConfig() {}
/**
* @return The interval to check if the desired state is reached `(ms|s)`. Defaults to `7s`.
*
*/
public Optional delay() {
return Optional.ofNullable(this.delay);
}
/**
* @return The timeout of the service to reach the desired state `(s|m)`. Defaults to `3m`
*
*/
public Optional timeout() {
return Optional.ofNullable(this.timeout);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ServiceConvergeConfig defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String delay;
private @Nullable String timeout;
public Builder() {}
public Builder(ServiceConvergeConfig defaults) {
Objects.requireNonNull(defaults);
this.delay = defaults.delay;
this.timeout = defaults.timeout;
}
@CustomType.Setter
public Builder delay(@Nullable String delay) {
this.delay = delay;
return this;
}
@CustomType.Setter
public Builder timeout(@Nullable String timeout) {
this.timeout = timeout;
return this;
}
public ServiceConvergeConfig build() {
final var _resultValue = new ServiceConvergeConfig();
_resultValue.delay = delay;
_resultValue.timeout = timeout;
return _resultValue;
}
}
}