| Constructor and Description |
|---|
Builder()
Constructs a new builder with the created and last modified time set to the current time
|
Builder(java.time.Instant created,
java.time.Instant lastModified)
Will set created to given value and lastModified to System.currentTime Only be used by the server.
|
Builder(Meta meta)
Constructs a new builder with the created and last modified time set to the given values
|
| Modifier and Type | Method and Description |
|---|---|
Meta.Builder |
addAdditionalAttribute(String attrName,
Object attribute)
Add additional meta attribute provided by service provider.
|
Meta.Builder |
addAdditionalAttributes(Map<String,Object> attributes) |
Meta |
build()
Builds a Meta Object with the given parameters
|
Meta.Builder |
setAttributes(Set<String> attributes)
Sets the names of the attributes to be removed from the Resource.
|
Meta.Builder |
setLastModified(java.time.Instant lastModified)
Sets the lastModified attribute of the Resource.
|
Meta.Builder |
setLocation(String location)
Set the location (See
Meta.getLocation()). |
Meta.Builder |
setResourceType(String resourceType)
Sets the type of the Resource (See
Meta.getResourceType()). |
Meta.Builder |
setVersion(String version)
Sets the version of the Resource (See
Meta.getVersion()). |
public Builder()
public Builder(java.time.Instant created,
java.time.Instant lastModified)
public Builder(Meta meta)
meta - the meta object to copy frompublic Meta.Builder setLocation(String location)
Meta.getLocation()).location - the resource uripublic Meta.Builder setVersion(String version)
Meta.getVersion()).version - the version of the resourcepublic Meta.Builder setResourceType(String resourceType)
Meta.getResourceType()).resourceType - the typepublic Meta.Builder setAttributes(Set<String> attributes)
attributes - name of attributes to be deletedpublic Meta.Builder setLastModified(java.time.Instant lastModified)
lastModified - timestamppublic Meta.Builder addAdditionalAttribute(String attrName, Object attribute)
attrName - attribute nameattribute - valuepublic Meta.Builder addAdditionalAttributes(Map<String,Object> attributes)
public Meta build()
Copyright © 2022 SAP SE. All rights reserved.