All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.docker.outputs.ServiceConvergeConfig Maven / Gradle / Ivy

There is a newer version: 4.7.0-alpha.1705607229+34a07055
Show 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.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;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy