Class BlobContainer
- java.lang.Object
-
- com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<BlobContainer,StorageAccount,com.azure.storage.blob.BlobContainerClient>
-
- com.microsoft.azure.toolkit.lib.storage.blob.BlobContainer
-
- All Implemented Interfaces:
com.microsoft.azure.toolkit.lib.common.model.AzResource,com.microsoft.azure.toolkit.lib.common.model.AzResourceBase,com.microsoft.azure.toolkit.lib.common.model.Deletable,com.microsoft.azure.toolkit.lib.common.model.Refreshable,IBlobFile,StorageFile
- Direct Known Subclasses:
BlobContainerDraft
public class BlobContainer extends com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<BlobContainer,StorageAccount,com.azure.storage.blob.BlobContainerClient> implements com.microsoft.azure.toolkit.lib.common.model.Deletable, IBlobFile
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.microsoft.azure.toolkit.lib.common.model.AzResource
com.microsoft.azure.toolkit.lib.common.model.AzResource.Draft<T extends com.microsoft.azure.toolkit.lib.common.model.AzResource,R extends Object>, com.microsoft.azure.toolkit.lib.common.model.AzResource.None, com.microsoft.azure.toolkit.lib.common.model.AzResource.Status
-
Nested classes/interfaces inherited from interface com.microsoft.azure.toolkit.lib.common.model.AzResourceBase
com.microsoft.azure.toolkit.lib.common.model.AzResourceBase.FormalStatus
-
Nested classes/interfaces inherited from interface com.microsoft.azure.toolkit.lib.storage.model.StorageFile
StorageFile.Draft<T extends StorageFile,R>
-
-
Field Summary
Fields Modifier and Type Field Description private BlobFileModulesubFileModule
-
Constructor Summary
Constructors Modifier Constructor Description BlobContainer(BlobContainer origin)copy constructorprotectedBlobContainer(String name, BlobContainerModule module)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddownload(OutputStream output)voiddownload(Path dest)booleanexists(String blobPath)com.azure.storage.blob.BlobContainerClientgetClient()BlobContainergetContainer()java.time.OffsetDateTimegetLastModified()StringgetPath()List<com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule<?,?,?>>getSubModules()StringgetUrl()booleanisDirectory()StringloadStatus(com.azure.storage.blob.BlobContainerClient remote)-
Methods inherited from class com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource
canEqual, delete, deleteFromCache, doModify, doModify, equals, exists, getId, getModule, getName, getParent, getRemote, getResourceGroup, getResourceGroupName, getStatus, getSubModule, hashCode, invalidateCache, isDraft, isDraftForCreating, isDraftForUpdating, loadRemote, refresh, refreshRemoteFromAzure, reloadStatus, remoteOptional, setRemote, setStatus, toString, update, updateAdditionalProperties
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.microsoft.azure.toolkit.lib.common.model.AzResource
delete, exists, getFullResourceType, getId, getModule, getName, getPortalUrl, getResourceGroupName, getResourceTypeName, getStatus, getSubscription, getSubscriptionId, id, name, refresh
-
Methods inherited from interface com.microsoft.azure.toolkit.lib.common.model.AzResourceBase
getFormalStatus
-
Methods inherited from interface com.microsoft.azure.toolkit.lib.storage.model.StorageFile
getCreationTime, getFile, getSize, getSubFileModule
-
-
-
-
Field Detail
-
subFileModule
private final BlobFileModule subFileModule
-
-
Constructor Detail
-
BlobContainer
protected BlobContainer(@Nonnull String name, @Nonnull BlobContainerModule module)
-
BlobContainer
public BlobContainer(@Nonnull BlobContainer origin)
copy constructor
-
-
Method Detail
-
getSubModules
@Nonnull public List<com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule<?,?,?>> getSubModules()
- Specified by:
getSubModulesin classcom.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<BlobContainer,StorageAccount,com.azure.storage.blob.BlobContainerClient>
-
loadStatus
@Nonnull public String loadStatus(@Nonnull com.azure.storage.blob.BlobContainerClient remote)
- Specified by:
loadStatusin classcom.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<BlobContainer,StorageAccount,com.azure.storage.blob.BlobContainerClient>
-
getClient
@Nullable public com.azure.storage.blob.BlobContainerClient getClient()
- Specified by:
getClientin interfaceIBlobFile- Specified by:
getClientin interfaceStorageFile
-
exists
public boolean exists(String blobPath)
-
getLastModified
@Nullable public java.time.OffsetDateTime getLastModified()
- Specified by:
getLastModifiedin interfaceStorageFile
-
getPath
public String getPath()
- Specified by:
getPathin interfaceStorageFile
-
getContainer
public BlobContainer getContainer()
- Specified by:
getContainerin interfaceIBlobFile
-
isDirectory
public boolean isDirectory()
- Specified by:
isDirectoryin interfaceStorageFile
-
getUrl
public String getUrl()
- Specified by:
getUrlin interfaceStorageFile
-
download
public void download(OutputStream output)
- Specified by:
downloadin interfaceStorageFile
-
download
public void download(Path dest)
- Specified by:
downloadin interfaceStorageFile
-
-