Package com.ibm.cloud.cloudant.v1.model
Class GetAttachmentOptions
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.cloudant.v1.model.GetAttachmentOptions
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class GetAttachmentOptions extends com.ibm.cloud.sdk.core.service.model.GenericModelThe getAttachment options.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGetAttachmentOptions.BuilderBuilder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringaccept()Gets the accept.StringattachmentName()Gets the attachmentName.Stringdb()Gets the db.StringdocId()Gets the docId.StringifMatch()Gets the ifMatch.StringifNoneMatch()Gets the ifNoneMatch.GetAttachmentOptions.BuildernewBuilder()New builder.Stringrange()Gets the range.Stringrev()Gets the rev.
-
-
-
Method Detail
-
newBuilder
public GetAttachmentOptions.Builder newBuilder()
New builder.- Returns:
- a GetAttachmentOptions builder
-
db
public String db()
Gets the db. Path parameter to specify the database name.- Returns:
- the db
-
docId
public String docId()
Gets the docId. Path parameter to specify the document ID.- Returns:
- the docId
-
attachmentName
public String attachmentName()
Gets the attachmentName. Path parameter to specify the attachment name.- Returns:
- the attachmentName
-
accept
public String accept()
Gets the accept. The type of the response: or *_/_*.- Returns:
- the accept
-
ifMatch
public String ifMatch()
Gets the ifMatch. Header parameter to specify the document revision. Alternative to rev query parameter.- Returns:
- the ifMatch
-
ifNoneMatch
public String ifNoneMatch()
Gets the ifNoneMatch. Header parameter to specify a double quoted document revision token for cache control.- Returns:
- the ifNoneMatch
-
range
public String range()
Gets the range. Header parameter to specify the byte range for a request. This allows the implementation of resumable downloads and skippable streams. This is available for all attachments inside CouchDB.- Returns:
- the range
-
rev
public String rev()
Gets the rev. Query parameter to specify a document revision.- Returns:
- the rev
-
-