
com.pulumi.azurenative.storage.outputs.LegalHoldPropertiesResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.azurenative.storage.outputs.ProtectedAppendWritesHistoryResponse;
import com.pulumi.azurenative.storage.outputs.TagPropertyResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class LegalHoldPropertiesResponse {
/**
* @return The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account.
*
*/
private Boolean hasLegalHold;
/**
* @return Protected append blob writes history.
*
*/
private @Nullable ProtectedAppendWritesHistoryResponse protectedAppendWritesHistory;
/**
* @return The list of LegalHold tags of a blob container.
*
*/
private @Nullable List tags;
private LegalHoldPropertiesResponse() {}
/**
* @return The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account.
*
*/
public Boolean hasLegalHold() {
return this.hasLegalHold;
}
/**
* @return Protected append blob writes history.
*
*/
public Optional protectedAppendWritesHistory() {
return Optional.ofNullable(this.protectedAppendWritesHistory);
}
/**
* @return The list of LegalHold tags of a blob container.
*
*/
public List tags() {
return this.tags == null ? List.of() : this.tags;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(LegalHoldPropertiesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Boolean hasLegalHold;
private @Nullable ProtectedAppendWritesHistoryResponse protectedAppendWritesHistory;
private @Nullable List tags;
public Builder() {}
public Builder(LegalHoldPropertiesResponse defaults) {
Objects.requireNonNull(defaults);
this.hasLegalHold = defaults.hasLegalHold;
this.protectedAppendWritesHistory = defaults.protectedAppendWritesHistory;
this.tags = defaults.tags;
}
@CustomType.Setter
public Builder hasLegalHold(Boolean hasLegalHold) {
if (hasLegalHold == null) {
throw new MissingRequiredPropertyException("LegalHoldPropertiesResponse", "hasLegalHold");
}
this.hasLegalHold = hasLegalHold;
return this;
}
@CustomType.Setter
public Builder protectedAppendWritesHistory(@Nullable ProtectedAppendWritesHistoryResponse protectedAppendWritesHistory) {
this.protectedAppendWritesHistory = protectedAppendWritesHistory;
return this;
}
@CustomType.Setter
public Builder tags(@Nullable List tags) {
this.tags = tags;
return this;
}
public Builder tags(TagPropertyResponse... tags) {
return tags(List.of(tags));
}
public LegalHoldPropertiesResponse build() {
final var _resultValue = new LegalHoldPropertiesResponse();
_resultValue.hasLegalHold = hasLegalHold;
_resultValue.protectedAppendWritesHistory = protectedAppendWritesHistory;
_resultValue.tags = tags;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy