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

com.pulumi.azurenative.dataprotection.outputs.SoftDeleteSettingsResponse Maven / Gradle / Ivy

There is a newer version: 2.72.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.dataprotection.outputs;

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

@CustomType
public final class SoftDeleteSettingsResponse {
    /**
     * @return Soft delete retention duration
     * 
     */
    private @Nullable Double retentionDurationInDays;
    /**
     * @return State of soft delete
     * 
     */
    private @Nullable String state;

    private SoftDeleteSettingsResponse() {}
    /**
     * @return Soft delete retention duration
     * 
     */
    public Optional retentionDurationInDays() {
        return Optional.ofNullable(this.retentionDurationInDays);
    }
    /**
     * @return State of soft delete
     * 
     */
    public Optional state() {
        return Optional.ofNullable(this.state);
    }

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

    public static Builder builder(SoftDeleteSettingsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Double retentionDurationInDays;
        private @Nullable String state;
        public Builder() {}
        public Builder(SoftDeleteSettingsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.retentionDurationInDays = defaults.retentionDurationInDays;
    	      this.state = defaults.state;
        }

        @CustomType.Setter
        public Builder retentionDurationInDays(@Nullable Double retentionDurationInDays) {

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

            this.state = state;
            return this;
        }
        public SoftDeleteSettingsResponse build() {
            final var _resultValue = new SoftDeleteSettingsResponse();
            _resultValue.retentionDurationInDays = retentionDurationInDays;
            _resultValue.state = state;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy