Class UpdateMetadataRequest

java.lang.Object
dev.getelements.elements.sdk.model.metadata.UpdateMetadataRequest

public class UpdateMetadataRequest extends Object
Represents a request to update a metadata object's properties.
  • Constructor Details

    • UpdateMetadataRequest

      public UpdateMetadataRequest()
      Creates a new instance.
  • Method Details

    • getName

      public String getName()
      Returns the unique name for the metadata object.
      Returns:
      the name
    • setName

      public void setName(String name)
      Sets the unique name for the metadata object.
      Parameters:
      name - the name
    • getMetadata

      public Map<String,Object> getMetadata()
      Returns the metadata payload as key-value pairs.
      Returns:
      the metadata
    • setMetadata

      public void setMetadata(Map<String,Object> metadata)
      Sets the metadata payload as key-value pairs.
      Parameters:
      metadata - the metadata
    • getMetadataSpec

      public MetadataSpec getMetadataSpec()
      Returns the metadata spec that defines the structure of the metadata.
      Returns:
      the metadata spec
    • setMetadataSpec

      public void setMetadataSpec(MetadataSpec metadataSpec)
      Sets the metadata spec that defines the structure of the metadata.
      Parameters:
      metadataSpec - the metadata spec
    • getAccessLevel

      public User.Level getAccessLevel()
      Returns the minimum access level required to view this metadata.
      Returns:
      the access level
    • setAccessLevel

      public void setAccessLevel(User.Level accessLevel)
      Sets the minimum access level required to view this metadata.
      Parameters:
      accessLevel - the access level