AzureBlobStorageImpl.java
// 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.implementation;
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpPipelineBuilder;
import com.azure.core.http.policy.CookiePolicy;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
import com.azure.storage.blob.models.PathRenameMode;
/**
* Initializes a new instance of the AzureBlobStorage type.
*/
public final class AzureBlobStorageImpl {
/**
* The URL of the service account, container, or blob that is the targe of the desired operation.
*/
private String url;
/**
* Gets The URL of the service account, container, or blob that is the targe of the desired operation.
*
* @return the url value.
*/
public String getUrl() {
return this.url;
}
/**
* Sets The URL of the service account, container, or blob that is the targe of the desired operation.
*
* @param url the url value.
*/
AzureBlobStorageImpl setUrl(String url) {
this.url = url;
return this;
}
/**
* Specifies the version of the operation to use for this request.
*/
private String version;
/**
* Gets Specifies the version of the operation to use for this request.
*
* @return the version value.
*/
public String getVersion() {
return this.version;
}
/**
* Sets Specifies the version of the operation to use for this request.
*
* @param version the version value.
*/
AzureBlobStorageImpl setVersion(String version) {
this.version = version;
return this;
}
/**
* Determines the behavior of the rename operation. Possible values include: 'legacy', 'posix'.
*/
private PathRenameMode pathRenameMode;
/**
* Gets Determines the behavior of the rename operation. Possible values include: 'legacy', 'posix'.
*
* @return the pathRenameMode value.
*/
public PathRenameMode getPathRenameMode() {
return this.pathRenameMode;
}
/**
* Sets Determines the behavior of the rename operation. Possible values include: 'legacy', 'posix'.
*
* @param pathRenameMode the pathRenameMode value.
*/
AzureBlobStorageImpl setPathRenameMode(PathRenameMode pathRenameMode) {
this.pathRenameMode = pathRenameMode;
return this;
}
/**
* The HTTP pipeline to send requests through.
*/
private HttpPipeline httpPipeline;
/**
* Gets The HTTP pipeline to send requests through.
*
* @return the httpPipeline value.
*/
public HttpPipeline getHttpPipeline() {
return this.httpPipeline;
}
/**
* The ServicesImpl object to access its operations.
*/
private ServicesImpl services;
/**
* Gets the ServicesImpl object to access its operations.
*
* @return the ServicesImpl object.
*/
public ServicesImpl services() {
return this.services;
}
/**
* The ContainersImpl object to access its operations.
*/
private ContainersImpl containers;
/**
* Gets the ContainersImpl object to access its operations.
*
* @return the ContainersImpl object.
*/
public ContainersImpl containers() {
return this.containers;
}
/**
* The DirectorysImpl object to access its operations.
*/
private DirectorysImpl directorys;
/**
* Gets the DirectorysImpl object to access its operations.
*
* @return the DirectorysImpl object.
*/
public DirectorysImpl directorys() {
return this.directorys;
}
/**
* The BlobsImpl object to access its operations.
*/
private BlobsImpl blobs;
/**
* Gets the BlobsImpl object to access its operations.
*
* @return the BlobsImpl object.
*/
public BlobsImpl blobs() {
return this.blobs;
}
/**
* The PageBlobsImpl object to access its operations.
*/
private PageBlobsImpl pageBlobs;
/**
* Gets the PageBlobsImpl object to access its operations.
*
* @return the PageBlobsImpl object.
*/
public PageBlobsImpl pageBlobs() {
return this.pageBlobs;
}
/**
* The AppendBlobsImpl object to access its operations.
*/
private AppendBlobsImpl appendBlobs;
/**
* Gets the AppendBlobsImpl object to access its operations.
*
* @return the AppendBlobsImpl object.
*/
public AppendBlobsImpl appendBlobs() {
return this.appendBlobs;
}
/**
* The BlockBlobsImpl object to access its operations.
*/
private BlockBlobsImpl blockBlobs;
/**
* Gets the BlockBlobsImpl object to access its operations.
*
* @return the BlockBlobsImpl object.
*/
public BlockBlobsImpl blockBlobs() {
return this.blockBlobs;
}
/**
* Initializes an instance of AzureBlobStorage client.
*/
public AzureBlobStorageImpl() {
this(new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy()).build());
}
/**
* Initializes an instance of AzureBlobStorage client.
*
* @param httpPipeline The HTTP pipeline to send requests through.
*/
public AzureBlobStorageImpl(HttpPipeline httpPipeline) {
this.httpPipeline = httpPipeline;
this.services = new ServicesImpl(this);
this.containers = new ContainersImpl(this);
this.directorys = new DirectorysImpl(this);
this.blobs = new BlobsImpl(this);
this.pageBlobs = new PageBlobsImpl(this);
this.appendBlobs = new AppendBlobsImpl(this);
this.blockBlobs = new BlockBlobsImpl(this);
}
}