Class ContentSource

java.lang.Object
com.azure.resourcemanager.automation.models.ContentSource

public final class ContentSource extends Object
Definition of the content source.
  • Constructor Details

    • ContentSource

      public ContentSource()
  • Method Details

    • hash

      public ContentHash hash()
      Get the hash property: Gets or sets the hash.
      Returns:
      the hash value.
    • withHash

      public ContentSource withHash(ContentHash hash)
      Set the hash property: Gets or sets the hash.
      Parameters:
      hash - the hash value to set.
      Returns:
      the ContentSource object itself.
    • type

      public ContentSourceType type()
      Get the type property: Gets or sets the content source type.
      Returns:
      the type value.
    • withType

      public ContentSource withType(ContentSourceType type)
      Set the type property: Gets or sets the content source type.
      Parameters:
      type - the type value to set.
      Returns:
      the ContentSource object itself.
    • value

      public String value()
      Get the value property: Gets or sets the value of the content. This is based on the content source type.
      Returns:
      the value value.
    • withValue

      public ContentSource withValue(String value)
      Set the value property: Gets or sets the value of the content. This is based on the content source type.
      Parameters:
      value - the value value to set.
      Returns:
      the ContentSource object itself.
    • version

      public String version()
      Get the version property: Gets or sets the version of the content.
      Returns:
      the version value.
    • withVersion

      public ContentSource withVersion(String version)
      Set the version property: Gets or sets the version of the content.
      Parameters:
      version - the version value to set.
      Returns:
      the ContentSource object itself.
    • validate

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