View Javadoc
1   // Copyright (c) Microsoft Corporation. All rights reserved.
2   // Licensed under the MIT License.
3   // Code generated by Microsoft (R) AutoRest Code Generator.
4   
5   package com.azure.storage.blob.implementation;
6   
7   import com.azure.core.ServiceClient;
8   import com.azure.core.http.HttpPipeline;
9   import com.azure.core.implementation.RestProxy;
10  
11  /**
12   * Initializes a new instance of the AzureBlobStorage type.
13   */
14  public final class AzureBlobStorageImpl extends ServiceClient {
15      /**
16       * The URL of the service account, container, or blob that is the targe of the desired operation.
17       */
18      private String url;
19  
20      /**
21       * Gets The URL of the service account, container, or blob that is the targe of the desired operation.
22       *
23       * @return the url value.
24       */
25      public String url() {
26          return this.url;
27      }
28  
29      /**
30       * Sets The URL of the service account, container, or blob that is the targe of the desired operation.
31       *
32       * @param url the url value.
33       * @return the service client itself.
34       */
35      AzureBlobStorageImpl url(String url) {
36          this.url = url;
37          return this;
38      }
39  
40      /**
41       * Specifies the version of the operation to use for this request.
42       */
43      private String version;
44  
45      /**
46       * Gets Specifies the version of the operation to use for this request.
47       *
48       * @return the version value.
49       */
50      public String version() {
51          return this.version;
52      }
53  
54      /**
55       * Sets Specifies the version of the operation to use for this request.
56       *
57       * @param version the version value.
58       * @return the service client itself.
59       */
60      AzureBlobStorageImpl version(String version) {
61          this.version = version;
62          return this;
63      }
64  
65      /**
66       * The ServicesImpl object to access its operations.
67       */
68      private ServicesImpl services;
69  
70      /**
71       * Gets the ServicesImpl object to access its operations.
72       *
73       * @return the ServicesImpl object.
74       */
75      public ServicesImpl services() {
76          return this.services;
77      }
78  
79      /**
80       * The ContainersImpl object to access its operations.
81       */
82      private ContainersImpl containers;
83  
84      /**
85       * Gets the ContainersImpl object to access its operations.
86       *
87       * @return the ContainersImpl object.
88       */
89      public ContainersImpl containers() {
90          return this.containers;
91      }
92  
93      /**
94       * The BlobsImpl object to access its operations.
95       */
96      private BlobsImpl blobs;
97  
98      /**
99       * Gets the BlobsImpl object to access its operations.
100      *
101      * @return the BlobsImpl object.
102      */
103     public BlobsImpl blobs() {
104         return this.blobs;
105     }
106 
107     /**
108      * The PageBlobsImpl object to access its operations.
109      */
110     private PageBlobsImpl pageBlobs;
111 
112     /**
113      * Gets the PageBlobsImpl object to access its operations.
114      *
115      * @return the PageBlobsImpl object.
116      */
117     public PageBlobsImpl pageBlobs() {
118         return this.pageBlobs;
119     }
120 
121     /**
122      * The AppendBlobsImpl object to access its operations.
123      */
124     private AppendBlobsImpl appendBlobs;
125 
126     /**
127      * Gets the AppendBlobsImpl object to access its operations.
128      *
129      * @return the AppendBlobsImpl object.
130      */
131     public AppendBlobsImpl appendBlobs() {
132         return this.appendBlobs;
133     }
134 
135     /**
136      * The BlockBlobsImpl object to access its operations.
137      */
138     private BlockBlobsImpl blockBlobs;
139 
140     /**
141      * Gets the BlockBlobsImpl object to access its operations.
142      *
143      * @return the BlockBlobsImpl object.
144      */
145     public BlockBlobsImpl blockBlobs() {
146         return this.blockBlobs;
147     }
148 
149     /**
150      * Initializes an instance of AzureBlobStorage client.
151      */
152     public AzureBlobStorageImpl() {
153         this(RestProxy.createDefaultPipeline());
154     }
155 
156     /**
157      * Initializes an instance of AzureBlobStorage client.
158      *
159      * @param httpPipeline The HTTP pipeline to send requests through.
160      */
161     public AzureBlobStorageImpl(HttpPipeline httpPipeline) {
162         super(httpPipeline);
163         this.services = new ServicesImpl(this);
164         this.containers = new ContainersImpl(this);
165         this.blobs = new BlobsImpl(this);
166         this.pageBlobs = new PageBlobsImpl(this);
167         this.appendBlobs = new AppendBlobsImpl(this);
168         this.blockBlobs = new BlockBlobsImpl(this);
169     }
170 }