Class MetadataItem

java.lang.Object
com.azure.resourcemanager.batch.models.MetadataItem

public final class MetadataItem extends Object
A name-value pair associated with a Batch service resource.

The Batch service does not assign any meaning to this metadata; it is solely for the use of user code.

  • Constructor Details

    • MetadataItem

      public MetadataItem()
      Creates an instance of MetadataItem class.
  • Method Details

    • name

      public String name()
      Get the name property: The name of the metadata item.
      Returns:
      the name value.
    • withName

      public MetadataItem withName(String name)
      Set the name property: The name of the metadata item.
      Parameters:
      name - the name value to set.
      Returns:
      the MetadataItem object itself.
    • value

      public String value()
      Get the value property: The value of the metadata item.
      Returns:
      the value value.
    • withValue

      public MetadataItem withValue(String value)
      Set the value property: The value of the metadata item.
      Parameters:
      value - the value value to set.
      Returns:
      the MetadataItem object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.