public static class SwiftObject.Builder extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
etag |
protected com.google.common.collect.Multimap<String,String> |
headers |
protected Date |
lastModified |
protected Map<String,String> |
metadata |
protected String |
name |
protected Payload |
payload |
protected URI |
uri |
Constructor and Description |
---|
SwiftObject.Builder() |
Modifier and Type | Method and Description |
---|---|
SwiftObject |
build() |
SwiftObject.Builder |
etag(String etag) |
SwiftObject.Builder |
fromObject(SwiftObject from) |
SwiftObject.Builder |
headers(com.google.common.collect.Multimap<String,String> headers) |
SwiftObject.Builder |
lastModified(Date lastModified) |
SwiftObject.Builder |
metadata(Map<String,String> metadata)
Will lower-case all metadata keys due to a swift implementation
decision.
|
SwiftObject.Builder |
name(String name) |
SwiftObject.Builder |
payload(Payload payload) |
SwiftObject.Builder |
uri(URI uri) |
protected String name
protected URI uri
protected String etag
protected Date lastModified
protected Payload payload
public SwiftObject.Builder name(String name)
SwiftObject.getName()
public SwiftObject.Builder uri(URI uri)
SwiftObject.getUri()
public SwiftObject.Builder etag(String etag)
SwiftObject.getETag()
public SwiftObject.Builder lastModified(Date lastModified)
SwiftObject.getLastModified()
public SwiftObject.Builder payload(Payload payload)
SwiftObject.getPayload()
public SwiftObject.Builder headers(com.google.common.collect.Multimap<String,String> headers)
SwiftObject.getHeaders()
public SwiftObject.Builder metadata(Map<String,String> metadata)
SwiftObject.getMetadata()
public SwiftObject build()
public SwiftObject.Builder fromObject(SwiftObject from)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.