Class AttributeNameValueModel

java.lang.Object
io.opentelemetry.sdk.autoconfigure.declarativeconfig.model.AttributeNameValueModel

@Generated("io.opentelemetry.gradle.DeclarativeConfigPojoGenerator") public class AttributeNameValueModel extends Object
  • Constructor Details

    • AttributeNameValueModel

      public AttributeNameValueModel()
  • Method Details

    • getName

      @Nullable public String getName()
      The attribute name.

      Property is required and must be non-null.

    • withName

      public AttributeNameValueModel withName(String name)
    • getValue

      @Nullable public Object getValue()
      The attribute value.

      The type of value must match .type.

      Property must be present, but if null the entry is ignored.

    • withValue

      public AttributeNameValueModel withValue(Object value)
    • getType

      @Nullable public AttributeTypeModel getType()
      The attribute type.

      Values include:

      * bool: Boolean attribute value.

      * bool_array: Boolean array attribute value.

      * double: Double attribute value.

      * double_array: Double array attribute value.

      * int: Integer attribute value.

      * int_array: Integer array attribute value.

      * string: String attribute value.

      * string_array: String array attribute value.

      If omitted, string is used.

    • withType

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object