Class ArtifactContentPropertiesDefinition

java.lang.Object
com.azure.resourcemanager.logic.models.ArtifactProperties
com.azure.resourcemanager.logic.models.ArtifactContentPropertiesDefinition
Direct Known Subclasses:
AssemblyProperties

public class ArtifactContentPropertiesDefinition extends ArtifactProperties
The artifact content properties definition.
  • Constructor Details

    • ArtifactContentPropertiesDefinition

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

    • content

      public Object content()
      Get the content property: Anything.
      Returns:
      the content value.
    • withContent

      public ArtifactContentPropertiesDefinition withContent(Object content)
      Set the content property: Anything.
      Parameters:
      content - the content value to set.
      Returns:
      the ArtifactContentPropertiesDefinition object itself.
    • contentType

      public String contentType()
      Get the contentType property: The content type.
      Returns:
      the contentType value.
    • withContentType

      public ArtifactContentPropertiesDefinition withContentType(String contentType)
      Set the contentType property: The content type.
      Parameters:
      contentType - the contentType value to set.
      Returns:
      the ArtifactContentPropertiesDefinition object itself.
    • contentLink

      public ContentLink contentLink()
      Get the contentLink property: The content link.
      Returns:
      the contentLink value.
    • withContentLink

      public ArtifactContentPropertiesDefinition withContentLink(ContentLink contentLink)
      Set the contentLink property: The content link.
      Parameters:
      contentLink - the contentLink value to set.
      Returns:
      the ArtifactContentPropertiesDefinition object itself.
    • withCreatedTime

      public ArtifactContentPropertiesDefinition withCreatedTime(OffsetDateTime createdTime)
      Set the createdTime property: The artifact creation time.
      Overrides:
      withCreatedTime in class ArtifactProperties
      Parameters:
      createdTime - the createdTime value to set.
      Returns:
      the ArtifactProperties object itself.
    • withChangedTime

      public ArtifactContentPropertiesDefinition withChangedTime(OffsetDateTime changedTime)
      Set the changedTime property: The artifact changed time.
      Overrides:
      withChangedTime in class ArtifactProperties
      Parameters:
      changedTime - the changedTime value to set.
      Returns:
      the ArtifactProperties object itself.
    • withMetadata

      public ArtifactContentPropertiesDefinition withMetadata(Object metadata)
      Set the metadata property: Anything.
      Overrides:
      withMetadata in class ArtifactProperties
      Parameters:
      metadata - the metadata value to set.
      Returns:
      the ArtifactProperties object itself.
    • validate

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