Class UpdateMetadataRequest
java.lang.Object
dev.getelements.elements.sdk.model.metadata.UpdateMetadataRequest
Represents a request to update a metadata object's properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the minimum access level required to view this metadata.Returns the metadata payload as key-value pairs.Returns the metadata spec that defines the structure of the metadata.getName()Returns the unique name for the metadata object.voidsetAccessLevel(User.Level accessLevel) Sets the minimum access level required to view this metadata.voidsetMetadata(Map<String, Object> metadata) Sets the metadata payload as key-value pairs.voidsetMetadataSpec(MetadataSpec metadataSpec) Sets the metadata spec that defines the structure of the metadata.voidSets the unique name for the metadata object.
-
Constructor Details
-
UpdateMetadataRequest
public UpdateMetadataRequest()Creates a new instance.
-
-
Method Details
-
getName
Returns the unique name for the metadata object.- Returns:
- the name
-
setName
Sets the unique name for the metadata object.- Parameters:
name- the name
-
getMetadata
Returns the metadata payload as key-value pairs.- Returns:
- the metadata
-
setMetadata
Sets the metadata payload as key-value pairs.- Parameters:
metadata- the metadata
-
getMetadataSpec
Returns the metadata spec that defines the structure of the metadata.- Returns:
- the metadata spec
-
setMetadataSpec
Sets the metadata spec that defines the structure of the metadata.- Parameters:
metadataSpec- the metadata spec
-
getAccessLevel
Returns the minimum access level required to view this metadata.- Returns:
- the access level
-
setAccessLevel
Sets the minimum access level required to view this metadata.- Parameters:
accessLevel- the access level
-