public class ListContainersOptions extends BlobServiceOptions
listContainers
request. These options include a server response timeout for the request, a
container name prefix filter, a marker for continuing requests, the maximum
number of results to return in a request, and whether to include container
metadata in the results. Options that are not set will not be passed to the
server with a request.| Constructor and Description |
|---|
ListContainersOptions() |
| Modifier and Type | Method and Description |
|---|---|
String |
getMarker()
Gets the marker value set in this
ListContainersOptions instance. |
int |
getMaxResults()
Gets the value of the maximum number of results to return set in this
ListContainersOptions instance. |
String |
getPrefix()
Gets the container name prefix filter value set in this
ListContainersOptions instance. |
boolean |
isIncludeMetadata()
Gets the value of a flag set in this
ListContainersOptions
instance indicating whether to include container metadata in the response
to the request. |
ListContainersOptions |
setIncludeMetadata(boolean includeMetadata)
Sets the value of an optional flag indicating whether to include
container metadata with the response to the request.
|
ListContainersOptions |
setMarker(String marker)
Sets the optional marker value to use in a request.
|
ListContainersOptions |
setMaxResults(int maxResults)
Sets the optional maximum number of results to return for a request.
|
ListContainersOptions |
setPrefix(String prefix)
Sets the optional container name prefix filter value to use in a request.
|
ListContainersOptions |
setTimeout(Integer timeout)
Sets the optional server request timeout value associated with this
ListContainersOptions instance. |
getTimeoutpublic ListContainersOptions setTimeout(Integer timeout)
ListContainersOptions instance.
The timeout value only affects calls made on methods where this
ListContainersOptions instance is passed as a parameter.
setTimeout in class BlobServiceOptionstimeout - The server request timeout value to set in milliseconds.ListContainersOptions instance.public String getPrefix()
ListContainersOptions instance.String containing the container name prefix value, if
any.public ListContainersOptions setPrefix(String prefix)
The prefix value only affects calls made on methods where this
ListContainersOptions instance is passed as a parameter.
prefix - A String containing the container name prefix value to
use to filter the request results.ListContainersOptions instance.public String getMarker()
ListContainersOptions instance.String containing the marker value to use to specify
the beginning of the request results.public ListContainersOptions setMarker(String marker)
The List Containers operation returns a marker value in a NextMarker element if the container list returned is not complete. The marker value may then be used in a subsequent call to request the next set of container list items. The marker value is opaque to the client.
Use the getNextMarker method
on a ListContainersResult instance to get the marker value to set
on a ListContainersOptions instance using a call to this method.
Pass the ListContainersOptions instance as a parameter to a
BlobContract.listContainers(ListContainersOptions) call to get
the next portion of the container list.
The marker value only affects calls made on methods where this
ListContainersOptions instance is passed as a parameter.
marker - A String containing the marker value to use to specify
the beginning of the request results.ListContainersOptions instance.public int getMaxResults()
ListContainersOptions instance.public ListContainersOptions setMaxResults(int maxResults)
If there are more containers than this value that can be returned, the server returns a marker value in a NextMarker element in the response. The marker value may then be used in a subsequent call to request the next set of container list items. The marker value is opaque to the client.
Use the getNextMarker method
on a ListContainersResult instance to get the marker value to set
on a ListContainersOptions instance using a call to
setMarker(String). Pass the
ListContainersOptions instance as a parameter to a
BlobContract.listContainers(ListContainersOptions) call to get
the next portion of the container list.
The maxResults value only affects calls made on methods where
this ListContainersOptions instance is passed as a parameter.
maxResults - The maximum number of results to return.ListContainersOptions instance.public boolean isIncludeMetadata()
ListContainersOptions
instance indicating whether to include container metadata in the response
to the request.true to include container metadata in the response
to the request.public ListContainersOptions setIncludeMetadata(boolean includeMetadata)
The includeMetadata value only affects calls made on methods
where this ListContainersOptions instance is passed as a
parameter.
includeMetadata - Set to true to include container metadata in the
response to the request.ListContainersOptions instance./**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/