com.azure.resourcemanager.storage.fluent.models.BlobContainerInner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-storage Show documentation
Show all versions of azure-resourcemanager-storage Show documentation
This package contains Microsoft Azure Storage Management SDK.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.storage.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.storage.models.AzureEntityResource;
import com.azure.resourcemanager.storage.models.ImmutabilityPolicyProperties;
import com.azure.resourcemanager.storage.models.ImmutableStorageWithVersioning;
import com.azure.resourcemanager.storage.models.LeaseDuration;
import com.azure.resourcemanager.storage.models.LeaseState;
import com.azure.resourcemanager.storage.models.LeaseStatus;
import com.azure.resourcemanager.storage.models.LegalHoldProperties;
import com.azure.resourcemanager.storage.models.PublicAccess;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.Map;
/** Properties of the blob container, including Id, resource name, resource type, Etag. */
@Fluent
public final class BlobContainerInner extends AzureEntityResource {
/*
* Properties of the blob container.
*/
@JsonProperty(value = "properties")
private ContainerProperties innerContainerProperties;
/**
* Get the innerContainerProperties property: Properties of the blob container.
*
* @return the innerContainerProperties value.
*/
private ContainerProperties innerContainerProperties() {
return this.innerContainerProperties;
}
/**
* Get the version property: The version of the deleted blob container.
*
* @return the version value.
*/
public String version() {
return this.innerContainerProperties() == null ? null : this.innerContainerProperties().version();
}
/**
* Get the deleted property: Indicates whether the blob container was deleted.
*
* @return the deleted value.
*/
public Boolean deleted() {
return this.innerContainerProperties() == null ? null : this.innerContainerProperties().deleted();
}
/**
* Get the deletedTime property: Blob container deletion time.
*
* @return the deletedTime value.
*/
public OffsetDateTime deletedTime() {
return this.innerContainerProperties() == null ? null : this.innerContainerProperties().deletedTime();
}
/**
* Get the remainingRetentionDays property: Remaining retention days for soft deleted blob container.
*
* @return the remainingRetentionDays value.
*/
public Integer remainingRetentionDays() {
return this.innerContainerProperties() == null
? null
: this.innerContainerProperties().remainingRetentionDays();
}
/**
* Get the defaultEncryptionScope property: Default the container to use specified encryption scope for all writes.
*
* @return the defaultEncryptionScope value.
*/
public String defaultEncryptionScope() {
return this.innerContainerProperties() == null
? null
: this.innerContainerProperties().defaultEncryptionScope();
}
/**
* Set the defaultEncryptionScope property: Default the container to use specified encryption scope for all writes.
*
* @param defaultEncryptionScope the defaultEncryptionScope value to set.
* @return the BlobContainerInner object itself.
*/
public BlobContainerInner withDefaultEncryptionScope(String defaultEncryptionScope) {
if (this.innerContainerProperties() == null) {
this.innerContainerProperties = new ContainerProperties();
}
this.innerContainerProperties().withDefaultEncryptionScope(defaultEncryptionScope);
return this;
}
/**
* Get the denyEncryptionScopeOverride property: Block override of encryption scope from the container default.
*
* @return the denyEncryptionScopeOverride value.
*/
public Boolean denyEncryptionScopeOverride() {
return this.innerContainerProperties() == null
? null
: this.innerContainerProperties().denyEncryptionScopeOverride();
}
/**
* Set the denyEncryptionScopeOverride property: Block override of encryption scope from the container default.
*
* @param denyEncryptionScopeOverride the denyEncryptionScopeOverride value to set.
* @return the BlobContainerInner object itself.
*/
public BlobContainerInner withDenyEncryptionScopeOverride(Boolean denyEncryptionScopeOverride) {
if (this.innerContainerProperties() == null) {
this.innerContainerProperties = new ContainerProperties();
}
this.innerContainerProperties().withDenyEncryptionScopeOverride(denyEncryptionScopeOverride);
return this;
}
/**
* Get the publicAccess property: Specifies whether data in the container may be accessed publicly and the level of
* access.
*
* @return the publicAccess value.
*/
public PublicAccess publicAccess() {
return this.innerContainerProperties() == null ? null : this.innerContainerProperties().publicAccess();
}
/**
* Set the publicAccess property: Specifies whether data in the container may be accessed publicly and the level of
* access.
*
* @param publicAccess the publicAccess value to set.
* @return the BlobContainerInner object itself.
*/
public BlobContainerInner withPublicAccess(PublicAccess publicAccess) {
if (this.innerContainerProperties() == null) {
this.innerContainerProperties = new ContainerProperties();
}
this.innerContainerProperties().withPublicAccess(publicAccess);
return this;
}
/**
* Get the lastModifiedTime property: Returns the date and time the container was last modified.
*
* @return the lastModifiedTime value.
*/
public OffsetDateTime lastModifiedTime() {
return this.innerContainerProperties() == null ? null : this.innerContainerProperties().lastModifiedTime();
}
/**
* Get the leaseStatus property: The lease status of the container.
*
* @return the leaseStatus value.
*/
public LeaseStatus leaseStatus() {
return this.innerContainerProperties() == null ? null : this.innerContainerProperties().leaseStatus();
}
/**
* Get the leaseState property: Lease state of the container.
*
* @return the leaseState value.
*/
public LeaseState leaseState() {
return this.innerContainerProperties() == null ? null : this.innerContainerProperties().leaseState();
}
/**
* Get the leaseDuration property: Specifies whether the lease on a container is of infinite or fixed duration, only
* when the container is leased.
*
* @return the leaseDuration value.
*/
public LeaseDuration leaseDuration() {
return this.innerContainerProperties() == null ? null : this.innerContainerProperties().leaseDuration();
}
/**
* Get the metadata property: A name-value pair to associate with the container as metadata.
*
* @return the metadata value.
*/
public Map metadata() {
return this.innerContainerProperties() == null ? null : this.innerContainerProperties().metadata();
}
/**
* Set the metadata property: A name-value pair to associate with the container as metadata.
*
* @param metadata the metadata value to set.
* @return the BlobContainerInner object itself.
*/
public BlobContainerInner withMetadata(Map metadata) {
if (this.innerContainerProperties() == null) {
this.innerContainerProperties = new ContainerProperties();
}
this.innerContainerProperties().withMetadata(metadata);
return this;
}
/**
* Get the immutabilityPolicy property: The ImmutabilityPolicy property of the container.
*
* @return the immutabilityPolicy value.
*/
public ImmutabilityPolicyProperties immutabilityPolicy() {
return this.innerContainerProperties() == null ? null : this.innerContainerProperties().immutabilityPolicy();
}
/**
* Get the legalHold property: The LegalHold property of the container.
*
* @return the legalHold value.
*/
public LegalHoldProperties legalHold() {
return this.innerContainerProperties() == null ? null : this.innerContainerProperties().legalHold();
}
/**
* Get the hasLegalHold property: 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.
*
* @return the hasLegalHold value.
*/
public Boolean hasLegalHold() {
return this.innerContainerProperties() == null ? null : this.innerContainerProperties().hasLegalHold();
}
/**
* Get the hasImmutabilityPolicy property: The hasImmutabilityPolicy public property is set to true by SRP if
* ImmutabilityPolicy has been created for this container. The hasImmutabilityPolicy public property is set to false
* by SRP if ImmutabilityPolicy has not been created for this container.
*
* @return the hasImmutabilityPolicy value.
*/
public Boolean hasImmutabilityPolicy() {
return this.innerContainerProperties() == null ? null : this.innerContainerProperties().hasImmutabilityPolicy();
}
/**
* Get the immutableStorageWithVersioning property: The object level immutability property of the container. The
* property is immutable and can only be set to true at the container creation time. Existing containers must
* undergo a migration process.
*
* @return the immutableStorageWithVersioning value.
*/
public ImmutableStorageWithVersioning immutableStorageWithVersioning() {
return this.innerContainerProperties() == null
? null
: this.innerContainerProperties().immutableStorageWithVersioning();
}
/**
* Set the immutableStorageWithVersioning property: The object level immutability property of the container. The
* property is immutable and can only be set to true at the container creation time. Existing containers must
* undergo a migration process.
*
* @param immutableStorageWithVersioning the immutableStorageWithVersioning value to set.
* @return the BlobContainerInner object itself.
*/
public BlobContainerInner withImmutableStorageWithVersioning(
ImmutableStorageWithVersioning immutableStorageWithVersioning) {
if (this.innerContainerProperties() == null) {
this.innerContainerProperties = new ContainerProperties();
}
this.innerContainerProperties().withImmutableStorageWithVersioning(immutableStorageWithVersioning);
return this;
}
/**
* Get the enableNfsV3RootSquash property: Enable NFSv3 root squash on blob container.
*
* @return the enableNfsV3RootSquash value.
*/
public Boolean enableNfsV3RootSquash() {
return this.innerContainerProperties() == null ? null : this.innerContainerProperties().enableNfsV3RootSquash();
}
/**
* Set the enableNfsV3RootSquash property: Enable NFSv3 root squash on blob container.
*
* @param enableNfsV3RootSquash the enableNfsV3RootSquash value to set.
* @return the BlobContainerInner object itself.
*/
public BlobContainerInner withEnableNfsV3RootSquash(Boolean enableNfsV3RootSquash) {
if (this.innerContainerProperties() == null) {
this.innerContainerProperties = new ContainerProperties();
}
this.innerContainerProperties().withEnableNfsV3RootSquash(enableNfsV3RootSquash);
return this;
}
/**
* Get the enableNfsV3AllSquash property: Enable NFSv3 all squash on blob container.
*
* @return the enableNfsV3AllSquash value.
*/
public Boolean enableNfsV3AllSquash() {
return this.innerContainerProperties() == null ? null : this.innerContainerProperties().enableNfsV3AllSquash();
}
/**
* Set the enableNfsV3AllSquash property: Enable NFSv3 all squash on blob container.
*
* @param enableNfsV3AllSquash the enableNfsV3AllSquash value to set.
* @return the BlobContainerInner object itself.
*/
public BlobContainerInner withEnableNfsV3AllSquash(Boolean enableNfsV3AllSquash) {
if (this.innerContainerProperties() == null) {
this.innerContainerProperties = new ContainerProperties();
}
this.innerContainerProperties().withEnableNfsV3AllSquash(enableNfsV3AllSquash);
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
@Override
public void validate() {
super.validate();
if (innerContainerProperties() != null) {
innerContainerProperties().validate();
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy