Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.storage.implementation; import org.joda.time.DateTime; import com.microsoft.azure.management.storage.PublicAccess; import com.microsoft.azure.management.storage.LeaseStatus; import com.microsoft.azure.management.storage.LeaseState; import com.microsoft.azure.management.storage.LeaseDuration; import java.util.Map; import com.microsoft.azure.management.storage.ImmutabilityPolicyProperties; import com.microsoft.azure.management.storage.LegalHoldProperties; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.management.storage.AzureEntityResource;
Properties of the blob container, including Id, resource name, resource type, Etag.
/** * Properties of the blob container, including Id, resource name, resource * type, Etag. */
@JsonFlatten public class BlobContainerInner extends AzureEntityResource {
The version of the deleted blob container.
/** * The version of the deleted blob container. */
@JsonProperty(value = "properties.version", access = JsonProperty.Access.WRITE_ONLY) private String version;
Indicates whether the blob container was deleted.
/** * Indicates whether the blob container was deleted. */
@JsonProperty(value = "properties.deleted", access = JsonProperty.Access.WRITE_ONLY) private Boolean deleted;
Blob container deletion time.
/** * Blob container deletion time. */
@JsonProperty(value = "properties.deletedTime", access = JsonProperty.Access.WRITE_ONLY) private DateTime deletedTime;
Remaining retention days for soft deleted blob container.
/** * Remaining retention days for soft deleted blob container. */
@JsonProperty(value = "properties.remainingRetentionDays", access = JsonProperty.Access.WRITE_ONLY) private Integer remainingRetentionDays;
Default the container to use specified encryption scope for all writes.
/** * Default the container to use specified encryption scope for all writes. */
@JsonProperty(value = "properties.defaultEncryptionScope") private String defaultEncryptionScope;
Block override of encryption scope from the container default.
/** * Block override of encryption scope from the container default. */
@JsonProperty(value = "properties.denyEncryptionScopeOverride") private Boolean denyEncryptionScopeOverride;
Specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'Container', 'Blob', 'None'.
/** * Specifies whether data in the container may be accessed publicly and the * level of access. Possible values include: 'Container', 'Blob', 'None'. */
@JsonProperty(value = "properties.publicAccess") private PublicAccess publicAccess;
Returns the date and time the container was last modified.
/** * Returns the date and time the container was last modified. */
@JsonProperty(value = "properties.lastModifiedTime", access = JsonProperty.Access.WRITE_ONLY) private DateTime lastModifiedTime;
The lease status of the container. Possible values include: 'Locked', 'Unlocked'.
/** * The lease status of the container. Possible values include: 'Locked', * 'Unlocked'. */
@JsonProperty(value = "properties.leaseStatus", access = JsonProperty.Access.WRITE_ONLY) private LeaseStatus leaseStatus;
Lease state of the container. Possible values include: 'Available', 'Leased', 'Expired', 'Breaking', 'Broken'.
/** * Lease state of the container. Possible values include: 'Available', * 'Leased', 'Expired', 'Breaking', 'Broken'. */
@JsonProperty(value = "properties.leaseState", access = JsonProperty.Access.WRITE_ONLY) private LeaseState leaseState;
Specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased. Possible values include: 'Infinite', 'Fixed'.
/** * Specifies whether the lease on a container is of infinite or fixed * duration, only when the container is leased. Possible values include: * 'Infinite', 'Fixed'. */
@JsonProperty(value = "properties.leaseDuration", access = JsonProperty.Access.WRITE_ONLY) private LeaseDuration leaseDuration;
A name-value pair to associate with the container as metadata.
/** * A name-value pair to associate with the container as metadata. */
@JsonProperty(value = "properties.metadata") private Map<String, String> metadata;
The ImmutabilityPolicy property of the container.
/** * The ImmutabilityPolicy property of the container. */
@JsonProperty(value = "properties.immutabilityPolicy", access = JsonProperty.Access.WRITE_ONLY) private ImmutabilityPolicyProperties immutabilityPolicy;
The LegalHold property of the container.
/** * The LegalHold property of the container. */
@JsonProperty(value = "properties.legalHold", access = JsonProperty.Access.WRITE_ONLY) private LegalHoldProperties legalHold;
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.
/** * 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. */
@JsonProperty(value = "properties.hasLegalHold", access = JsonProperty.Access.WRITE_ONLY) private Boolean hasLegalHold;
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.
/** * 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. */
@JsonProperty(value = "properties.hasImmutabilityPolicy", access = JsonProperty.Access.WRITE_ONLY) private Boolean hasImmutabilityPolicy;
Get the version of the deleted blob container.
Returns:the version value
/** * Get the version of the deleted blob container. * * @return the version value */
public String version() { return this.version; }
Get indicates whether the blob container was deleted.
Returns:the deleted value
/** * Get indicates whether the blob container was deleted. * * @return the deleted value */
public Boolean deleted() { return this.deleted; }
Get blob container deletion time.
Returns:the deletedTime value
/** * Get blob container deletion time. * * @return the deletedTime value */
public DateTime deletedTime() { return this.deletedTime; }
Get remaining retention days for soft deleted blob container.
Returns:the remainingRetentionDays value
/** * Get remaining retention days for soft deleted blob container. * * @return the remainingRetentionDays value */
public Integer remainingRetentionDays() { return this.remainingRetentionDays; }
Get default the container to use specified encryption scope for all writes.
Returns:the defaultEncryptionScope value
/** * Get default the container to use specified encryption scope for all writes. * * @return the defaultEncryptionScope value */
public String defaultEncryptionScope() { return this.defaultEncryptionScope; }
Set default the container to use specified encryption scope for all writes.
Params:
  • defaultEncryptionScope – the defaultEncryptionScope value to set
Returns:the BlobContainerInner object itself.
/** * Set 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) { this.defaultEncryptionScope = defaultEncryptionScope; return this; }
Get block override of encryption scope from the container default.
Returns:the denyEncryptionScopeOverride value
/** * Get block override of encryption scope from the container default. * * @return the denyEncryptionScopeOverride value */
public Boolean denyEncryptionScopeOverride() { return this.denyEncryptionScopeOverride; }
Set block override of encryption scope from the container default.
Params:
  • denyEncryptionScopeOverride – the denyEncryptionScopeOverride value to set
Returns:the BlobContainerInner object itself.
/** * Set 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) { this.denyEncryptionScopeOverride = denyEncryptionScopeOverride; return this; }
Get specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'Container', 'Blob', 'None'.
Returns:the publicAccess value
/** * Get specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'Container', 'Blob', 'None'. * * @return the publicAccess value */
public PublicAccess publicAccess() { return this.publicAccess; }
Set specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'Container', 'Blob', 'None'.
Params:
  • publicAccess – the publicAccess value to set
Returns:the BlobContainerInner object itself.
/** * Set specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'Container', 'Blob', 'None'. * * @param publicAccess the publicAccess value to set * @return the BlobContainerInner object itself. */
public BlobContainerInner withPublicAccess(PublicAccess publicAccess) { this.publicAccess = publicAccess; return this; }
Get returns the date and time the container was last modified.
Returns:the lastModifiedTime value
/** * Get returns the date and time the container was last modified. * * @return the lastModifiedTime value */
public DateTime lastModifiedTime() { return this.lastModifiedTime; }
Get the lease status of the container. Possible values include: 'Locked', 'Unlocked'.
Returns:the leaseStatus value
/** * Get the lease status of the container. Possible values include: 'Locked', 'Unlocked'. * * @return the leaseStatus value */
public LeaseStatus leaseStatus() { return this.leaseStatus; }
Get lease state of the container. Possible values include: 'Available', 'Leased', 'Expired', 'Breaking', 'Broken'.
Returns:the leaseState value
/** * Get lease state of the container. Possible values include: 'Available', 'Leased', 'Expired', 'Breaking', 'Broken'. * * @return the leaseState value */
public LeaseState leaseState() { return this.leaseState; }
Get specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased. Possible values include: 'Infinite', 'Fixed'.
Returns:the leaseDuration value
/** * Get specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased. Possible values include: 'Infinite', 'Fixed'. * * @return the leaseDuration value */
public LeaseDuration leaseDuration() { return this.leaseDuration; }
Get a name-value pair to associate with the container as metadata.
Returns:the metadata value
/** * Get a name-value pair to associate with the container as metadata. * * @return the metadata value */
public Map<String, String> metadata() { return this.metadata; }
Set a name-value pair to associate with the container as metadata.
Params:
  • metadata – the metadata value to set
Returns:the BlobContainerInner object itself.
/** * Set 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<String, String> metadata) { this.metadata = metadata; return this; }
Get the ImmutabilityPolicy property of the container.
Returns:the immutabilityPolicy value
/** * Get the ImmutabilityPolicy property of the container. * * @return the immutabilityPolicy value */
public ImmutabilityPolicyProperties immutabilityPolicy() { return this.immutabilityPolicy; }
Get the LegalHold property of the container.
Returns:the legalHold value
/** * Get the LegalHold property of the container. * * @return the legalHold value */
public LegalHoldProperties legalHold() { return this.legalHold; }
Get 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.
Returns:the hasLegalHold value
/** * Get 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.hasLegalHold; }
Get 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.
Returns:the hasImmutabilityPolicy value
/** * Get 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.hasImmutabilityPolicy; } }