Class AnnotationInner


  • public final class AnnotationInner
    extends Object
    Annotation associated with an application insights resource.
    • Constructor Detail

      • AnnotationInner

        public AnnotationInner()
    • Method Detail

      • annotationName

        public String annotationName()
        Get the annotationName property: Name of annotation.
        Returns:
        the annotationName value.
      • withAnnotationName

        public AnnotationInner withAnnotationName​(String annotationName)
        Set the annotationName property: Name of annotation.
        Parameters:
        annotationName - the annotationName value to set.
        Returns:
        the AnnotationInner object itself.
      • category

        public String category()
        Get the category property: Category of annotation, free form.
        Returns:
        the category value.
      • withCategory

        public AnnotationInner withCategory​(String category)
        Set the category property: Category of annotation, free form.
        Parameters:
        category - the category value to set.
        Returns:
        the AnnotationInner object itself.
      • eventTime

        public OffsetDateTime eventTime()
        Get the eventTime property: Time when event occurred.
        Returns:
        the eventTime value.
      • withEventTime

        public AnnotationInner withEventTime​(OffsetDateTime eventTime)
        Set the eventTime property: Time when event occurred.
        Parameters:
        eventTime - the eventTime value to set.
        Returns:
        the AnnotationInner object itself.
      • id

        public String id()
        Get the id property: Unique Id for annotation.
        Returns:
        the id value.
      • withId

        public AnnotationInner withId​(String id)
        Set the id property: Unique Id for annotation.
        Parameters:
        id - the id value to set.
        Returns:
        the AnnotationInner object itself.
      • properties

        public String properties()
        Get the properties property: Serialized JSON object for detailed properties.
        Returns:
        the properties value.
      • withProperties

        public AnnotationInner withProperties​(String properties)
        Set the properties property: Serialized JSON object for detailed properties.
        Parameters:
        properties - the properties value to set.
        Returns:
        the AnnotationInner object itself.
      • relatedAnnotation

        public String relatedAnnotation()
        Get the relatedAnnotation property: Related parent annotation if any.
        Returns:
        the relatedAnnotation value.
      • withRelatedAnnotation

        public AnnotationInner withRelatedAnnotation​(String relatedAnnotation)
        Set the relatedAnnotation property: Related parent annotation if any.
        Parameters:
        relatedAnnotation - the relatedAnnotation value to set.
        Returns:
        the AnnotationInner object itself.
      • validate

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