Class DaprMetadata


  • public final class DaprMetadata
    extends Object
    Dapr component metadata.
    • Constructor Detail

      • DaprMetadata

        public DaprMetadata()
    • Method Detail

      • name

        public String name()
        Get the name property: Metadata property name.
        Returns:
        the name value.
      • withName

        public DaprMetadata withName​(String name)
        Set the name property: Metadata property name.
        Parameters:
        name - the name value to set.
        Returns:
        the DaprMetadata object itself.
      • value

        public String value()
        Get the value property: Metadata property value.
        Returns:
        the value value.
      • withValue

        public DaprMetadata withValue​(String value)
        Set the value property: Metadata property value.
        Parameters:
        value - the value value to set.
        Returns:
        the DaprMetadata object itself.
      • secretRef

        public String secretRef()
        Get the secretRef property: Name of the Dapr Component secret from which to pull the metadata property value.
        Returns:
        the secretRef value.
      • withSecretRef

        public DaprMetadata withSecretRef​(String secretRef)
        Set the secretRef property: Name of the Dapr Component secret from which to pull the metadata property value.
        Parameters:
        secretRef - the secretRef value to set.
        Returns:
        the DaprMetadata object itself.
      • validate

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