com.azure.storage.blob.options.BlobContainerCreateOptions 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.
package com.azure.storage.blob.options;
import com.azure.core.annotation.Fluent;
import com.azure.storage.blob.models.PublicAccessType;
import java.util.Map;
/**
* Extended options that may be passed when creating a Blob Container.
*/
@Fluent
public class BlobContainerCreateOptions {
private Map metadata;
PublicAccessType publicAccessType;
/**
* @return The metadata to associate with the blob.
*/
public Map getMetadata() {
return metadata;
}
/**
* @param metadata The metadata to associate with the blob.
* @return The updated options
*/
public BlobContainerCreateOptions setMetadata(Map metadata) {
this.metadata = metadata;
return this;
}
/**
* @return The public access type associated with the blob.
*/
public PublicAccessType getPublicAccessType() {
return publicAccessType;
}
/**
* @param accessType The public access type to associate with the blob.
* @return The updated options.
*/
public BlobContainerCreateOptions setPublicAccessType(PublicAccessType accessType) {
publicAccessType = accessType;
return this;
}
}