Package com.ibm.cloud.cloudant.v1.model
Class PutAttachmentOptions
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.cloudant.v1.model.PutAttachmentOptions
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class PutAttachmentOptions extends com.ibm.cloud.sdk.core.service.model.GenericModel
The putAttachment options.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PutAttachmentOptions.Builder
Builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
attachment()
Gets the attachment.String
attachmentName()
Gets the attachmentName.String
contentType()
Gets the contentType.String
db()
Gets the db.String
docId()
Gets the docId.String
ifMatch()
Gets the ifMatch.PutAttachmentOptions.Builder
newBuilder()
New builder.String
rev()
Gets the rev.
-
-
-
Method Detail
-
newBuilder
public PutAttachmentOptions.Builder newBuilder()
New builder.- Returns:
- a PutAttachmentOptions 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
-
attachment
public InputStream attachment()
Gets the attachment. HTTP request body for attachment operations.- Returns:
- the attachment
-
contentType
public String contentType()
Gets the contentType. Content-Type of the attachment.- Returns:
- the contentType
-
ifMatch
public String ifMatch()
Gets the ifMatch. Header parameter to specify the document revision. Alternative to rev query parameter.- Returns:
- the ifMatch
-
rev
public String rev()
Gets the rev. Query parameter to specify a document revision.- Returns:
- the rev
-
-