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

com.pulumi.azurenative.storage.outputs.ProtectedAppendWritesHistoryResponse Maven / Gradle / Ivy

// *** 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.storage.outputs;

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

@CustomType
public final class ProtectedAppendWritesHistoryResponse {
    /**
     * @return When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining legal hold protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted.
     * 
     */
    private @Nullable Boolean allowProtectedAppendWritesAll;
    /**
     * @return Returns the date and time the tag was added.
     * 
     */
    private String timestamp;

    private ProtectedAppendWritesHistoryResponse() {}
    /**
     * @return When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining legal hold protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted.
     * 
     */
    public Optional allowProtectedAppendWritesAll() {
        return Optional.ofNullable(this.allowProtectedAppendWritesAll);
    }
    /**
     * @return Returns the date and time the tag was added.
     * 
     */
    public String timestamp() {
        return this.timestamp;
    }

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

    public static Builder builder(ProtectedAppendWritesHistoryResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Boolean allowProtectedAppendWritesAll;
        private String timestamp;
        public Builder() {}
        public Builder(ProtectedAppendWritesHistoryResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.allowProtectedAppendWritesAll = defaults.allowProtectedAppendWritesAll;
    	      this.timestamp = defaults.timestamp;
        }

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

            this.allowProtectedAppendWritesAll = allowProtectedAppendWritesAll;
            return this;
        }
        @CustomType.Setter
        public Builder timestamp(String timestamp) {
            if (timestamp == null) {
              throw new MissingRequiredPropertyException("ProtectedAppendWritesHistoryResponse", "timestamp");
            }
            this.timestamp = timestamp;
            return this;
        }
        public ProtectedAppendWritesHistoryResponse build() {
            final var _resultValue = new ProtectedAppendWritesHistoryResponse();
            _resultValue.allowProtectedAppendWritesAll = allowProtectedAppendWritesAll;
            _resultValue.timestamp = timestamp;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy