com.azure.storage.blob.models.BlobContainerItemProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-storage-blob Show documentation
Show all versions of azure-storage-blob Show documentation
This module contains client library for Microsoft Azure Blob Storage.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.storage.blob.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.DateTimeRfc1123;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import java.time.OffsetDateTime;
/** Properties of a container. */
@JacksonXmlRootElement(localName = "BlobContainerItemProperties")
@Fluent
public final class BlobContainerItemProperties {
/*
* The Last-Modified property.
*/
@JsonProperty(value = "Last-Modified", required = true)
private DateTimeRfc1123 lastModified;
/*
* The Etag property.
*/
@JsonProperty(value = "Etag", required = true)
private String eTag;
/*
* The LeaseStatus property.
*/
@JsonProperty(value = "LeaseStatus")
private LeaseStatusType leaseStatus;
/*
* The LeaseState property.
*/
@JsonProperty(value = "LeaseState")
private LeaseStateType leaseState;
/*
* The LeaseDuration property.
*/
@JsonProperty(value = "LeaseDuration")
private LeaseDurationType leaseDuration;
/*
* The PublicAccess property.
*/
@JsonProperty(value = "PublicAccess")
private PublicAccessType publicAccess;
/*
* The HasImmutabilityPolicy property.
*/
@JsonProperty(value = "HasImmutabilityPolicy")
private Boolean hasImmutabilityPolicy;
/*
* The HasLegalHold property.
*/
@JsonProperty(value = "HasLegalHold")
private Boolean hasLegalHold;
/*
* The DefaultEncryptionScope property.
*/
@JsonProperty(value = "DefaultEncryptionScope")
private String defaultEncryptionScope;
/*
* The DenyEncryptionScopeOverride property.
*/
@JsonProperty(value = "DenyEncryptionScopeOverride")
private Boolean encryptionScopeOverridePrevented;
/*
* The DeletedTime property.
*/
@JsonProperty(value = "DeletedTime")
private DateTimeRfc1123 deletedTime;
/*
* The RemainingRetentionDays property.
*/
@JsonProperty(value = "RemainingRetentionDays")
private Integer remainingRetentionDays;
/*
* Indicates if version level worm is enabled on this container.
*/
@JsonProperty(value = "ImmutableStorageWithVersioningEnabled")
private Boolean isImmutableStorageWithVersioningEnabled;
/** Creates an instance of BlobContainerItemProperties class. */
public BlobContainerItemProperties() {}
/**
* Get the lastModified property: The Last-Modified property.
*
* @return the lastModified value.
*/
public OffsetDateTime getLastModified() {
if (this.lastModified == null) {
return null;
}
return this.lastModified.getDateTime();
}
/**
* Set the lastModified property: The Last-Modified property.
*
* @param lastModified the lastModified value to set.
* @return the BlobContainerItemProperties object itself.
*/
public BlobContainerItemProperties setLastModified(OffsetDateTime lastModified) {
if (lastModified == null) {
this.lastModified = null;
} else {
this.lastModified = new DateTimeRfc1123(lastModified);
}
return this;
}
/**
* Get the eTag property: The Etag property.
*
* @return the eTag value.
*/
public String getETag() {
return this.eTag;
}
/**
* Set the eTag property: The Etag property.
*
* @param eTag the eTag value to set.
* @return the BlobContainerItemProperties object itself.
*/
public BlobContainerItemProperties setETag(String eTag) {
this.eTag = eTag;
return this;
}
/**
* Get the leaseStatus property: The LeaseStatus property.
*
* @return the leaseStatus value.
*/
public LeaseStatusType getLeaseStatus() {
return this.leaseStatus;
}
/**
* Set the leaseStatus property: The LeaseStatus property.
*
* @param leaseStatus the leaseStatus value to set.
* @return the BlobContainerItemProperties object itself.
*/
public BlobContainerItemProperties setLeaseStatus(LeaseStatusType leaseStatus) {
this.leaseStatus = leaseStatus;
return this;
}
/**
* Get the leaseState property: The LeaseState property.
*
* @return the leaseState value.
*/
public LeaseStateType getLeaseState() {
return this.leaseState;
}
/**
* Set the leaseState property: The LeaseState property.
*
* @param leaseState the leaseState value to set.
* @return the BlobContainerItemProperties object itself.
*/
public BlobContainerItemProperties setLeaseState(LeaseStateType leaseState) {
this.leaseState = leaseState;
return this;
}
/**
* Get the leaseDuration property: The LeaseDuration property.
*
* @return the leaseDuration value.
*/
public LeaseDurationType getLeaseDuration() {
return this.leaseDuration;
}
/**
* Set the leaseDuration property: The LeaseDuration property.
*
* @param leaseDuration the leaseDuration value to set.
* @return the BlobContainerItemProperties object itself.
*/
public BlobContainerItemProperties setLeaseDuration(LeaseDurationType leaseDuration) {
this.leaseDuration = leaseDuration;
return this;
}
/**
* Get the publicAccess property: The PublicAccess property.
*
* @return the publicAccess value.
*/
public PublicAccessType getPublicAccess() {
return this.publicAccess;
}
/**
* Set the publicAccess property: The PublicAccess property.
*
* @param publicAccess the publicAccess value to set.
* @return the BlobContainerItemProperties object itself.
*/
public BlobContainerItemProperties setPublicAccess(PublicAccessType publicAccess) {
this.publicAccess = publicAccess;
return this;
}
/**
* Get the hasImmutabilityPolicy property: The HasImmutabilityPolicy property.
*
* @return the hasImmutabilityPolicy value.
*/
public Boolean isHasImmutabilityPolicy() {
return this.hasImmutabilityPolicy;
}
/**
* Set the hasImmutabilityPolicy property: The HasImmutabilityPolicy property.
*
* @param hasImmutabilityPolicy the hasImmutabilityPolicy value to set.
* @return the BlobContainerItemProperties object itself.
*/
public BlobContainerItemProperties setHasImmutabilityPolicy(Boolean hasImmutabilityPolicy) {
this.hasImmutabilityPolicy = hasImmutabilityPolicy;
return this;
}
/**
* Get the hasLegalHold property: The HasLegalHold property.
*
* @return the hasLegalHold value.
*/
public Boolean isHasLegalHold() {
return this.hasLegalHold;
}
/**
* Set the hasLegalHold property: The HasLegalHold property.
*
* @param hasLegalHold the hasLegalHold value to set.
* @return the BlobContainerItemProperties object itself.
*/
public BlobContainerItemProperties setHasLegalHold(Boolean hasLegalHold) {
this.hasLegalHold = hasLegalHold;
return this;
}
/**
* Get the defaultEncryptionScope property: The DefaultEncryptionScope property.
*
* @return the defaultEncryptionScope value.
*/
public String getDefaultEncryptionScope() {
return this.defaultEncryptionScope;
}
/**
* Set the defaultEncryptionScope property: The DefaultEncryptionScope property.
*
* @param defaultEncryptionScope the defaultEncryptionScope value to set.
* @return the BlobContainerItemProperties object itself.
*/
public BlobContainerItemProperties setDefaultEncryptionScope(String defaultEncryptionScope) {
this.defaultEncryptionScope = defaultEncryptionScope;
return this;
}
/**
* Get the encryptionScopeOverridePrevented property: The DenyEncryptionScopeOverride property.
*
* @return the encryptionScopeOverridePrevented value.
*/
public boolean isEncryptionScopeOverridePrevented() {
Boolean returnValue = this.encryptionScopeOverridePrevented;
return Boolean.TRUE.equals(returnValue);
}
/**
* Set the encryptionScopeOverridePrevented property: The DenyEncryptionScopeOverride property.
*
* @param encryptionScopeOverridePrevented the encryptionScopeOverridePrevented value to set.
* @return the BlobContainerItemProperties object itself.
*/
public BlobContainerItemProperties setEncryptionScopeOverridePrevented(boolean encryptionScopeOverridePrevented) {
this.encryptionScopeOverridePrevented = encryptionScopeOverridePrevented;
return this;
}
/**
* Get the deletedTime property: The DeletedTime property.
*
* @return the deletedTime value.
*/
public OffsetDateTime getDeletedTime() {
if (this.deletedTime == null) {
return null;
}
return this.deletedTime.getDateTime();
}
/**
* Set the deletedTime property: The DeletedTime property.
*
* @param deletedTime the deletedTime value to set.
* @return the BlobContainerItemProperties object itself.
*/
public BlobContainerItemProperties setDeletedTime(OffsetDateTime deletedTime) {
if (deletedTime == null) {
this.deletedTime = null;
} else {
this.deletedTime = new DateTimeRfc1123(deletedTime);
}
return this;
}
/**
* Get the remainingRetentionDays property: The RemainingRetentionDays property.
*
* @return the remainingRetentionDays value.
*/
public Integer getRemainingRetentionDays() {
return this.remainingRetentionDays;
}
/**
* Set the remainingRetentionDays property: The RemainingRetentionDays property.
*
* @param remainingRetentionDays the remainingRetentionDays value to set.
* @return the BlobContainerItemProperties object itself.
*/
public BlobContainerItemProperties setRemainingRetentionDays(Integer remainingRetentionDays) {
this.remainingRetentionDays = remainingRetentionDays;
return this;
}
/**
* Get the isImmutableStorageWithVersioningEnabled property: Indicates if version level worm is enabled on this
* container.
*
* @return the isImmutableStorageWithVersioningEnabled value.
*/
public Boolean isImmutableStorageWithVersioningEnabled() {
return this.isImmutableStorageWithVersioningEnabled;
}
/**
* Set the isImmutableStorageWithVersioningEnabled property: Indicates if version level worm is enabled on this
* container.
*
* @param isImmutableStorageWithVersioningEnabled the isImmutableStorageWithVersioningEnabled value to set.
* @return the BlobContainerItemProperties object itself.
*/
public BlobContainerItemProperties setImmutableStorageWithVersioningEnabled(
Boolean isImmutableStorageWithVersioningEnabled) {
this.isImmutableStorageWithVersioningEnabled = isImmutableStorageWithVersioningEnabled;
return this;
}
}