public final class ContentLink extends Object
Constructor and Description |
---|
ContentLink() |
Modifier and Type | Method and Description |
---|---|
ContentHash |
contentHash()
Get the contentHash property: The content hash.
|
Long |
contentSize()
Get the contentSize property: The content size.
|
String |
contentVersion()
Get the contentVersion property: The content version.
|
Object |
metadata()
Get the metadata property: The metadata.
|
String |
uri()
Get the uri property: The content link URI.
|
void |
validate()
Validates the instance.
|
ContentLink |
withContentHash(ContentHash contentHash)
Set the contentHash property: The content hash.
|
ContentLink |
withContentSize(Long contentSize)
Set the contentSize property: The content size.
|
ContentLink |
withContentVersion(String contentVersion)
Set the contentVersion property: The content version.
|
ContentLink |
withMetadata(Object metadata)
Set the metadata property: The metadata.
|
ContentLink |
withUri(String uri)
Set the uri property: The content link URI.
|
public String uri()
public ContentLink withUri(String uri)
uri
- the uri value to set.public String contentVersion()
public ContentLink withContentVersion(String contentVersion)
contentVersion
- the contentVersion value to set.public Long contentSize()
public ContentLink withContentSize(Long contentSize)
contentSize
- the contentSize value to set.public ContentHash contentHash()
public ContentLink withContentHash(ContentHash contentHash)
contentHash
- the contentHash value to set.public Object metadata()
public ContentLink withMetadata(Object metadata)
metadata
- the metadata value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.