Package org.jclouds.atmos.options
Class PutOptions
- java.lang.Object
-
- org.jclouds.http.options.BaseHttpRequestOptions
-
- org.jclouds.atmos.options.PutOptions
-
- All Implemented Interfaces:
HttpRequestOptions
public class PutOptions extends BaseHttpRequestOptions
Contains options supported in the REST API for the PUT operations.Usage
The recommended way to instantiate a PutOptions object is to statically import PutOptions.Builder.* and invoke a static creation method followed by an instance mutator (if needed):import org.jclouds.atmos.options.PutOptions.Builder.* import org.jclouds.atmos.AtmosClient; AtmosClient connection = // get connection connection.createDirectory("directory", publicRead());
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PutOptions.Builder
-
Field Summary
Fields Modifier and Type Field Description static PutOptions
NONE
-
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
-
-
Constructor Summary
Constructors Constructor Description PutOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PutOptions
overwrite()
By default Atmos does not allow overwriting objects.PutOptions
publicNone()
PutOptions
publicRead()
Add public access to all users-
Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions
buildFormParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstQueryOrNull, hashCode, replaceHeader, toString
-
-
-
-
Field Detail
-
NONE
public static final PutOptions NONE
-
-
Method Detail
-
publicRead
public PutOptions publicRead()
Add public access to all users
-
publicNone
public PutOptions publicNone()
-
overwrite
public PutOptions overwrite()
By default Atmos does not allow overwriting objects. Note: older versions of Atmos do not support this header.
-
-