Class DownloadOptions
- java.lang.Object
-
- org.openstack4j.model.storage.block.options.DownloadOptions
-
public class DownloadOptions extends Object
Download options used to determine how the data is returned or if it is returned depending on various conditional options- Author:
- Jeremy Unruh
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DownloadOptionsconditions(IfCondition... condition)Adds one or more If based conditions to the header chain to offer conditional matching before the data is streamedstatic DownloadOptionscreate()List<HeaderNameValue>getHeaders()DownloadOptionsheader(String name, Object value)Adds a user specified header name and valueDownloadOptionsrange(Range... ranges)Download select ranges of bytes
-
-
-
Method Detail
-
create
public static DownloadOptions create()
-
range
public DownloadOptions range(Range... ranges)
Download select ranges of bytes- Parameters:
ranges- one or more Range objects- Returns:
- DownloadOptions for method chaining
-
header
public DownloadOptions header(String name, Object value)
Adds a user specified header name and value- Parameters:
name- the header namevalue- the header value- Returns:
- DownloadOptions for method chaining
-
conditions
public DownloadOptions conditions(IfCondition... condition)
Adds one or more If based conditions to the header chain to offer conditional matching before the data is streamed- Parameters:
condition- one or more IfCondition objects- Returns:
- DownloadOptions for method chaining
-
getHeaders
public List<HeaderNameValue> getHeaders()
- Returns:
- all headers configured from this options object
-
-