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

com.pulumi.azurenative.cache.outputs.PersistenceResponse Maven / Gradle / Ivy

There is a newer version: 2.78.0
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.azurenative.cache.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class PersistenceResponse {
    /**
     * @return Sets whether AOF is enabled.
     * 
     */
    private @Nullable Boolean aofEnabled;
    /**
     * @return Sets the frequency at which data is written to disk.
     * 
     */
    private @Nullable String aofFrequency;
    /**
     * @return Sets whether RDB is enabled.
     * 
     */
    private @Nullable Boolean rdbEnabled;
    /**
     * @return Sets the frequency at which a snapshot of the database is created.
     * 
     */
    private @Nullable String rdbFrequency;

    private PersistenceResponse() {}
    /**
     * @return Sets whether AOF is enabled.
     * 
     */
    public Optional aofEnabled() {
        return Optional.ofNullable(this.aofEnabled);
    }
    /**
     * @return Sets the frequency at which data is written to disk.
     * 
     */
    public Optional aofFrequency() {
        return Optional.ofNullable(this.aofFrequency);
    }
    /**
     * @return Sets whether RDB is enabled.
     * 
     */
    public Optional rdbEnabled() {
        return Optional.ofNullable(this.rdbEnabled);
    }
    /**
     * @return Sets the frequency at which a snapshot of the database is created.
     * 
     */
    public Optional rdbFrequency() {
        return Optional.ofNullable(this.rdbFrequency);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(PersistenceResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Boolean aofEnabled;
        private @Nullable String aofFrequency;
        private @Nullable Boolean rdbEnabled;
        private @Nullable String rdbFrequency;
        public Builder() {}
        public Builder(PersistenceResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.aofEnabled = defaults.aofEnabled;
    	      this.aofFrequency = defaults.aofFrequency;
    	      this.rdbEnabled = defaults.rdbEnabled;
    	      this.rdbFrequency = defaults.rdbFrequency;
        }

        @CustomType.Setter
        public Builder aofEnabled(@Nullable Boolean aofEnabled) {

            this.aofEnabled = aofEnabled;
            return this;
        }
        @CustomType.Setter
        public Builder aofFrequency(@Nullable String aofFrequency) {

            this.aofFrequency = aofFrequency;
            return this;
        }
        @CustomType.Setter
        public Builder rdbEnabled(@Nullable Boolean rdbEnabled) {

            this.rdbEnabled = rdbEnabled;
            return this;
        }
        @CustomType.Setter
        public Builder rdbFrequency(@Nullable String rdbFrequency) {

            this.rdbFrequency = rdbFrequency;
            return this;
        }
        public PersistenceResponse build() {
            final var _resultValue = new PersistenceResponse();
            _resultValue.aofEnabled = aofEnabled;
            _resultValue.aofFrequency = aofFrequency;
            _resultValue.rdbEnabled = rdbEnabled;
            _resultValue.rdbFrequency = rdbFrequency;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy